Files
qdrant/openapi/openapi-shards.ytt.yaml
T
Kartik GuptaandAnush 2f5e7d2eb0 Remapping tags to api docs (#5104)
* Remapping tags to

* Declare new tags, v1.12 remapping

* Declare Indexes, Aliases

---------

Co-authored-by: Anush <anushshetty90@gmail.com>
2024-11-08 11:15:37 +01:00

58 lines
1.7 KiB
YAML

#@ load("openapi.lib.yml", "response", "reference", "type", "array")
paths:
/collections/{collection_name}/shards:
put:
tags:
- Distributed
summary: Create shard key
operationId: create_shard_key
requestBody:
description: Shard key configuration
content:
application/json:
schema:
$ref: "#/components/schemas/CreateShardingKey"
parameters:
- name: collection_name
in: path
description: Name of the collection to create shards for
required: true
schema:
type: string
- name: timeout
in: query
description: |
Wait for operation commit timeout in seconds.
If timeout is reached - request will return with service error.
schema:
type: integer
responses: #@ response(type("boolean"))
/collections/{collection_name}/shards/delete:
post:
tags:
- Distributed
summary: Delete shard key
operationId: delete_shard_key
requestBody:
description: Select shard key to delete
content:
application/json:
schema:
$ref: "#/components/schemas/DropShardingKey"
parameters:
- name: collection_name
in: path
description: Name of the collection to create shards for
required: true
schema:
type: string
- name: timeout
in: query
description: |
Wait for operation commit timeout in seconds.
If timeout is reached - request will return with service error.
schema:
type: integer
responses: #@ response(type("boolean"))