Chapter 6. Implementing HATEOAS

This chapter contains the following recipes:

  • Turning DTOs into Spring HATEOAS resources
  • Building links for a Hypermedia-driven API
  • Choosing a strategy to expose JPA entities
  • Retrieving data from a third-party API with OAuth

Introduction

What is HATEOAS? If you have never seen this word before, it can appear to be difficult to pronounce. Some pronounce it hate-ee-os; others say hate O-A-S. The important point is to remember that this abbreviation stands for Hypermedia as the Engine of Application State (HATEOAS). At the very least, you should remember Hypermedia. Hypermedia as a resource's capability to embed nodes that target external resources. Being connected to other resources, a hypermedia resource is also constrained ...

Get Spring MVC Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.