Saturday, July 18, 2020

Rest API’s - Concept, Design and Best Practices.

What is the REST API?

• It stands for REpresentational State Transfer.
• An architectural style for distributed hypermedia systems.
• Any interface which follows below guiding principles is referred to as REST.
• Client-Server à  Here we separate the UI concerns from data storage concerns. It helps portability of UI interfaces and the scalability of server components.
• Stateless à If the session state is to be maintained, it has to be on the client. This means that a request has to fully propagate all the information from the client to the server and should not use the server context.
• Cacheable à Cache constraint is something propagated back from the response. If the response states that it’s cacheable, then the client can cache the response for the same type of request, and use the response.
• Uniform Interface à


Rest API’s - Concept, Design and Best Practices.

What is the REST API? •  It stands for RE presentational  S tate  T ransfer. •  An architectural style for  distributed hypermedia sy...