diff --git a/docs/redoc/master/openapi.json b/docs/redoc/master/openapi.json index 4d758f746e..a9015681d0 100644 --- a/docs/redoc/master/openapi.json +++ b/docs/redoc/master/openapi.json @@ -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": { diff --git a/openapi/openapi-points.ytt.yaml b/openapi/openapi-points.ytt.yaml index 7844a37af4..915b6e1a71 100644 --- a/openapi/openapi-points.ytt.yaml +++ b/openapi/openapi-points.ytt.yaml @@ -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: diff --git a/tests/openapi/test_basic_retrieve_api.py b/tests/openapi/test_basic_retrieve_api.py index 05b580e049..a9b4bec069 100644 --- a/tests/openapi/test_basic_retrieve_api.py +++ b/tests/openapi/test_basic_retrieve_api.py @@ -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",