spring-projects / spring-projects/spring-hateoas
Rename property name of an embbed collection in Spring Hateos
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
Please, provide an option to set the name of an embbed collection via Resources or PagedResources constructor. Currently there is an option to use @Relation annotation, but that solution has it limitation.
Example: One of my controller method return ResponseEntity<Resources<Resource>> - by default collection name is set to "stringList" I would like to rename that collection without create a "virtual" wrapper class.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the Resources and PagedResources constructors and the existing @Relation handling described in the issue. Trace how the embedded collection name is derived for Resource responses, then verify that a caller can choose a different name without creating a wrapper class.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100