Get HATEOAS and Hypermedia right with Spring
summary
Practical walkthrough of adding hypermedia to an existing API using Spring HATEOAS and Spring Data REST with a live GitHub example: root discoverability returns HAL links, OPTIONS reveals allowed verbs, GET on a book includes a self and add-to-cart link, POST adds a book to a cart and PATCH sets purchased=true to produce a receipt URL. Shows mapping to controller methods (no hardcoded URIs), uses HAL as the hypermedia type, and demonstrates Jackson JSON views and field filtering to cut a 40‑field book payload.
AI-written summary · about
chapters (9)
- 0:00Introduction to HATEOAS
- 2:44HATEOAS and REST theory
- 4:48HATEOAS in practice
- 7:00Benefits for clients
- 11:24Real-world adoption
- 17:19API demo
- 25:01Hypermedia types
- 28:52Spring HATEOAS implementation
- 37:55Advanced JSON techniques
related talks
21mBuilding Flexible APIs with Spring HATEOAS
59mFrom CRUD to Hypermedia API with Spring
01h 03mMarching Happily Together with HATEOAS!
01h 31mCreating REST-ful, Hypermedia-based Micro-services with Spring Boot
47mHypermedia IRL
55mFrom REST to Hypermedia APIs with Spring
01h 35mSpring Data REST - Data Meets Hypermedia
50mBuilding Futureproof APIs with Spring HATEOAS
