-
Representational State Transfer
-
APIs are designed around resources.
-
An identifier is anything that uniquely identifies a resource, e.g. a URL.
-
GET, POST, PUT, PATCH, DELETE
-
URIs should be based on the resource and not the operations on the resource.
-
-
A chatty API requires multiple small requests to retrieve all the necessary data. Making one big request is better, as it reduces the load on the web server.
-
Successful GET returns 200 (OK)
-
Unsuccessful GET returns 404 (Not Found)
-
Successful POST returns 201 (Created)
-
Successful DELETE returns 204 (No Content)