Open mkhl opened 5 years ago
Since new efforts target Spring Boot 2.2, I’ve created #1052 to focus on smoothing the connection between these two.
I need to review Spring Boot’s usage of hypermedia to ensure they are doing things properly as well so the whole experience makes sense.
That's great to hear!
Since Actuator is just an example, I assume the way to support other media types is as described in https://docs.spring.io/spring-hateoas/docs/1.0.0.RC1/reference/html/#mediatypes.custom, and possibly by extending HalMediaTypeConfiguration
if the type is compatible with HAL?
I'm using Spring 5.1.8, Spring Boot 2.1.6, and Spring HATEOAS 0.25.1.
As an example, I want to access Spring Boot Actuator resources, which are transmitted with the media type
application/vnd.spring-boot.actuator.v2+json
.For that to work, I have to provide a
LinkDiscoverer
for that media type:The definition is basically a copy of
HalLinkDiscoverer
since I cannot create instances of that with a custom media type, or access the JSON Path template.It would be nice if creating
LinkDiscoverer
s for HAL+JSON-compatible media types were easier.