spring-projects / spring-projects/spring-hateoas
Declarative linking via annotations
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
are there any plans or interest to add linking via annotations?
I initially used this concept in RESTEasy where it was called @LinkResource. When we switched to Jersey, I missed it so much that I contributed the behavior to Jersey as @ProvideLink.
The basic idea is that you define the links on the methods that they should point to, and say which representations/EntityModels should be enhanced. Doing it this way gets rid of repetitive writing of the same links in multiple methods that return the same model. Furthermore, you don't need to specify the method anymore, since it is already defined due to the presence of the link.
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
No repository files, tests, or entry points are identified. Review the linked RESTEasy @LinkResource and Jersey @ProvideLink documentation, then compare their behavior with Spring HATEOAS. Done means defining the annotation model, selecting which representations receive links, and removing repetitive link declarations without leaving the target behavior ambiguous.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100