From CRUD to Hypermedia APIs with Spring
summary
Shows a live Spring Boot prototype that starts from auto-exposed CRUD (Spring Data REST + HSQLDB + JPA) and adds real business actions — publish and expire — implemented as POSTable subresources and guarded by lifecycle checks; server returns links that clients follow instead of hardcoded URLs. Uses Spring Data REST, Spring HATEOAS (ResourceProcessor, EntityLinks) to add action links, and Spring REST Docs + MockMvc to generate tested docs. Demo seeds 100 random ads, works end-to-end.
AI-written summary · about
chapters (18)
- 0:00Introduction and thanks
- 2:30About the talk and speaker
- 3:32Project idea: Black market currency API
- 4:14Setting up Spring project
- 6:38Domain model and repositories
- 9:48CRUD API with Spring Data Rest
- 13:21Limitations of CRUD APIs
- 14:24Adding business processes
- 16:54Implementing publishing and expiration
- 23:38Problems with URL-based APIs
- 26:26Introduction to Hypermedia APIs
- 27:28Adding hypermedia links with Spring HATEOAS
- 31:27Testing hypermedia API
- 35:19Hypermedia in real-world APIs
- 36:01Documenting APIs with Spring REST Docs
- 41:19Enforcing documentation completeness
- 42:23Summary and tools overview
- 43:07Q&A session
