1.6 KiB
Know your HTTP
Every API using HTTP MUST conform to the HTTP protocol semantics as defined in the following RFCs:
HTTP Protocol Quick Start
The understanding of HTTP starts with the understanding of HTTP message and its routing.
Once you are familiar with the structure of a HTTP/1.1 message learn about the HTTP request methods, HTTP response status codes and HTTP headers. Each HTTP request method, status code and header has its semantics defined and every API MUST adhere to it.
Follow the Robustness Principle. Use only the HTTP request methods, response codes and HTTP headers you understand but be liberal in accepting others, but make sure to understand those mentioned in the guidelines.
For quick information on HTTP headers, media-types, methods, relations and status codes, all summarized and linking to their specification visit KNOW YOUR HTTP * WELL.
Alternatively, you can download HTTP cheat sheets at HTTP posters.