mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-07 02:20:55 -05:00
* add openapi validation during generation #208 * fix: POST -> PUT in point update api implementation and docs #208 * fix: openapi structure exposure * fix: api usage in stress test
43 lines
836 B
YAML
43 lines
836 B
YAML
#@ 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
|