Skip to content
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

Allow actuator endpoint selectors to capture all paths #17743

Closed
philwebb opened this issue Jul 31, 2019 · 1 comment
Closed

Allow actuator endpoint selectors to capture all paths #17743

philwebb opened this issue Jul 31, 2019 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@philwebb
Copy link
Member

The @Selector annotation allows endpoints to capture path segments when exposed over the web. For example void find(@Selector String one, @Selector String two) will be mapped to /<root>/<endpoint>/find/{one}/{two}.

For some endpoints, it would be nice if we could capture all remaining path segments rather than limit ourselves to one. For example it would be nice if we could write void find(@MultiSelector String[] segments) and have it mapped to /<root>/<endpoint>/find/{*segements}. If a call such as /<root>/<endpoint>/find/spring/boot would invoke the method with a segments value of {"spring", "boot"}.

@philwebb
Copy link
Member Author

#14022 would be one example where we could use this.

@philwebb philwebb added this to the 2.2.x milestone Jul 31, 2019
@philwebb philwebb self-assigned this Jul 31, 2019
@philwebb philwebb added the type: enhancement A general enhancement label Jul 31, 2019
@snicoll snicoll modified the milestones: 2.2.x, 2.2.0.M5 Jul 31, 2019
@mbhave mbhave changed the title Allow actuaor endpoint selectors to capture all paths Allow actuator endpoint selectors to capture all paths Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants