diff --git a/src/api/server/common.rst b/src/api/server/common.rst index 0a26d78a..222b8967 100644 --- a/src/api/server/common.rst +++ b/src/api/server/common.rst @@ -225,6 +225,76 @@ ``/_dbs_info`` ============== +.. versionadded:: 3.2 + +.. http:get:: /_dbs_info + :synopsis: Returns all databases information + + Returns a list of all the databases information in the CouchDB instance. + + :
header Content-Type: - :mimetype:`application/json` + - :mimetype:`text/plain; charset=utf-8` + :code 200: Request completed successfully + + **Request**: + + .. code-block:: http + + GET /_dbs_info HTTP/1.1 + Accept: application/json + Host: localhost:5984 + + **Response**: + + .. code-block:: http + + HTTP/1.1 200 OK + Cache-Control: must-revalidate + Content-Type: application/json + Date: Thu, 18 Nov 2021 14:37:35 GMT + Server: CouchDB (Erlang OTP/23) + + [ + { + "key": "animals", + "info": { + "db_name": "animals", + "update_seq": "52232", + "sizes": { + "file": 1178613587, + "external": 1713103872, + "active": 1162451555 + }, + "purge_seq": 0, + "doc_del_count": 0, + "doc_count": 52224, + "disk_format_version": 6, + "compact_running": false, + "cluster": { + "q": 8, + "n": 3, + "w": 2, + "r": 2 + }, + "instance_start_time": "0" + } + } + ] + .. versionadded:: 2.2 .. http:post:: /_dbs_info