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"}
This one works:
Request: