O'Reilly logo

RESTful Java Patterns and Best Practices by Bhakti Mehta

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

Miscellaneous topics

The following sections cover some details on miscellaneous topics such as HATEOAS, and Extensibility in REST.

HATEOAS

Hypermedia as the Engine of Application State (HATEOAS) is a constraint of the REST application architecture.

A hypermedia-driven API gives details about the APIs that are available and the corresponding actions that can be taken by the consumer, by providing hypermedia links in the response sent by the server.

For example, a book representation for a REST resource that contains data such as the name and ISBN would look as follows:

{ 
   "Name":" Developing RESTful Services with JAX-RS 2.0,
            WebSockets, and JSON",
   "ISBN": "1782178120"
}

A HATEOAS implementation would return the following:

{ "Name":" Developing RESTful ...

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