REST is the acronym for Representational State Transfer, which is one of the most popular ways of creating web services.
REST is one of the architectural designs for service-oriented architecture, which uses simple HTTP calls to interact with machines for all CRUD operations. REST has risen in the last couple of years alone as a dominating web services design model, dislodging most of the SOAP- and WSDL-based services, because of its simplicity.
The four basic design principles of REST are as follows:
Use HTTP methods explicitly: REST follows pure HTTP methods and encourages developers to utilize it clearly, which is steady with the protocol definition. This kind of basic REST design theory establishes a one-to-one mapping between CRUD functions and HTTP methods, matching to this mapping:
POST
: Create a resourceGET
: Retrieve a resourcePUT
: Update a resourceDELETE
: Delete a resource
Be stateless: A stateless web service creates a response that links to another page in the...