forked from qdrant/qdrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.lib.yml
42 lines (39 loc) · 838 Bytes
/
openapi.lib.yml
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
#@ def response(model):
default:
description: error
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
4XX:
description: error
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
"200":
description: successful operation
content:
application/json:
schema:
type: object
properties:
time:
type: number
format: float
description: Time spent to process this request
status:
type: string
enum: [ "ok" ]
result: #@ model
#@ end
#@ def reference(model_name):
$ref: #@ "#/components/schemas/" + model_name
#@ end
#@ def type(type_name):
type: #@ type_name
#@ end
#@ def array(type_data):
type: array
items: #@ type_data
#@ end