JSON-REST API Guidelines
Explains urls, HTTP headers, status codes, way of returning error codes, caching and data consistancy.
Before reading this article we recommend you to read Terms, Security and Error handling.
The background protocol is regular HTTP. Follow regular REST convention to understand API architecture. Here is a few important points you must know:
Response body is returned according to Accept header when no error occurs. It should be “application/json” for JSON and “application/javascript” for JSONP. List of all available url’s for data exchange with description and code samples can be found at JSON-REST Reference . And don’t forget to declare Content-Type: application/json when sending data to the server.