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.
DELETE) specify which operation a service should perform.
GETrequests data from the server
POSTtransmits data to the server
PUTchanges existing data on the server
DELETEdeletes existing data on the server