RESTful API
What is a RESTful API?
REST Characteristics
Client-server architectureThe client handles user-related processing,
The server provides REST APIs,
Allowing
rolesto be clearlydistinguishedand operateseparatedwith aconsistent interface
Statelessness (stateless)REST is
statelessbecause it leverages the characteristics of HTTPThe server does not need to remember
state informationto perform tasks; it only needs to process incoming requests, making implementation simple and straightforward
Cacheability (cacheable)Caching is required to efficiently handle large volumes of requests
Using caching improves response times and, since REST Server transactions do not occur, can improve overall response time, performance, and server resource utilization
Uniform interface (Uniform)An architecture that enables
manipulationof resources identified byURIand can be used onall platformsas long as it follows theHttp standardIn other words, it is not dependent on any specific language or technology
Core Rules
URIs should represent the resource information
Actionson resources should be expressed usingHTTP Methods(GET, POST, PUT, DELETE, etc.)
What is a RESTful API?
RESTful is a way to use REST properly, and it has not been officially published by anyone
Resources must be identifiable
It should be possible to tell
what resourceis being controlled just from the URL
Actions must be explicit
Using GET to perform UPDATE and DELETE -> X
Last updated