HTTP POST to the URL – Web API 2
Registration using Web Api 2
Do a HTTP POST to the URL
[cc]http://localhost/api/Account/Register[/cc]
with HTTP HEADER
[cc]content-type: application/json[/cc]
and the [cc]HTTP BODY[/cc]
[cc]
{
“UserName”: “johnsmith”,
“Password”: “supersecret”,
“ConfirmPassword”: “supersecret”
}
[/cc]
You should get a HTTP RESPONSE 200 (OK)
AngularJS-Learning HTTP POST to the URL (Login) – Web API 2