Differences between revisions 3 and 4
Revision 3 as of 2011-11-23 15:06:42
Size: 752
Editor: 62
Comment: add ContributorGroup link
Revision 4 as of 2018-04-13 05:40:33
Size: 0
Editor: JoanTouzet
Comment: migrated
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<Include(EditTheWiki)>>

= HTTP GET _all_dbs =

||'''Method'''||<-2>GET||
||'''Path'''||<-2>/_all_dbs||
||'''Query args'''||<-2>None||
||'''Request body'''||<-2>None||
||'''Response body'''||<-2>JSON array containing a list of all databases on server||

== Description ==

Returns a list of databases on this server. The returned database names are unescaped, and may contain characters that need to be properly escaped to be used as the database part in an URL. Most notably, databases in subdirectories contain one or more slashes in their names, and these must be escaped as {{{%2F}}} when used in URLs.

== Example ==
{{{
GET /_all_dbs HTTP/1.1
}}}{{{
HTTP/1.1 200 OK
Cache-Control: must-revalidate

["foo","bar","baz"]
}}}