add missing timeout parameter for get point API (#10235)

GET /collections/{name}/points/{id} already accepts ReadParams.timeout;
OpenAPI only documented consistency. Match the POST /points query parameters.
This commit is contained in:
David Dallakyan
2026-09-03 12:41:01 +02:00
committed by timvisee
parent 3b06a9606a
commit bf4cecb972
3 changed files with 26 additions and 0 deletions
+10
View File
@@ -4225,6 +4225,16 @@
"schema": {
"$ref": "#/components/schemas/ReadConsistency"
}
},
{
"name": "timeout",
"in": "query",
"description": "If set, overrides global timeout for this request. Unit is seconds.",
"required": false,
"schema": {
"type": "integer",
"minimum": 1
}
}
],
"responses": {
+7
View File
@@ -27,6 +27,13 @@ paths:
required: false
schema:
$ref: "#/components/schemas/ReadConsistency"
- name: timeout
in: query
description: If set, overrides global timeout for this request. Unit is seconds.
required: false
schema:
type: integer
minimum: 1
responses: #@ response(reference("Record"))
/collections/{collection_name}/points:
+9
View File
@@ -19,6 +19,15 @@ def test_points_retrieve(collection_name):
)
assert response.ok
response = request_with_validation(
api='/collections/{collection_name}/points/{id}',
method="GET",
path_params={'collection_name': collection_name, 'id': 2},
query_params={'timeout': 1},
)
assert response.ok
assert response.json()['result']['id'] == 2
response = request_with_validation(
api='/collections/{collection_name}/points',
method="POST",