Spring HATEOAS
-
Enterprise Java
Choosing Between Resource, EntityModel & RepresentationModel in Spring HATEOAS
When building hypermedia-driven REST APIs using Spring HATEOAS, a critical decision is how to model your API responses — especially…
Read More » -
Enterprise Java
Demo Project: How @BasePathAwareController Breaks Link Builders
This minimal example shows two controllers in a Spring Data REST app with base path /api: One using @BasePathAwareController —…
Read More » -
Enterprise Java
Testing Conditional Links with @WithMockUser in Spring Security
Hypermedia APIs provide not just data but also actions that users can take, often exposed as conditional links or affordances.…
Read More » -
Enterprise Java
When to Use Affordance vs. Link in Hypermedia Controls
Hypermedia as the engine of application state (HATEOAS) brings a new level of discoverability and self-documentation to REST APIs. In…
Read More » -
Enterprise Java
Fixing HalForms Template Rendering Errors in Spring HATEOAS
Spring HATEOAS (Hypermedia as the Engine of Application State) is a powerful library that simplifies the implementation of hypermedia-driven REST…
Read More » -
Enterprise Java
Migrating from Spring HATEOAS 1.x to 2.x: Common Pitfalls and How to Avoid Them
Upgrading from Spring HATEOAS 1.x to 2.x introduces significant changes that can impact your application if not handled carefully. This…
Read More » -
Enterprise Java
Why @EnableHypermediaSupport Breaks Some Auto-Configurations in Spring Boot
Spring Boot‘s auto-configuration mechanism simplifies application setup by automatically configuring beans based on classpath settings, other beans, and various property…
Read More » -
Enterprise Java
Understanding Why @Relation Annotations Sometimes Ignore Collection Names in Spring HATEOAS
In Spring HATEOAS, the @Relation annotation is instrumental in customizing the names of individual resources and their collections within hypermedia…
Read More » -
Enterprise Java
Resolving NoSuchMethodError with Link.of() in Spring Boot 3.x
Upgrading to Spring Boot 3.x introduces significant changes, including the migration from Spring Framework 5.x to 6.x and the transition…
Read More »
- 1
- 2