Changes

Jump to navigation Jump to search
29 bytes removed ,  06:35, 7 February 2012
no edit summary
* '''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.
* '''Run''':<br/>Runs a query file located on the server. The query directory is defined by the <code>[[Options (Snapshot)#HTTPPATH|HTTPPATH]]</code> option.
* '''Command''':<br/>Executes a [[Commands|database command]].
* '''Get''':<br/>This is the default operation for the GET operation (it is not possible to use this operation in a POST request). It returns a list of all databases, the resources of a database or the addressed resource. If a resource with content type <code>application/xquery</code> is addressed, it will be evaluated first, and the result will be returned.
# By default, the content type of a response depends on the chosen operation:
#* '''Query'''/'''Run''' ? <code>application/xml</code>#* '''Command''' ? <code>text/plain</code>#* '''Get''' ? <code>application/xml</code>, or content type of the addressed resource
# The default content type is overwritten if a [[Serialization|serialization method]] is specified, either as [[#Query Parameters|query parameter]] or within the XQuery expression. The following methods are available:
#* <code>xml</code> ? <code>application/xml</code>#* <code>xhtml</code> ? <code>text/html</code>#* <code>html</code> ? <code>text/html</code>#* <code>text</code> ? <code>text/plain</code>#* <code>raw</code> ? <code>application/octet-stream</code>#* <code>json</code> or <code>jsonml</code> ? <code>application/json</code>
# The content type is overwritten in any case if a specific [[Serialization|media-type]] is chosen, again as query parameter or within the query.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu