spring-hateoas
spring-hateoas copied to clipboard
Spring HATEOAS - Library to support implementing representations for hyper-text driven REST web services.
Hi, since Spring 5.1 "Controller parameter annotations get detected on interfaces as well: Allowing for complete mapping contracts in controller interfaces." I am trying to use the linkTo function on...
Given the following classes, `ControllerLinkBuilder.linkTo(methodOn(FooApiImpl.class).getFoo("someId"))` ignores the path param. ```` public interface FooApi { @RequestMapping(value = "/foos/{foo-id}", method = RequestMethod.GET) ResponseEntity getFoo(@PathVariable(value="foo-id") String fooId); } @Controller @RequestMapping("/basePath") public class FooApiImpl...
Hello, I have a ResourceProcessor that's adding links to a resource: ``` linkTo(methodOn(MyController.class) .findMyElements(file.getId(), null, null)) .withRel("filterFiles")) ``` The controller looks like this: ```java @RequestMapping(method = { POST, GET },...
Hello. I would like to know if you have plans for supporting HAL/XML in the future. Since I have seen some other people asking this same question in the past,...
Similar to what the actual javascript client support: https://github.com/basti1302/traverson#post-put-delete-and-patch
Suppose we have this method ``` java @RequestMapping(value= "list") public HttpEntity getList( @RequestParam(value = "text1", required = false) String text1, @RequestParam(value = "text2", required = false) String text2, @RequestParam(value =...
We have a REST service which is implement with SpringBoot and HATEOAS. The following method exists within the WebService ``` @Override public ResponseEntity getCar(String carId) { Car car = carService.findById(carId).orElseThrow(()...
With Spring Framework 6.0 providing first-class support for RFC-7807 (see https://github.com/spring-projects/spring-framework/issues/27052), Spring HATEOAS should probably deprecate its own RFC-7807 support.
WebMvcLinkBuilder fails with a non-optional request parameter when calling toUriComponentsBuilder()
When using WebMvcLinkBuilder to build a link to a controller method with a non-optional request parameter, invoving toUriComponentsBuilder() fails. Version 1.5.0 is fine, 1.5.1 has the issue. I've created a...
When using "Embedded Values" in spring, WebMvcLinkBuilder does not correctly resolve the value. This does not seem to be an esoteric way of writing a RestController, as among other things...