10 Tweets 1 reads Apr 13, 2023
REST API principles
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.
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.
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.
On the client, a similar method might be applied.
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.
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.
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. ๐Ÿ™๐Ÿ’™

Loading suggestions...