GET, PUT, DELETE, and POST can be used to interact with the database.
By default, REST services are available at {{Code|http://admin:admin@localhost:8984/rest/}}. Most browsers can be used to perform simple REST requests and display the response. When requesting the first result, you may need to enter your credentials (default: <code>admin</code>/<code>admin</code>, [[Web Application#User Management|see belowfurther]]). Some alternatives for using REST are listed in the [[#Usage Examples|Usage Examples]].
=URL Architecture=
</pre>
=User Management=
If the HTTP server is started with no pre-defined credentials, users and passwords can be sent via [http://en.wikipedia.org/wiki/Basic_access_authentication HTTP basic authentication] with each HTTP request. Login data can also be stored server-side in the <code>[[Web Application#Configuration|web.xml]]</code> file, or specified as [[Startup Options#BaseX HTTP Server|command-line arguments]].
With cURL, and most browsers, you can specify the user name and password with each HTTP request within the request string as plain text, using the format <code>USER:PASSWORD@URL</code>. An example:
: <code>http://admin:admin@localhost:8984/rest/factbook</code>
=Content Type=