REST Document
REST Document
What is REST?
The REST stands for
REpresentational
State
Transfer
State means data
>Representational means formats (such as xml, Json, yami, html,etc)
Transfer means camy data betweeen consumer and provider using
HTTP protocol
REST Architecture
Service Provider (Server)
Consumer(Client) HTTP Request
Android iPhone
Web App
HTP Response
It is important to note that both of these entities are independent of each other.
Stateless:
No data should be stored on the server during the processing of the request
transfer. The state of the session should be saved at the client's end.
Cacheable:
Uniform Interface:
This constraint indicates a generic interface to manage all the interactions
between the client and server in a unified way, which simplifies and decouples
the architecture.
Layered System:
The server can have multiple layers for implementation.
URl::
HTTP Methods
GET.To geta collection or a single record
POST:: To create a new record
Which is not-idompotent
PUT: f already ld Is avallable update the record, If record not avallable save the new record.
t is idompotent.
What is ldompotent?
When you hit the samerequest multiple time it will give always same result
Put & delete both are idompotent.