Book Image

RESTful Java Web Services, Second Edition

Book Image

RESTful Java Web Services, Second Edition

Overview of this book

Table of Contents (17 chapters)
RESTful Java Web Services Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Building Hypermedia as the Engine of Application State (HATEOAS) APIs


HATEOAS is a constraint of the REST application architecture that keeps the RESTful style architecture unique from most other network application architectures. This architectural style lets you use hypermedia links in the response contents so that the client can dynamically navigate to the appropriate resource by traversing the hypermedia links. This is conceptually the same as a web user navigating through web pages by clicking the appropriate hyperlinks in order to achieve a final goal. We have briefly covered this topic in Chapter 1, Introducing the REST Architectural Style, under the Hypermedia as the Engine of Application State section. In this section, we will learn how to build HATEOAS APIs using JAX-RS as well as Jersey APIs.

Before we get into the details of the JAX-RS and Jersey offerings, let us take a step back to understand how HATEOAS APIs are implemented in typical RESTful web services. The following is...