I have an ApiController and I want to use email addresses as the ID parameter for requests:
// GET api/employees/email@address.com public CompactEmployee Get
This is what worked for me:
I was running on targetFramework = 4.6.1. I have upgraded to 4.6.2 and added this in web.config:
The requestPathInvalidCharacters="" is to be able to have stuff like & etc in URI, in encoded form, of course.
requestPathInvalidCharacters=""