Invented by : 2000 by Roy Fielding also known as e principal authors of the Hypertext Transfer Protocol (HTTP) specification
Concept: REST-style architectures consist of clients and servers. Clients initiate requests to servers; servers process requests and return appropriate responses. Requests and responses are built around the transfer of "representations" of "resources". A resource can be essentially any coherent and meaningful concept that may be addressed. A representation of a resource is typically a document that captures the current or intended state of a resource.
Resource | GET | PUT | POST | DELETE |
---|---|---|---|---|
Collection URI, such as http://example.com/resources/ | List the URIs and perhaps other details of the collection's members. | Replace the entire collection with another collection. | Create a new entry in the collection. The new entry's URL is assigned automatically and is usually returned by the operation. | Delete the entire collection. |
Element URI, such as http://example.com/resources/142 | Retrieve a representation of the addressed member of the collection, expressed in an appropriate Internet media type. | Update the addressed member of the collection, or if it doesn't exist, create it. | Treat the addressed member as a collection in its own right and create a new entry in it. | Delete the addressed member of the collection. |
JSR Implementation: RESTEasy JAX-RS
Implementation
- Deployed as War file,
- Get the Rest easy war from the open source
- JAr's Required if Using JBOSS Rest Easy
RESTeasy is implemented as a Servlet and deployed within a WAR file.
- httpcore-4.0.1.jar
- javassist-3.6.0.GA.jar
- jaxrs-api-2.0.1.GA.jar
- jcip-annotations-1.0.jar
- jcl-over-slf4j-1.5.8.jar
- jsr250-api-1.0.jar
- resteasy-jaxrs-2.0.1.GA.jar
- scannotation-1.0.2.jar
- slf4j-api-1.5.8.jar
- slf4j-simple-1.5.8.jar
- activation-1.1.jar
- commons-codec-1.2.jar
- commons-httpclient-3.1.jar
- httpclient-4.0.ja
Other's java Implementation for REST full Web services are
Java Jt Design Pattern Framework, Wink , Restlet, JBoss RESTEasy, Jersey, Apache CXF, NetKernel, Apache Sling, Restfulie
Anish
No comments:
Post a Comment