-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathparameters.yaml
More file actions
520 lines (517 loc) · 13.7 KB
/
parameters.yaml
File metadata and controls
520 lines (517 loc) · 13.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
# Copyright 2022-Present Couchbase, Inc.
#
# Use of this software is governed by the Business Source License included
# in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
# in that file, in accordance with the Business Source License, use of this
# software will be governed by the Apache License, Version 2.0, included in
# the file licenses/APL2.txt.
DB-config-If-Match:
name: If-Match
in: header
required: false
schema:
type: string
description: 'If set to a configuration''s Etag value, enables optimistic concurrency control for the request. Returns HTTP 412 if another update happened underneath this one.'
Document-If-Match:
name: If-Match
in: header
required: false
schema:
type: string
description: An optimistic concurrency control (OCC) value used to prevent conflicts. Use the value returned in the ETag response header of the GET request for the resource being updated, or the latest known Revision Tree ID or Current Version of the document.
Include-channels:
name: channels
in: query
required: false
schema:
type: boolean
description: Include the channels each document is part of that the calling user also has access too.
atts_since:
name: atts_since
in: query
required: false
schema:
type: array
items:
type: string
description: Include attachments only since specified revisions. Excludes the attachments for the specified revisions. Only gets used if `attachments=true`.
compact-type:
name: type
in: query
required: false
schema:
type: string
default: tombstone
enum:
- attachment
- tombstone
description: |-
This is the type of compaction to use. The type must be either:
* `attachment` for cleaning up legacy (pre-3.0) attachments
* `tombstone` for purging the JSON bodies of non-leaf revisions.'
db:
name: db
in: path
required: true
schema:
type: string
example: db1
description: The name of the database to run the operation against.
keyspace:
name: keyspace
in: path
required: true
schema:
type: string
examples:
default:
summary: Default scope and collection
value: db1
description: Default scope and collection
namedInDefault:
summary: Named collection within the default scope
value: db1.collection1
description: Named collection within the default scope
fullyQualified:
summary: Fully-qualified scope and collection
value: db1.scope1.collection1
description: Fully-qualified scope and collection
description: |-
The keyspace to run the operation against.
A keyspace is a dot-separated string, comprised of a database name, and optionally a named scope and collection.
ddoc:
name: ddoc
in: path
required: true
schema:
type: string
description: The design document name.
debug-profile-seconds:
name: seconds
in: query
required: false
schema:
type: integer
default: 30
minimum: 0
description: The amount of seconds to run the profiler for.
deprecated-redact:
name: redact
in: query
deprecated: true
required: false
schema:
type: boolean
default: true
description: No longer supported field.
docid:
name: docid
in: path
required: true
schema:
type: string
example: doc1
description: The document ID to run the operation against.
doc_id:
name: doc_id
in: query
required: false
schema:
type: string
example: doc1
description: The document ID to run the operation against.
endkey:
name: endkey
in: query
required: false
schema:
type: string
description: Stop returning records when this key is reached.
include-access:
name: access
in: query
required: false
schema:
type: boolean
description: Include what user/roles that each document grants access too.
include-revs:
name: revs
in: query
required: false
schema:
type: boolean
description: Include all the revisions for each document under the `_revisions` property.
include-seqs:
name: update_seq
in: query
required: false
schema:
type: boolean
description: Include the document sequence number `update_seq` property for each document.
includeAttachments:
name: attachments
in: query
required: false
schema:
type: boolean
description: Include attachment bodies in response.
include_doc:
name: include_doc
in: query
required: false
schema:
type: string
description: Include the body associated with the document.
include_docs:
name: include_docs
in: query
required: false
schema:
type: boolean
description: Include the body associated with each document.
include_runtime:
name: include_runtime
in: query
required: false
schema:
type: boolean
default: false
description: 'Whether to include the values set at runtime, and default values.'
keys:
name: keys
in: query
required: false
schema:
type: array
items:
type: string
description: An array of document ID strings to filter by.
limit-result-rows:
name: limit
in: query
required: false
schema:
type: number
description: This limits the number of result rows returned. Using a value of `0` has the same effect as the value `1`.
log-level:
name: logLevel
in: query
required: false
schema:
type: string
enum:
- none
- error
- warn
- info
- debug
- trace
description: The is what to set the console log level too.
log-level-int:
name: level
in: query
required: false
schema:
type: integer
maximum: 3
minimum: 1
deprecated: true
description: |-
**Deprecated: use log level instead.**
This sets the console log level depending on the value provide. 1 sets to `info`, 2 sets to `warn`, and 3 sets to `error`.'
new_edits:
name: new_edits
in: query
required: false
schema:
type: boolean
default: true
description: 'Setting this to false indicates that the request body is an already-existing revision that should be directly inserted into the database, instead of a modification to apply to the current document. This mode is used for replication. This option must be used in conjunction with the `_revisions` property in the request body.'
offline:
name: offline
in: query
required: false
schema:
type: string
description: 'If true, the OpenID Connect provider is requested to confirm with the user the permissions requested and refresh the OIDC token. To do this, access_type=offline and prompt=consent is set on the redirection link.'
oidc-code:
name: code
in: query
required: true
schema:
type: string
description: The OpenID Connect authentication code.
oidc-redirect_uri:
name: redirect_uri
in: query
required: false
schema:
type: string
description: The Sync Gateway OpenID Connect callback URL.
oidc-scope:
name: scope
in: query
required: true
schema:
type: string
description: The OpenID Connect authentication scope.
oidc-state:
name: state
in: query
required: false
schema:
type: string
description: The OpenID Connect state to verify against the state cookie. This is used to prevent cross-site request forgery (CSRF). This is not required if `disable_callback_state=true` for the provider config (NOT recommended).
open_revs:
name: open_revs
in: query
required: false
schema:
type: array
items:
type: string
description: 'Option to fetch specified revisions of the document. The value can be all to fetch all leaf revisions or an array of revision numbers (i.e. open_revs=["rev1", "rev2"]). Only leaf revision bodies that haven''t been pruned are guaranteed to be returned. If this option is specified the response will be in multipart format. Use the `Accept: application/json` request header to get the result as a JSON object.'
pprof-seconds:
name: seconds
in: query
description: 'If set, collect a delta profile for the given duration, instead of a snapshot.'
schema:
type: integer
provider:
name: provider
in: query
required: false
schema:
type: string
description: 'The OpenID Connect provider to use for authentication. The list of providers are defined in the Sync Gateway config. If left empty, the default provider will be used.'
replication-active-only:
name: activeOnly
in: query
required: false
schema:
type: boolean
default: false
description: Only return replications that are actively running (`state=running`).
replication-include-config:
name: includeConfig
in: query
required: false
schema:
type: boolean
default: false
description: Include the replication configuration with each replicator status in the response.
replication-include-error:
name: includeError
in: query
required: false
schema:
type: boolean
default: true
description: Include replications that have stopped due to an error (`state=error`).
replication-local-only:
name: localOnly
in: query
required: false
schema:
type: boolean
default: false
description: Only return replications that were started on the current Sync Gateway node.
replicationid:
name: replicationid
in: path
required: true
schema:
type: string
minimum: 1
maximum: 160
description: What replication to target based on its replication ID.
replicator2:
name: replicator2
in: query
required: false
schema:
type: boolean
description: Returns the document with the required properties for replication. This is an enterprise-edition only feature.
rev:
name: rev
in: query
required: false
schema:
type: string
example: 2-5145e1086bb8d1d71a531e9f6b543c58
description: The document revision to target. This can be a RevTree ID or a CV (Current Version) ID. If this is a CV value, ensure the query parameter is URL encoded (`+`->`%2B`, `@`->`%40`, etc.)
revs_from:
name: revs_from
in: query
required: false
schema:
type: array
items:
type: string
description: 'Trim the revision history to stop at the first revision in the provided list. If no match is found, the revisions will be trimmed to the `revs_limit`.'
revs_limit:
name: revs_limit
in: query
required: false
schema:
type: integer
description: Maximum amount of revisions to return for each document.
role-name:
name: name
in: path
required: true
schema:
type: string
description: The name of the role.
roundtrip:
name: roundtrip
in: query
required: false
schema:
type: boolean
description: Block until document has been received by change cache
sessionid:
name: sessionid
in: path
required: true
schema:
type: string
description: The ID of the session to target.
show_exp:
name: show_exp
in: query
required: false
schema:
type: boolean
description: Whether to show the expiry property (`_exp`) in the response.
startkey:
name: startkey
in: query
required: false
schema:
type: string
description: Return records starting with the specified key.
user-name:
name: name
in: path
required: true
schema:
type: string
description: The name of the user.
view:
name: view
in: path
required: true
schema:
type: string
description: The view to target.
inclusive_end:
name: inclusive_end
in: query
required: false
description: Indicates whether the specified end key should be included in the result.
schema:
type: boolean
descending:
name: descending
in: query
required: false
description: Return documents in descending order.
schema:
type: boolean
include_docs-cbs3:
name: include_docs
in: query
required: false
description: Only works when using Couchbase Server 3.0 and earlier. Indicates whether to include the full content of the documents in the response.
schema:
type: boolean
reduce:
name: reduce
in: query
required: false
description: Whether to execute a reduce function on the response or not.
schema:
type: boolean
group:
name: group
in: query
required: false
description: Group the results using the reduce function to a group or single row.
schema:
type: boolean
skip:
name: skip
in: query
required: false
description: Skip the specified number of documents before starting to return results.
schema:
type: integer
limit:
name: limit
in: query
required: false
description: Return only the specified number of documents
schema:
type: integer
group_level:
name: group_level
in: query
required: false
description: Specify the group level to be used.
schema:
type: integer
startkey_docid:
name: startkey_docid
in: query
required: false
description: Return documents starting with the specified document identifier.
schema:
type: string
endkey_docid:
name: endkey_docid
in: query
required: false
description: Stop returning records when the specified document identifier is reached.
schema:
type: string
stale:
name: stale
in: query
required: false
description: 'Allow the results from a stale view to be used, without triggering a rebuild of all views within the encompassing design document.'
schema:
type: string
enum:
- ok
- update_after
key:
name: key
in: query
required: false
description: Return only the document that matches the specified key.
schema:
type: string
disable_oidc_validation:
name: disable_oidc_validation
in: query
required: false
description: 'If set, will not attempt to validate the configured OpenID Connect providers are reachable.'
schema:
type: boolean
default: false
usersNameOnly:
name: name_only
in: query
required: false
schema:
type: boolean
default: true
description: 'Whether to return user names only, or more detailed information for each user.'
usersLimit:
name: limit
in: query
required: false
schema:
type: integer
description: How many results to return. Using a value of `0` results in no limit.