Changes

Jump to navigation Jump to search
365 bytes added ,  13:49, 30 January 2019
=Conventions=
* The module will be available if the {{Code|basex-api}} package must be included library is found in the classpath. This is always the case if you use one of the complete distributions of BaseX (zip, exe, war) of BaseX.* All functions are assigned to the <code><nowiki>http://exquery.org/ns/restxq</nowiki></code> namespace, which is statically bound to the {{Code|rest}} prefix. The Prior to {{Version|9.2}}, the module must needed to be imported in the query prolog:
<pre class="brush:xquery">
import module namespace rest = "http://exquery.org/ns/restxq";
...
</pre>
* In this documentation, the namespace is bound to the {{Code|rest}} prefix, and the The <code><nowiki>http://wadl.dev.java.net/2009/02</nowiki></code> namespace is bound to the {{Code|wadl}} prefix.* If any of the functions is called outside the servlet context, the error {{Error|BXSE0003|<code>[[XQuery Errors#BaseX Errors}} |basex:http]]</code> is raised.
=General Functions=
==rest:base-uri==
 
{| width='100%'
|-
|-
| '''Summary'''
|This function returns Returns the implementation-defined base URI of the resource function.
|}
==rest:uri==
 
{| width='100%'
|-
|-
| '''Summary'''
|This function returns Returns the complete URI that addresses the Resource Function. This is the result of [[#rest:base-uri|rest:base-uri]] appended with the path from the path annotation of the resource function.
|}
==rest:wadl==
 
{| width='100%'
|-
|-
| '''Summary'''
|This (unofficial) function returns Returns a [http://www.w3.org/Submission/wadl WADL description] of all available REST services.|} ==rest:init== {| width='100%'|-| width='120' | '''Signatures'''|{{Func|rest:init||empty-sequence()}}|-| '''Summary'''|Initializes the RESTXQ module cache. This function should be called after RESTXQ modules have been replaced while the web server is running, and if {{Option|PARSERESTXQ}} is not set to {{Code|0}}.
|}
=Changelog=
 
;Version 8.6
 
* Added: [[#rest:init|rest:init]]
This module was introduced with Version 7.7.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu