What is a RESTful API.
REST architecture follows a few constraint:
Client-server constraint separates client and server. The client makes the requests whereas the server responds back.
Uniform interface across client and server. All responses should follow the same format.
Servers aren’t allowed to store any data related to the client. No session or authentication state is stored on the server.
If the client requires authentication, then the client needs to authenticate itself before sending a request to the server.
Servers aren’t allowed to store any data related to the client. No session or authentication state is stored on the server.
If the client requires authentication, then the client needs to authenticate itself before sending a request to the server.
Responses can be explicitly or implicitly defined as cacheable or non-cacheable to improve scalability and performance.
The main idea of caching is to improve the performance of the client by reducing the bandwidth required to load the resource.