Changes

Jump to navigation Jump to search
155 bytes removed ,  13:59, 18 June 2014
no edit summary
If a resource is not found, an HTTP response will be generated with <code>404</code> as status code.
==Operations==
The following '''operations''' can be used with GET requests:
 
* {{Code|query}}:<br/>Evaluates an XPath/XQuery expression. If a database or database path is specified in the URL, it is used as initial query context.
* {{Code|run}}:<br/>Runs an XQuery file or command script located on the server. The file path is resolved against the webapp directory (defined by <code>[[Options#WEBPATH|WEBPATH]]</code>). Before {{Version|7.9}}, only XQuery files could be evaluated.
* {{Code|command}}:<br/>Executes a [[Commands|database command]].
* If no operation is specified, a list of all databases, the resources of a database or the addressed resource is returned.
 
==Parameters==
Additionally, the The following '''parameters''' can be applied to the operations:
* '''Variables''':<br/>External variables can be ''bound'' before a query is evaluated ([[REST#Assigning Variables|see below]] for more).
If the GET method is used, all query parameters are directly specified within the URL.
Additionally, the following '''operations''' can be specified:
 
* {{Code|query}}:<br/>Evaluates an XPath/XQuery expression. If a database or database path is specified in the URL, it is used as initial query context.
* {{Code|run}}:<br/>Runs an XQuery file or command script located on the server. The file path is resolved against the webapp directory (defined by <code>[[Options#WEBPATH|WEBPATH]]</code>). Before {{Version|7.9}}, only XQuery files could be evaluated.
* {{Code|command}}:<br/>Executes a [[Commands|database command]].
; Examples
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu