forked from qdrant/qdrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi-points.ytt.yaml
369 lines (351 loc) · 11 KB
/
openapi-points.ytt.yaml
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
#@ load("openapi.lib.yml", "response", "reference", "type", "array")
paths:
/collections/{collection_name}/points/{id}:
get:
tags:
- points
summary: Get point
description: Retrieve full information of single point by id
operationId: get_point
parameters:
- name: collection_name
in: path
description: Name of the collection to retrieve from
required: true
schema:
type: string
- name: id
in: path
description: Id of the point
required: true
schema:
$ref: "#/components/schemas/ExtendedPointId"
- name: consistency
in: query
description: Define read consistency guarantees for the operation
required: false
schema:
$ref: "#/components/schemas/ReadConsistency"
responses: #@ response(reference("Record"))
/collections/{collection_name}/points:
post:
tags:
- points
summary: Get points
description: Retrieve multiple points by specified IDs
operationId: get_points
requestBody:
description: List of points to retrieve
content:
application/json:
schema:
$ref: "#/components/schemas/PointRequest"
parameters:
- name: collection_name
in: path
description: Name of the collection to retrieve from
required: true
schema:
type: string
- name: consistency
in: query
description: Define read consistency guarantees for the operation
required: false
schema:
$ref: "#/components/schemas/ReadConsistency"
responses: #@ response(array(reference("Record")))
put:
tags:
- points
summary: Upsert points
description: Perform insert + updates on points. If point with given ID already exists - it will be overwritten.
operationId: upsert_points
requestBody:
description: Operation to perform on points
content:
application/json:
schema:
$ref: "#/components/schemas/PointInsertOperations"
parameters:
- name: collection_name
in: path
description: Name of the collection to update from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
/collections/{collection_name}/points/delete:
post:
tags:
- points
summary: Delete points
description: Delete points
operationId: delete_points
requestBody:
description: Operation to perform on points
content:
application/json:
schema:
$ref: "#/components/schemas/PointsSelector"
parameters:
- name: collection_name
in: path
description: Name of the collection to delete from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
/collections/{collection_name}/points/vectors:
put:
tags:
- points
summary: Update vectors
description: Update specified named vectors on points, keep unspecified vectors intact.
operationId: update_vectors
requestBody:
description: Update named vectors on points
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateVectors"
parameters:
- name: collection_name
in: path
description: Name of the collection to update from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
/collections/{collection_name}/points/vectors/delete:
post:
tags:
- points
summary: Delete vectors
description: Delete named vectors from the given points.
operationId: delete_vectors
requestBody:
description: Delete named vectors from points
content:
application/json:
schema:
$ref: "#/components/schemas/DeleteVectors"
parameters:
- name: collection_name
in: path
description: Name of the collection to delete from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
/collections/{collection_name}/points/payload:
post:
tags:
- points
summary: Set payload
description: Set payload values for points
operationId: set_payload
requestBody:
description: Set payload on points
content:
application/json:
schema:
$ref: "#/components/schemas/SetPayload"
parameters:
- name: collection_name
in: path
description: Name of the collection to set from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
put:
tags:
- points
summary: Overwrite payload
description: Replace full payload of points with new one
operationId: overwrite_payload
requestBody:
description: Payload and points selector
content:
application/json:
schema:
$ref: "#/components/schemas/SetPayload"
parameters:
- name: collection_name
in: path
description: Name of the collection to set from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
/collections/{collection_name}/points/payload/delete:
post:
tags:
- points
summary: Delete payload
description: Delete specified key payload for points
operationId: delete_payload
requestBody:
description: delete payload on points
content:
application/json:
schema:
$ref: "#/components/schemas/DeletePayload"
parameters:
- name: collection_name
in: path
description: Name of the collection to delete from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
/collections/{collection_name}/points/payload/clear:
post:
tags:
- points
summary: Clear payload
description: Remove all payload for specified points
operationId: clear_payload
requestBody:
description: clear payload on points
content:
application/json:
schema:
$ref: "#/components/schemas/PointsSelector"
parameters:
- name: collection_name
in: path
description: Name of the collection to clear payload from
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(reference("UpdateResult"))
/collections/{collection_name}/points/batch:
post:
tags:
- points
summary: Batch update points
description: Apply a series of update operations for points, vectors and payloads
operationId: batch_update
requestBody:
description: update operations
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateOperations"
parameters:
- name: collection_name
in: path
description: Name of the collection to apply operations on
required: true
schema:
type: string
- name: wait
in: query
description: "If true, wait for changes to actually happen"
required: false
schema:
type: boolean
- name: ordering
in: query
description: "define ordering guarantees for the operation"
required: false
schema:
$ref: "#/components/schemas/WriteOrdering"
responses: #@ response(array(reference("UpdateResult")))