REST doesn’t specify in detail how compliant services are implemented. An important point in the architecture is the statelessness of servers. This means that when a request is made, the client must explicitly send along all relevant data for processing this request. Ideally, the complete session context should reside with the client. This has several advantages, including scalability, since the server doesn’t have to manage data that goes beyond a request.
In practice, the REST paradigm is preferably implemented via HTTP. Services are addressed via URLs/URIs. The HTTP methods (e.g. GET
, POST
, PUT
, and DELETE
) specify which operation a service should perform.
GET
requests data from the serverPOST
transmits data to the serverPUT
changes existing data on the serverDELETE
deletes existing data on the server