Changes

Jump to navigation Jump to search
42 bytes added ,  11:27, 28 March 2015
no edit summary
=Request=
==GETMethod==
If the GET method is used, all query parameters are directly specified within the URL.
* The next URL lists all database users that are known to BaseX:<br/><code>http://localhost:8984/rest?command=show+users</code>
==POSTMethod==
The body of a POST request is interpreted as XML fragment, which specifies the
</pre>
==PUTMethod==
The PUT method is used to create new databases, or to add or update existing database resources:
Have a look at the [[REST#Usage Examples|usage examples]] for more detailed examples using Java and shell tools like cURL.
==DELETEMethod==
The DELETE method is used to delete databases or resources within a database.
=Assigning Variables=
==GETMethod==
All query parameters that have not been processed before will be treated as variable assignments:
The dollar sign can be omitted as long as the variable name does not equal a parameter keyword (e.g.: <code>method</code>).
==POSTMethod==
If <code>query</code> or <code>run</code> is used as operation, external variables can be specified via the <code><variable/></code> element:
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu