O'Reilly logo

RESTful Web Services with Scala by Jos Dirksen

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

HATEOAS

In the first chapter, we looked at the definition of what a RESTful service is. Part of that definition is that a REST service should use HATEOAS, which is an acronym for Hypertext As The Engine Of Application State. What this means is that to be truly RESTful, our services doesn't just need to provide more information than simply the JSON representation of a resource, but it should also provide information about the state of the application. When we talk about HATEOAS, we have to deal with the following two main principles:

  • Hypermedia/mime-types/media-types/content-types: The hypermedia of a resource describes the current state of a resource. You can look at this as a sort of contract that describes the resource we're working with. So, ...

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