{ "basePath": "/", "swaggerVersion": "1.1", "apiVersion": "0.1", "apis": [ { "operations": [ { "errorResponses": [ { "reason": "is returned if the list of database was compiled successfully.

", "code": "200" }, { "reason": "is returned if the request is invalid.

", "code": "400" }, { "reason": "is returned if the request was not executed in the _system database.

", "code": "403" } ], "parameters": [], "notes": "Retrieves the list of all existing databases

Note: retrieving the list of databases is only possible from within the _system database.

", "summary": " List of databases", "httpMethod": "GET", "examples": "



shell> curl --dump - http://localhost:8529/_api/database\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    \"_system\" \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n



", "nickname": "ListOfDatabases" } ], "path": "/_api/database" }, { "operations": [ { "errorResponses": [ { "reason": "is returned if the list of database was compiled successfully.

", "code": "200" }, { "reason": "is returned if the request is invalid.

", "code": "400" } ], "parameters": [], "notes": "Retrieves the list of all databases the current user can access without specifying a different username or password.

", "summary": " List of accessible databases ", "httpMethod": "GET", "examples": "



shell> curl --dump - http://localhost:8529/_api/database/user\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n  \"result\" : [ \n    \"_system\" \n  ], \n  \"error\" : false, \n  \"code\" : 200 \n}\n



", "nickname": "ListOfAccessibleDatabases" } ], "path": "/_api/database/user" }, { "operations": [ { "errorResponses": [ { "reason": "is returned if the information was retrieved successfully.

", "code": "200" }, { "reason": "is returned if the request is invalid.

", "code": "400" }, { "reason": "is returned if the database could not be found.

", "code": "404" } ], "parameters": [], "notes": "Retrieves information about the current database

The response is a JSON object with the following attributes: