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

[ADD] RESTXQ: added %restxq:http-method() analogous to javax.ws.rs.HttpMethod #935

Closed
wants to merge 1 commit into from

Conversation

dimitarp
Copy link
Member

No description provided.

@ChristianGruen
Copy link
Member

What's the main motivation for adding this annotation? Is it e.g. required for custom WebDAV methods?

@dimitarp
Copy link
Member Author

Yes, the main motivation is implementing the WebDAV server using RESTXQ. Another reason is that the JAX-RS API also provides this annotation, and RESTXQ claims to be based upon it.

@ChristianGruen
Copy link
Member

Sounds reasonable! Let’s see if this will be discussed in the EXQuery issue tracker (#22).

@ChristianGruen
Copy link
Member

I now tend to rename the annotation to %rest:method, because (as I get it) 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

Successfully merging this pull request may close these issues.

None yet

2 participants