Changes

Jump to navigation Jump to search
113 bytes removed ,  11:14, 29 April 2014
; Examples
* The first example lists Lists all resources found in the '''tmp''' path of the ''factbook'' database:<br/><code>http://localhost:8984/rest/factbook/tmp</code>
* The first example prints Prints the city names from the ''factbook'' database and encloses all results with a <code>&lt;rest:result/&gt;</code> elements:<br/><code>http://localhost:8984/rest/factbook?query=//city/name&wrap=yes</code>
* In the next request, <code>US-ASCII</code> is chosen Serializes a document as output encoding, and the query <code>eval.xq</code> is evaluatedJSONML:<br/><code>http://localhost:8984/restfactbook/factbook.xml?runmethod=eval.xqjson&encodingjson=format=US-ASCIIjsonml</code>
* The next URL turns on XML wrapping <code>US-ASCII</code> is chosen as output encoding, and lists all database users that are known to BaseXthe query <code>eval.xq</code> is evaluated:<br/><code>http://localhost:8984/rest?commandrun=eval.xq&encoding=show+usersUS-ASCII</code>
* The last example includes an next URL lists all database users that are known to disallow [[Options#XQUERY3|XQuery 3.0]] expressionsBaseX:<br/><code>http://localhost:8984/rest?querycommand=12345&xquery3=falseshow+users</code>
==POST Requests==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu