Wrong hateoas relation
See original GitHub issueI’ve added springdoc-openapi-data-rest dependency (v1.3.2) to my project based on spring boot 2.2.6.RELEASE and hateoas relation in response are changed from:
{ "_embedded" : { "entityNameList" : [ {...}] }
to:
{ "_embedded" : { "entityName" : [ {...}] }
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
HATEOAS links are wrong if using JsonSubTypes
I am using spring data rest with Mongo to expose a class with multiple subtypes. When I do this, HATEOAS is compartmentalizing the...
Read more >Spring HATEOAS - Reference Documentation
Spring HATEOAS lets you work with links through its immutable Link value type. Its constructor takes both a hypertext reference and a link ......
Read more >Modifying one-to-many relationships with HATEOAS
A few options I have envisaged are: 1) Post back the HATEOAS data intact, with the href modified to point to the new...
Read more >An Intro to Spring HATEOAS - Baeldung
This article explains the process of creating hypermedia-driven REST web service using the Spring HATEOAS project.
Read more >HATEOAS Driven REST APIs
The hyperlink represents an operation you can do on the resource, not the resource itself. The employees relation is a bad example, it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Starting from the next release v1.3.10, the projects that rely on spring-hateoas only, can use:
The projects that rely on spring-data-rest can keep using springdoc-openapi-data-rest. This enhancement will not be a breaking change, as springdoc-openapi-data-rest will depend on springdoc-openapi-hateoas.
Any project that was already using springdoc-openapi-data-rest dependency can keep using it.
@davidepedone and @valentinabojan,
Thank you for your feedback. I guess, for projects relying only spring-hateoas and not on spring-data-rest-core, it would be useful to update the documentation to exclude evo-inflector.
The ideal would be to split springdoc-openapi-data-rest into two modules which will make the integration easier for spring-hateos projects: