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
Registry Functions: WADL? #15
Comments
Hi Christian, It was always the intention to add WADL support but to make it optional. The problem with a function is it becomes much harder for it to be optional, unless we say that it can return an error/empty-sequence if WADL is not supported. I always intended to add an application.wadl auto-url which could be disabled, and or excluded by annotation. See here - https://wikis.oracle.com/display/Jersey/WADL So the answer is, sure I like the idea, but how to make it optional in a sane way so that implementations are not required to support WADL |
Hi Adam, thanks for the Jersey link. I didn’t find any information, though, how WADLs can be disabled or excluded. The only hint I found is described in this weblog. Regarding the proposal to add a function, I like the error alternative, as it is done with various optional XQuery features. One other advantage I see for having a wadl function is that its result can be further processed in XQuery before it’s sent back as reponse. One could e.g. restrict the WADL output to admin users within XQuery. |
I find the WADL function useful, but it is not a replacement for |
Thanks for your assessment. If I get it right, rest:resource-functions returns a document node containing all function signatures. Is there any more recent specification, or do you refer to this spec.? |
The specification seems to need a bit more detail to me :-) in particular
shows both the REST url and the corresponding implementation location. I think this is useful information. Maybe the |
I had certainly intended to create a Schema for the result of rest:resource-function, but have not yet found the time. The output is currently as described in the email that @apb2006 found. Obviously the bug mentioned in the email about output parameters needs to be addressed too. |
We have just added a function
rest:wadl
to our RESTXQ Function Module, which includes a WADL description of all available services. One advantages overrest:resource-functions
is that WADL also allows for comments on paths and parameters in the output. The following example demonstrates how the output for a function looks like:Described RESTXQ Function:
XML Representation:
@adamretter what’s your opinion on this?
The text was updated successfully, but these errors were encountered: