Skip to content

Commit 3ddf870

Browse files
committed
fix(specs): add getVersion parameter to getSettings
1 parent dd3bb1b commit 3ddf870

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

specs/search/common/parameters.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ userID:
3232
pattern: '^[a-zA-Z0-9 \-*.]+$'
3333
description: Unique identifier of the user who makes the search request.
3434
example: user1
35+
36+
getVersion:
37+
name: getVersion
38+
description: When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
39+
in: query
40+
schema:
41+
type: integer
42+
default: 1

specs/search/paths/settings/settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ get:
99
summary: Retrieve index settings
1010
parameters:
1111
- $ref: '../../../common/parameters.yml#/IndexName'
12+
- $ref: '../../common/parameters.yml#/getVersion'
1213
responses:
1314
'200':
1415
description: OK

tests/CTS/requests/search/getSettings.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
[
22
{
33
"parameters": {
4-
"indexName": "cts_e2e_settings"
4+
"indexName": "cts_e2e_settings",
5+
"getVersion": 2
56
},
67
"request": {
78
"path": "/1/indexes/cts_e2e_settings/settings",
8-
"method": "GET"
9+
"method": "GET",
10+
"queryParameters": {
11+
"getVersion": "2"
12+
}
913
},
1014
"response": {
1115
"statusCode": 200,

0 commit comments

Comments
 (0)