spring-hateoas
spring-hateoas copied to clipboard
Spring HATEOAS - Library to support implementing representations for hyper-text driven REST web services.
Section [3.3 Affordances](https://docs.spring.io/spring-hateoas/docs/1.1.0.RELEASE/reference/html/#server.affordances) is unclear, it explains how to to implement affordances but not what an affordance is. Suggest you add example output Json that is returned from the findOne...
It's possible to create an immutable type where you have no setters. Instead, everything is built upon either constructor calls or ["@With"](https://projectlombok.org/features/With) or whatever, and the existing code would PROBABLY...
Hello, Let's consider the following controller: ```java @RequestMapping("/foos") public class FooController { @GetMapping public ResponseEntity list() { return ResponseEntity.ok( new CollectionModel( Collections.emptyList(), selfLink.andAffordance( afford( methodOn(FooController.class).create(null))))); } @PostMapping public ResponseEntity create(@RequestBody...
More and more, people are using our test example, `CustomHypermediaType`, to produce HAL-like JSON, but served under a different media type. To avoid questions like, "why doesn't this produce the...
In the spirit of moving away from decorating a register `WebClient` bean in the app context using a `BeanPostProcessor`, deprecate the class that defines one.
Controller method parameters annotated with MVC's `@ModelAttribute` currently do not get represented in HAL. Adding support for that Annotation (provided explictly or [implicitly](https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-ann-arguments)) would be appreciated. @gregturn suggested that `QueryParameter`,...
In the spirit of moving away from decorating a register `RestTemplate` bean in the app context using a `BeanPostProcessor`, deprecate the class that creates one.
@gregturn asked me on Gitter to create this issue. We talked about how one could add a 'contentType' property to a HAL-FORMS template element, either automagically or by hand. @ingogriebsch...
In Spring Boot 1.2 (I think) we added support for serving HAL in response to requests that accept application/json. This was originally mentioned in [this comment](https://github.com/spring-projects/spring-hateoas/pull/1064#issuecomment-528227035) but I think it...
Related: #1062