Changes

Jump to navigation Jump to search
40 bytes added ,  22:55, 12 September 2011
Only one of the following '''operations''' can be specified:
* '''<code>query'''</code>&#58;<br/>Evaluates an XPath/XQuery expression.<br/>If a database or database path is specified in the URL, it is used as query context.* '''<code>run'''</code>&#58;<br/>Runs a query file located on the server.<br/>The query directory is defined by the <code>[[Options#HTTPPATH|HTTPPATH]]</code> option.* '''<code>command'''</code>&#58;<br/>Executes a [[Commands|database command]].
The following parameters can be applied to the '''query''' and '''run''' operations:
* '''<code>wrap'''</code>&#58;<br/>Wraps the results in XML elements (default: <code>no</code>).* '''Variables'''&#58;<br/>All query parameters prefixed with a dollar sign (<code>$</code>) will be treated as external variables. The parameter name and value will be bound to the query before it is evaluated.* '''[[Serialization]]''':<br/>All serialization parameters known to BaseX can be specified as query parameters. Parameters that are specified within a query will be interpreted by the REST server before the output is generated.
==Request Methods==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu