REST API

JSON

{
"property1": "value1",
"property2": "value2",
"property3": "value3"
}

Methods of REST API

Authentication

  1. With a username and password (also called basic authentication)
  2. With a secret token

HTTP Status Codes And Error Messages

  1. 200+ means the request has succeeded.
  2. 300+ means the request is redirected to another URL
  3. 400+ means an error that originates from the client has occurred
  4. 500+ means an error that originates from the server has occurred

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store