Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The clearest indicator that the SRP HTTP Framework system is running is based on the response you get. It If you enabled authentication in the HTTP Framework Setup form, the response should appear like this:

{
   "URL" : "https://api.mysite.com/v1/",
   "method" : "GET",
   "phrase" : "Unauthorized (RFC 7235)",
   "status" : 401
}

If authentication is disabled, the response should appear like this:

{
"_links": {
"item": [
{
"href": "http://www.contacts.com/api/contacts",
"title": "contacts"
},
{
"href": "http://www.contacts.com/api/version",
"title": "version"
}
],
"self": {
"href": "http://www.contacts.com/api"
}
}
}

 

The above response is received because you have attempted to make a request without any authentication. Yet, the response does prove that the API entry point was reached and processed accordingly. So, if you see a response similar to this then congratulations! You are now ready to start building your own RESTful web services.