spring-projects / spring-hateoas

Spring HATEOAS - Library to support implementing representations for hyper-text driven REST web services.
https://spring.io/projects/spring-hateoas
Apache License 2.0
1.04k stars 477 forks source link

Provide `HttpMessageConverter` for HAL-FORMS to fall back to HAL as content type #2227

Closed odrotbohm closed 1 month ago

odrotbohm commented 2 months ago

If the HAL-FORMS related processing of a RepresentationModel ends up without any templates added to the response, it would be nice if there was an easy way to fall back to HAL as media type of that response.

HAL Explorer currently only inspects the Content-Type for HAL-FORMS and disables all interaction elements not covered by templates. This causes issues for Spring Data REST's default resources.