Representational State Transfer (REST) is a style of software architecture for distributed systems such as the World Wide Web. RESTful Web services is great way to achieve this architecture.
Java API for RESTful Web Services (JAX-RS) is a Java programming language API that provides support in creating web services according to the Representational State Transfer (REST) architectural pattern.
Jersey RESTful Web Services framework is an open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs.
The Spring Framework is an open source application framework and inversion of control container for the Java platform.
GET /users - Get the collection (list the users).
GET /users/{userId} - Retrieve a representation of the user of the collection (list the users).
POST /users - Create a new entry (user) in the collection (list the users).
PUT /users/{userId} - Update the user of the collection (list the users).
DELETE /users/{userId} - Delete the user of the collection (list the users).
200 — OK;
201 — Created;
404 — Not Found;
405 — Method Not Allowed;
500 — Internal Server Error.



