spring-projects / spring-projects/spring-hateoas

Support for interface-driven controllers `linkTo(…)` on path variables

Open
#1,885 1 comment 0 reactions 1 assignee View on GitHub

@odrotbohm is already working on this.

Since Jan 12, 2023.

in: core process: waiting for feedback
Dominant language
Java
Stars
1.1k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

Hi, since Spring 5.1 "Controller parameter annotations get detected on interfaces as well: Allowing for complete mapping contracts in controller interfaces." I am trying to use the linkTo function on a class that implements an interface that has annotations on it for Path variables.

Unfortunately, currently, this does not resolve the actual value of the path variable and instead uses a template. Copying the annotation down to the implementing class is currently a workaround but not pretty or DRY. Is this a bug that is known?

I think #1081 documents this a little however never seems to have been looked at. I am now using spring boot 3.

Thanks

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.