Skip to content

Commit c0a5edb

Browse files
torcolvinsimon-dew
andauthored
[3.2.5 backport] openapi docs improvements (#7517)
Co-authored-by: Simon Dew <[email protected]>
1 parent 9376260 commit c0a5edb

29 files changed

+306
-517
lines changed

docs/api/admin.yaml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ paths:
3939
$ref: './paths/admin/keyspace-_raw-docid.yaml'
4040
'/{keyspace}/_revtree/{docid}':
4141
$ref: './paths/admin/keyspace-_revtree-docid.yaml'
42+
'/{db}/':
43+
$ref: './paths/admin/db-.yaml'
44+
/_all_dbs:
45+
$ref: ./paths/admin/_all_dbs.yaml
4246
'/{db}/_user/':
4347
$ref: './paths/admin/db-_user-.yaml'
4448
'/{db}/_user/{name}':
@@ -59,8 +63,6 @@ paths:
5963
$ref: './paths/admin/db-_replicationStatus-.yaml'
6064
'/{db}/_replicationStatus/{replicationid}':
6165
$ref: './paths/admin/db-_replicationStatus-replicationid.yaml'
62-
/_logging:
63-
$ref: ./paths/admin/_logging.yaml
6466
'/_profile/{profilename}':
6567
$ref: './paths/admin/_profile-profilename.yaml'
6668
/_profile:
@@ -123,35 +125,22 @@ paths:
123125
$ref: './paths/admin/keyspace-_dumpchannel-channel.yaml'
124126
'/{db}/_repair':
125127
$ref: './paths/admin/db-_repair.yaml'
126-
/_all_dbs:
127-
$ref: ./paths/admin/_all_dbs.yaml
128128
'/{db}/_compact':
129129
$ref: './paths/admin/db-_compact.yaml'
130-
'/{db}/':
131-
$ref: './paths/admin/db-.yaml'
132130
'/{keyspace}/':
133131
$ref: './paths/admin/keyspace-.yaml'
134132
/_expvar:
135-
# use the same path as for metrics
136-
$ref: ./paths/metric/_expvar.yaml
133+
$ref: ./paths/admin/_expvar.yaml
137134
/:
138135
$ref: ./paths/admin/-.yaml
139136
/_ping:
140137
$ref: ./paths/common/_ping.yaml
141-
'/{keyspace}/_all_docs':
142-
$ref: './paths/admin/keyspace-_all_docs.yaml'
143-
'/{keyspace}/_bulk_docs':
144-
$ref: './paths/admin/keyspace-_bulk_docs.yaml'
145-
'/{keyspace}/_bulk_get':
146-
$ref: './paths/admin/keyspace-_bulk_get.yaml'
147138
'/{keyspace}/_changes':
148139
$ref: './paths/admin/keyspace-_changes.yaml'
149140
'/{db}/_design/{ddoc}':
150141
$ref: './paths/admin/db-_design-ddoc.yaml'
151142
'/{db}/_design/{ddoc}/_view/{view}':
152143
$ref: './paths/admin/db-_design-ddoc-_view-view.yaml'
153-
'/{db}/_ensure_full_commit':
154-
$ref: './paths/admin/db-_ensure_full_commit.yaml'
155144
'/{keyspace}/_revs_diff':
156145
$ref: './paths/admin/keyspace-_revs_diff.yaml'
157146
'/{keyspace}/_local/{docid}':
@@ -160,10 +149,12 @@ paths:
160149
$ref: './paths/admin/keyspace-docid.yaml'
161150
'/{keyspace}/{docid}/{attach}':
162151
$ref: './paths/admin/keyspace-docid-attach.yaml'
163-
'/{db}/_facebook':
164-
$ref: './paths/admin/db-_facebook.yaml'
165-
'/{db}/_google':
166-
$ref: './paths/admin/db-_google.yaml'
152+
'/{keyspace}/_all_docs':
153+
$ref: './paths/admin/keyspace-_all_docs.yaml'
154+
'/{keyspace}/_bulk_docs':
155+
$ref: './paths/admin/keyspace-_bulk_docs.yaml'
156+
'/{keyspace}/_bulk_get':
157+
$ref: './paths/admin/keyspace-_bulk_get.yaml'
167158
'/{db}/_oidc':
168159
$ref: './paths/admin/db-_oidc.yaml'
169160
'/{db}/_oidc_challenge':
@@ -173,18 +164,26 @@ paths:
173164
'/{db}/_oidc_refresh':
174165
$ref: './paths/admin/db-_oidc_refresh.yaml'
175166
'/{db}/_oidc_testing/.well-known/openid-configuration':
176-
$ref: './paths/admin/db-_oidc_testing-.well-known-openid-configuration.yaml'
167+
$ref: './paths/common/db-_oidc_testing-.well-known-openid-configuration.yaml'
177168
'/{db}/_oidc_testing/authorize':
178-
$ref: './paths/admin/db-_oidc_testing-authorize.yaml'
169+
$ref: './paths/common/db-_oidc_testing-authorize.yaml'
179170
'/{db}/_oidc_testing/token':
180-
$ref: './paths/admin/db-_oidc_testing-token.yaml'
171+
$ref: './paths/common/db-_oidc_testing-token.yaml'
181172
'/{db}/_oidc_testing/certs':
182-
$ref: './paths/admin/db-_oidc_testing-certs.yaml'
173+
$ref: './paths/common/db-_oidc_testing-certs.yaml'
183174
'/{db}/_oidc_testing/authenticate':
184-
$ref: './paths/admin/db-_oidc_testing-authenticate.yaml'
175+
$ref: './paths/common/db-_oidc_testing-authenticate.yaml'
185176
'/{db}/_blipsync':
186177
$ref: './paths/admin/db-_blipsync.yaml'
187-
178+
# deprecated endpoints, put at the end to show up at the bottom
179+
'/{db}/_facebook':
180+
$ref: './paths/admin/db-_facebook.yaml'
181+
'/{db}/_google':
182+
$ref: './paths/admin/db-_google.yaml'
183+
'/{db}/_ensure_full_commit':
184+
$ref: './paths/common/db-_ensure_full_commit.yaml'
185+
/_logging:
186+
$ref: ./paths/admin/_logging.yaml
188187
tags:
189188
- name: Authentication
190189
description: Manage authentication

docs/api/components/responses.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,12 @@ user_access_span_response:
192192
application/json:
193193
schema:
194194
$ref: ./schemas.yaml#/doc_access_spans
195+
expvar_reponses:
196+
'200':
197+
description: |-
198+
Successfully returned statistics.
199+
For details, see [JSON Metrics](stats-monitoring-json.html).
200+
content:
201+
application/json:
202+
schema:
203+
$ref: ./schemas.yaml#/ExpVars

0 commit comments

Comments
 (0)