-
Notifications
You must be signed in to change notification settings - Fork 563
DATAREST-2087 Add support of path on RepositoryRestController #2088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@yyvess Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
|
@yyvess Thank you for signing the Contributor License Agreement! |
f34e18a to
0111399
Compare
|
@RequestMappig supports an array of paths so I believe we should do the same for @RepositoryRestController |
| String value() default ""; | ||
|
|
||
| @AliasFor("value") | ||
| String path() default ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RequestMapping allows specifying more than one path, should we do the same here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alienisty I agree, I just update it
0111399 to
7e18b17
Compare
|
Hope this gets merged soon been a long time . For now we had to do a lot of refactor to avoid this in our latest migration :| |
|
can we please triage this |
|
We are definitely running into this issue as well, and we have a ton of AbstractControllers with a lot of methods that we inherit. Gettting this fix into the 2.7.x line of Spring Boot would be extremely helpful. |
|
Commit of this PR was cherry-pick to main branch (Spring data version 4.0.0-M5) |
|
Merged by cherry-pick |
Fix #2087
Add a field "path/value" on the annotation @RepositoryRestController to be able to set a root path at class level.