Representational State Transfer
resources, which are any kind of object, data, or service that can be accessed by the client.
a URI that uniquely identifies that resource. For example, the URI for a particular customer order might be:
HTTP https://adventure-works.com/orders/1
the uniform interface includes using standard HTTP verbs to perform operations on resources. The most common operations are GET, POST, PUT, PATCH, and DELETE.
A resource doesn’t have to be based on a single physical data item. For example, an order resource might be implemented internally as several tables in a relational database, but presented to the client as a single entity.
https://adventure-works.com/orders
try to avoid “chatty” web APIs that expose a large number of small resources. Such an API may require a client application to send multiple requests to find all of the data that it requires , Its bad.
returns HTTP status code 200
return 404 (Not Found).
it returns HTTP status code 201 (Created).
HTTP status code 204 (No Content)