I\'m working on a REST APIs implemented in ASP.NET Web API. One scenario we\'d like to support is to do a GET
request of some user information by email address.
Can you try the following and see if it works for you?
GET: /api/v1/users/email?id=your_email%40your_domain.com
This assumes your controller's Get function is something like this: Get(string id)
, i.e. it takes a parameter called id
of type string. If you want it to take, for example, a parameter called "emailAddress", then you would do:
GET: /api/v1/users/email?emailAddress=your_email%40your_domain.com
Note the @
sign is encoded as %40
. This also assumes your controller is called EmailController
.