1
#@ load("openapi.lib.yml", "response", "reference", "type", "array")
8
summary: List collections
9
description: Get list name of all existing collections
10
operationId: get_collections
11
responses: #@ response(reference("CollectionsResponse"))
13
/collections/{collection_name}:
17
summary: Collection info
18
description: Get detailed information about specified existing collection
19
operationId: get_collection
21
- name: collection_name
23
description: Name of the collection to retrieve
27
responses: #@ response(reference("CollectionInfo"))
32
summary: Create collection
33
description: Create new collection with given parameters
34
operationId: create_collection
36
description: Parameters of a new collection
40
$ref: "#/components/schemas/CreateCollection"
43
- name: collection_name
45
description: Name of the new collection
52
Wait for operation commit timeout in seconds.
53
If timeout is reached - request will return with service error.
56
responses: #@ response(type("boolean"))
61
summary: Update collection parameters
62
description: Update parameters of the existing collection
63
operationId: update_collection
65
description: New parameters
69
$ref: "#/components/schemas/UpdateCollection"
72
- name: collection_name
74
description: Name of the collection to update
81
Wait for operation commit timeout in seconds.
82
If timeout is reached - request will return with service error.
85
responses: #@ response(type("boolean"))
90
summary: Delete collection
91
description: Drop collection and all associated data
92
operationId: delete_collection
94
- name: collection_name
96
description: Name of the collection to delete
103
Wait for operation commit timeout in seconds.
104
If timeout is reached - request will return with service error.
107
responses: #@ response(type("boolean"))
109
/collections/aliases:
113
summary: Update aliases of the collections
114
operationId: update_aliases
116
description: Alias update operations
120
$ref: "#/components/schemas/ChangeAliasesOperation"
125
Wait for operation commit timeout in seconds.
126
If timeout is reached - request will return with service error.
129
responses: #@ response(type("boolean"))
131
/collections/{collection_name}/index:
135
summary: Create index for field in collection
136
description: Create index for field in collection
137
operationId: create_field_index
139
- name: collection_name
141
description: Name of the collection
147
description: "If true, wait for changes to actually happen"
153
description: "define ordering guarantees for the operation"
156
$ref: "#/components/schemas/WriteOrdering"
158
description: Field name
162
$ref: "#/components/schemas/CreateFieldIndex"
164
responses: #@ response(reference("UpdateResult"))
166
/collections/{collection_name}/exists:
170
summary: Check the existence of a collection
171
description: Returns "true" if the given collection name exists, and "false" otherwise
172
operationId: collection_exists
174
- name: collection_name
176
description: Name of the collection
180
responses: #@ response(reference("CollectionExistence"))
182
/collections/{collection_name}/index/{field_name}:
186
summary: Delete index for field in collection
187
description: Delete field index for collection
188
operationId: delete_field_index
190
- name: collection_name
192
description: Name of the collection
198
description: Name of the field where to delete the index
204
description: "If true, wait for changes to actually happen"
210
description: "define ordering guarantees for the operation"
213
$ref: "#/components/schemas/WriteOrdering"
214
responses: #@ response(reference("UpdateResult"))
216
/collections/{collection_name}/cluster:
221
summary: Collection cluster info
222
description: Get cluster information for a collection
223
operationId: collection_cluster_info
225
- name: collection_name
227
description: Name of the collection to retrieve the cluster info for
231
responses: #@ response(reference("CollectionClusterInfo"))
237
summary: Update collection cluster setup
238
operationId: update_collection_cluster
240
description: Collection cluster update operations
244
$ref: "#/components/schemas/ClusterOperations"
246
- name: collection_name
248
description: Name of the collection on which to to apply the cluster update operation
255
Wait for operation commit timeout in seconds.
256
If timeout is reached - request will return with service error.
259
responses: #@ response(type("boolean"))
261
/collections/{collection_name}/aliases:
265
summary: List aliases for collection
266
description: Get list of all aliases for a collection
267
operationId: get_collection_aliases
269
- name: collection_name
271
description: Name of the collection
275
responses: #@ response(reference("CollectionsAliasesResponse"))
281
summary: List collections aliases
282
description: Get list of all existing collections aliases
283
operationId: get_collections_aliases
284
responses: #@ response(reference("CollectionsAliasesResponse"))