; Examples
* The first example lists all resources found in the '''tmp''' path of the ''xmark'' database:<br/><code>[http://admin:admin@localhost:8984/rest/factbook/tmp http://admin:admin@localhost:8984/rest/factbook/tmp]</code>
* The first example prints the city names from the ''factbook'' database and encloses all results with a <code><rest:result/></code> elements:<br/><code>[http://admin:admin@localhost:8984/rest/factbook?query=/tmp /city/name&wrap=yes http://admin:admin@localhost:8984/rest/factbook?query=//city/tmpname&wrap=yes]</code>
The first example prints * In the city names from next request, <code>US-ASCII</code> is chosen as output encoding, and the ''factbook'' database and enclosesall results with a query <code>eval.xq</code> is evaluated:<br/><code>[http://admin:admin@localhost:8984/rest?run=eval.xq<restencoding=US-ASCII http://admin:admin@localhost:result8984/rest?run=eval.xq>encoding=US-ASCII]</code> elements:
:<code>[http://admin:admin@localhost:8984/rest/factbook?query=//city/name&wrap=yes http://admin:admin@localhost:8984/rest/factbook?query=//city/name&wrap=yes]</code> In the next request, <code>US-ASCII</code> is chosen as output encoding, and the query <code>eval.xq</code> is evaluated: :<code>[http://admin:admin@localhost:8984/rest?run=eval.xq&encoding=US-ASCII http://admin:admin@localhost:8984/rest?run=eval.xq&encoding=US-ASCII]</code> * The next URL turns on XML wrapping and lists all database users that are known to BaseX: :<br/><code>[http://admin:admin@localhost:8984/rest?command=show+users http://admin:admin@localhost:8984/rest?command=show+users]</code>
===POST Requests===