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

bracket support in annotation as jax-rs #120

Open
mrenou opened this issue May 5, 2015 · 1 comment
Open

bracket support in annotation as jax-rs #120

mrenou opened this issue May 5, 2015 · 1 comment

Comments

@mrenou
Copy link

mrenou commented May 5, 2015

Hello,

When I write this :

@Get("/avatars/:userId.png")
public Payload getAvatar(String userId) {

}

With the http call "GET /avatars/42.png", I expect to have userid equals to "42", actualy, I have userId equals to "42.png".

May be, you could add bracket support, to isolate the variable name, as in jax-rs :

@Get("/avatars/:{userId}.png")
public Payload getAvatar(String userId) {

}

Thanks.

@mgohin
Copy link

mgohin commented Jun 16, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants