Let the client determine the communicationrequirements of the server without initiating aretrieval.
Retrieve whatever data that is identified by a request.
Return GET information without the message body.
Perform an action on the server that may create aresource using the Request-URI.
Create a resource at the Request
Delete the resource identified by the Request-URI
Invoke an application-layer acknowledgement.
Reserved method for tunnel reuests to a rox.
Role of REST in Web Based Computing
Goals of REST
Scalability of componentinteractions.
Generality of interfaces,
Independent deployment ofcomponents,
Intermediary componentsto reduce interactionlatency, enforce security,and encapsulate legacysystems.REST achieves these goals by applying the following constraints:
Resource is unit of identification.
Resource is manipulated through exchange of representations.
Resource-generic interaction semantics.
Hypermedia is engine of application state.
Advantages of REST
It uses well documented, well established, well used technology and methodology.
It's already here today; in fact it's been here for the last 12 years!
Resource centric rather than method centric.
Given a URI anyone already knows how to access it.
It's not another protocol on top of another protocol on top of another protocol on top of...
The response payload can be of any format (some may call this a disadvantage, however theWeb copes with it, it's just a case of defining the application grammar).
Uses the inherent HTTP security model, certain methods to certain URIs can easily berestricted by firewall configuration, unlike other XML over HTTP messaging formats.
REST makes sense, use what we already have; it is the next logical extension of the web.
Give REST to WEB 2.0
The WEB 2.0 has gain tremendous attention in the recent years. However, ignoring REST in WEB
like saying if it’s a liquid, it
can be drunk by humans. Sure, humans can drink anything thatis a liquid, but the bigger question is, will you survive? Sometimes you will, and sometimes you
As they say "A picture says a thousand words", The Role of REST in WEB 2.0 can be understoodfrom the image given below: