mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-01 07:30:54 -05:00
* feat: add wait parm for all snapshot API * update openAPI * avoid unwrap * remove all unwarp * return HTTP 202 when no waiting on snapshot creation * return 202 when non wait * update open API * update param on python test * update and test api * optimize the test * return 202 when non-wait delete * recover fixes --------- Co-authored-by: Arnaud Gourlay <arnaud.gourlay@gmail.com> Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
87 lines
1.8 KiB
YAML
87 lines
1.8 KiB
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 response_with_accepted(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
|
|
"202":
|
|
description: operation is accepted
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
time:
|
|
type: number
|
|
format: float
|
|
description: Time spent to process this request
|
|
status:
|
|
type: string
|
|
enum: [ "accepted" ]
|
|
#@ 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
|