From 865c89a0f13365d2b3352580c632b7943061564b Mon Sep 17 00:00:00 2001 From: ibsoln <52778946+ibsoln@users.noreply.github.com> Date: Wed, 4 Aug 2021 08:17:49 +0100 Subject: [PATCH] DOC-8925 -- Add all_dbs endpoint https://issues.couchbase.com/browse/DOC-8925 --- .../attachments/sync-gateway-admin.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/modules/ROOT/assets/attachments/sync-gateway-admin.yaml b/modules/ROOT/assets/attachments/sync-gateway-admin.yaml index 642f36978..1e9eca1d3 100644 --- a/modules/ROOT/assets/attachments/sync-gateway-admin.yaml +++ b/modules/ROOT/assets/attachments/sync-gateway-admin.yaml @@ -88,6 +88,23 @@ paths: items: type: object $ref: '#/definitions/ActiveTaskResponseBody' + + /_all_dbs: + get: + tags: + - server + summary: Lists node's databases + description: |+ + Return a list all databases running on the node + responses: + 200: + description: |+ + OK -- Operation successful + + The response body contains a string array containing the names of all databases running on this sync gateway node + schema: + $ref: '#/definitions/all_dbs' + /{db}/_bulk_docs: parameters: - $ref: '#/parameters/db' @@ -1795,6 +1812,16 @@ definitions: status: type: string description: The current status of sgcollect_info + all_dbs: + type: object + properties: + db-names: + type: array + description: |+ + A string array containing the names of all databases running on this sync gateway node + + For example ```["db1","db2"]``` + ExpVars: type: object properties: