spring-projects / spring-projects/spring-hateoas
Removing links
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
In order to save bits going through the wire I was wondering if it makes sense to have the possibility to remove links (except the self-link) in entity-resources of PagedResources. I tried to implement a ResourceProcessor that triggers the entity-projection and does a removeLinks() on that. Unfortunately it does not work as it seems that the rest of the relationship-links are rendered at a later time.
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 tracing how ResourceProcessor, entity-projection, and PagedResources render relationship links, since the issue reports that links are added after removeLinks() runs. Done means defining and documenting a supported way to omit relationship links from PagedResources entity-resources while retaining the self-link.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100