spring-projects / spring-projects/spring-hateoas
Is it possible to add custom parameters to templated links?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to add custom parameters to template links?
In short we use ControllerLinkBuilder to create template links. But now we need to add some parameters to link that are not explicitly used in controller.
Lets assume that they are some general parameters that are parsed in servlet filter. These parameters are general for all controllers. So we doesn't want to declare them in every controller.
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 examining ControllerLinkBuilder and how it creates templated links, then trace how servlet filters receive general parameters. Define the expected behavior for parameters not declared by a controller and identify the relevant link-building tests; done means the behavior is specified and covered without requiring declarations in every controller.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100