REST API principles
Thread ๐งต๐
Thread ๐งต๐
1๏ธโฃ REST API is stateless
A stateless protocol is a communication mechanism where neither the sender nor the recipient maintains any data.
It enables communication between several systems without needing the storage of any external state.
A stateless protocol is a communication mechanism where neither the sender nor the recipient maintains any data.
It enables communication between several systems without needing the storage of any external state.
Stateless protocols are frequently utilized in distributed systems where it would be impracticable to keep state information.
2๏ธโฃ REST API has a uniform Interface
It enables clients to talk to the server in a standard language, regardless of their architecture.
Stateless HTTP (HyperText Transfer Protocol) is used for this standardized communication.
It enables clients to talk to the server in a standard language, regardless of their architecture.
Stateless HTTP (HyperText Transfer Protocol) is used for this standardized communication.
3๏ธโฃ REST API is cached
Caching is a method that may be used to enhance a web application's performance.
The server can save the answer to a client's request for a resource to accommodate subsequent requests for the same resource.
Caching is a method that may be used to enhance a web application's performance.
The server can save the answer to a client's request for a resource to accommodate subsequent requests for the same resource.
On the client, a similar method might be applied.
Making subsequent requests quicker and more effective can enhance the user experience.
Making subsequent requests quicker and more effective can enhance the user experience.
4๏ธโฃ REST API uses a client-server architecture
The client and server should not be interdependent to prevent potential conflicts.
You shouldn't expect the client to be impacted by changes you make to the server and vice versa.
The client and server should not be interdependent to prevent potential conflicts.
You shouldn't expect the client to be impacted by changes you make to the server and vice versa.
5๏ธโฃ REST API uses a layered architecture
Each layer of the architecture adds to a distinct hierarchy.
This design is advantageous because it enables loose coupling between levels, making it easier for one layer to be altered or updated without impacting the others.
Each layer of the architecture adds to a distinct hierarchy.
This design is advantageous because it enables loose coupling between levels, making it easier for one layer to be altered or updated without impacting the others.
Furthermore, this design enables data and functionality to be encapsulated at each layer, enhancing security and avoiding unexpected behavior.
Thanks for reading!
Follow us @Rapid_API for more exclusive content. ๐๐
Follow us @Rapid_API for more exclusive content. ๐๐
Loading suggestions...