spring-projects / spring-projects/spring-hateoas
AnnotationMappingDiscoverer should return polished mapping for mapping without leading slash.
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
Given a mapped type
@Path("/foo/bar")
interface Foo {
@Path("method")
void method();
}
AnnotationMappingDiscoverer returns foo/barmethod method for the method mapping, whereas /foo/bar/method is more correct.
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 locating AnnotationMappingDiscoverer and trace how the type-level /foo/bar and method-level method mappings are combined. Reproduce the issue with the Java example in the report, then verify that the discovered method mapping is /foo/bar/method rather than foo/barmethod.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100