I\'ve checked a few similar questions, but none of the answers seem to fit (or dumb it down enough for me). So, I have a really simple WebAPI to check if user with an email
Problem: Your current implementation are sending the email as an entity on a GET request. This is a problem because GET requests does not carry an entity HTTP/1.1 Methods Solution: Change the request to a POST
Now because you are POST'ing the email from your client to your api, you have to change the API implementation to POST:
public bool Post(UserResponse id)
To make sure your posted entity is bound correctly, you can use [FromBody]
like:
public bool Post([FromBody] UserResponse id)
If you do this (and you have not yet overridden the default model binder), you have to annotate your model like:
[DataContract]
public class UserResponse
{
[DataMember]
public string email { get; set; }
}
I think that is all - hope it works :)