O'Reilly logo

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON by Bhakti Mehta, Masoud Kalali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Verbs in REST

Some of the requests used in REST are as follows:

  • GET: The GET request retrieves a representation of a resource from server to client
  • POST: The POST request is used to create a resource on the server based on the representation that the client sends
  • PUT: The PUT request is used to update or create a reference to a resource on server
  • DELETE: The DELETE request can delete a resource on server
  • HEAD: The HEAD requests checks for a resource without retrieving it

The next section will introduce the notion of safety and idempotence, two important terms associated with REST.

Safety and idempotence

When it comes to REST, a safe method, by definition, is a HTTP method that does not modify the state of the resource on the server. For example, invoking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required