mirror of https://gitee.com/bigwinds/arangodb
742 B
742 B
@startDocuBlock get_api_database_user @brief retrieves a list of all databases the current user can access
@RESTHEADER{GET /_api/database/user, List of accessible databases, getDatabases:user}
@RESTDESCRIPTION Retrieves the list of all databases the current user can access without specifying a different username or password.
@RESTRETURNCODES
@RESTRETURNCODE{200} is returned if the list of database was compiled successfully.
@RESTRETURNCODE{400} is returned if the request is invalid.
@EXAMPLES
@EXAMPLE_ARANGOSH_RUN{RestDatabaseGetUser} var url = "/_api/database/user"; var response = logCurlRequest('GET', url);
assert(response.code === 200);
logJsonResponse(response);
@END_EXAMPLE_ARANGOSH_RUN @endDocuBlock