Specific data and resource.
Does not take long time to build one.
Does not scale well.
Need to create new endpoint to avoid over/under-fetching.
Organizes data entities (resources
) to unique URIs in the server
URI stands for uniform resource identifiers
Client-Server
Architecture
Stateless
Cache-ability
Layered System
Uniform Interface
Headers
Body
Server
will execute the code from request
and form a response
.
Response
come with a status code
.Response Header
Stateless
Set of commands, functions, protocols, and objects that programmers can use to create software or interact with an external system
Endpoint is a url to a specific api resource
# endpoint examples /this-is-an-endpoint /another/endpoint /some/other/endpoint /login /accounts /cart/items # full URL example https://example.com/this-is-an-endpoint https://example.com/another/endpoint https://example.com/some/other/endpoint https://example.com/login https://example.com/accounts https://example.com/cart/items
Caches will store trailing stashes as separate items.
http://example/foo http://example/foo/
Most APIs do not end with a trailing slash.
Contrary to arguments, a collection should be named using a plural.