spring-projects / spring-projects/spring-hateoas

Is it possible to add custom parameters to templated links?

Open
#732 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.