Versions Compared

Key

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

...

  • The API should be RESTful (see here about the REST)
  • The API should return the data in the JSON format with the 'Content-Type: application/json' header.
  • The API should return the standard HTTP response codes depending on the result. (Example: return '200 OK' after the objects listing, return '201 Created' after the object creation, return '404 Not Found' if the object was not found etc.)
  • The API should be aware of act accordingly to the request method (e.g. GET gets something, POSTPUT creates something, PUTetc).
  • The JSON response should have the same structure (see below).

...