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

New annotation %rest:http-method #22

Open
ChristianGruen opened this issue Apr 27, 2014 · 2 comments
Open

New annotation %rest:http-method #22

ChristianGruen opened this issue Apr 27, 2014 · 2 comments

Comments

@ChristianGruen
Copy link
Member

Some interfaces, such as WebDAV, require additional HTTP methods. I would propose to add the http-method annotation, in analogy with javax.ws.rs.HttpMethod.

@apb2006
Copy link

apb2006 commented Apr 27, 2014

Implementing PATCH methods would be another use for this:

http://www.mnot.net/blog/2012/09/05/patch
http://williamdurand.fr/2014/02/14/please-do-not-patch-like-an-idiot/

@ChristianGruen
Copy link
Member Author

I now tend to rename the annotation to %rest:method, because the JAX-RS annotation @HttpMethod has initially been introduced to define custom annotations (as e. g. shown here). Beside that, the rest prefix avoids conflicts with competing annotations.

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