Changes

Jump to navigation Jump to search
364 bytes removed ,  12:29, 18 February 2015
no edit summary
* '''Options''':<br/>Specified [[Options]] are applied before the actual operation will be performed.
* '''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.
* '''Wrap''':<br/>The <code>wrap</code> parameter encloses all query results with XML elements, using the <code>http://basex.org/rest</code> namespace.
While '''Options''' can be specified for all operations, the remaining parameters will only make sense for '''Query''' and '''Run'''.
* Lists all resources found in the '''tmp''' path of the ''factbook'' database:<br/><code>http://localhost:8984/rest/factbook/tmp</code>
 
* 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>
* Serializes a document as JSONML:<br/><code>http://localhost:8984/rest/factbook/factbook.xml?method=json&json=format=jsonml</code>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu