Another Salesforce blog!!!

Salesforce, Apex

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)

Leave a Reply

Your email address will not be published. Required fields are marked *

*