Spring Data REST - Data Meets Hypermedia + Security
summary
Spring Data REST automatically exposes repositories as HAL hypermedia with Spring Data REST linking records, uses HAL+URI Templates and JSON Schema for metadata, and secures actions with method-level checks like @PreAuthorize. Demo app Spring-A-Gram uploads photos into items and galleries, shows links and embedded resources, handles browser limits (URI templates aren’t clickable) and answers OPTIONS caveats. Microservice deployment uses Eureka + Zuul + Hystrix, external config from GitHub, and a Hystrix fallback that returns a default image when the backend fails.
AI-written summary · about
chapters (27)
- 0:00Introduction to REST
- 2:56Spring Data REST overview
- 5:58Hypermedia and HAL
- 8:59Data model and links
- 13:38Interacting with data
- 17:17Project dependencies
- 20:44Using the HAL browser
- 26:51Interoperability and tools
- 29:43Consuming REST on client
- 33:21HTTP options and verbs
- 36:07Uploading images
- 39:01Security implementation
- 43:54Access control and projections
- 47:14Projections and serialization
- 50:17Security configuration details
- 53:29User management and roles
- 56:23Production security checklist
- 59:24Microservices concept
- 1:01:45Spring Cloud components
- 1:04:26Microservice demo setup
- 1:08:42Fault tolerance with Hystrix
- 1:12:06Fallback mechanisms
- 1:15:40External configuration
- 1:17:55Cloud Foundry deployment
- 1:22:08Hystrix dashboard monitoring
- 1:25:09Zuul routing and profiles
- 1:27:20Conclusion and resources
related talks
57mSecuring RESTful services with Spring HATEOAS and HDIV
01h 31mSecurity for Microservices with Spring and OAuth2
56mSecured REST Microservices with Spring Cloud
21mEmber & SOA
46mImplementing Microservices Security Patterns & Protocols with Spring Security
49mFrom Zero to Secured: Jakarta REST with MicroProfile and JWT Authentication
31mSecure-by-Default Spring Apps: Zero Trust, OAuth2, and Runtime Policies
50mArchitectural Patterns for Spring Security You Wish Your Tech Lead Knew
