Controller
public class AuthController : ApiController {
public HttpResponseMessage Post(string email, string userName, string password) {
return new HttpResponseMessage(HttpStatusCode.OK);
}
}
Request
POST http://localhost:49213/api/auth HTTP/1.1
Host: localhost:49213
Content-Type: application/json
Content-Length: 73
{userName: "tugberk", email: "[email protected]", password: "12345678"}
POST http://localhost:49213/api/auth?username=tugberk&[email protected]&password=12345678
works but the first one does not.