reading-notes

APIs

API Best Design Practice

Representational State Transfer

REST APIs are designed around a resource, which are any kind of object, data, or service that can be accessed by a client.

An identifier is a URI that can uniquely identify a resource. Example of a URI for a particular customer order: https://adventure-works.com/orders/1

GET, POST,PUT, PATCH, DELETE

The URIs should be based on the nouns, which are the resource and not the verbs, which are the actions on the resource.

https://google.com/search?q

It is when your web requests impose a load on the web server by having too many complex URIs that expose a large number of small resources.

200 (OK)

404 (Not Found)

201 (Created)

204 (No Content)

Things I want to know more about

References

RESTful web API design