Readings: APIs
-
What does REST stand for?
Representational State Transfer .
-
REST APIs are designed around a —- ?
REST APIs are designed around resources, which are any kind of object, data, or service that can be accessed by the client.
-
What is an identifer of a resource? Give an example.
A resource has an identifier, which is a URI that uniquely identifies that resource. For example, the URI for a particular customer order might be: https://adventure-works.com/orders/1
-
What are the most common HTTP verbs?
The most common operations are
- GET.
- POST.
- PUT.
- PATCH.
-
DELETE.
-
What should the URIs be based on?**
should be based on nouns (the resource) and not verbs .
-
Give an example of a good URI.
https://adventure-works.com/orders
-
What does it mean to have achatty web API? Is this a good or a bad thing?
that is sending small requests and It is a bad it cuses a large number of small resources.
-
What status code does a successful GET request return?
HTTP status code 200 (OK).
-
What status code does an unsuccessful GET request return?
404 (Not Found).
-
What status code does a successful POST request return?
HTTP status code 201 (Created).
-
What status code does a successful DELETE request return?
HTTP status code 204

For More Details :
[] (https://docs.microsoft.com/en-us/azure/architecture/best-practices/api-design)