File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
specs/search/paths/synonyms
tests/CTS/methods/requests/search Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 8
8
description : Search or browse all synonyms, optionally filtering them by type.
9
9
parameters :
10
10
- $ref : ' ../../../common/parameters.yml#/IndexName'
11
- - $ref : ' common/parameters.yml#/Query'
12
11
- $ref : ' common/parameters.yml#/Type'
13
12
- $ref : ' ../../../common/parameters.yml#/PageDefault0'
14
13
- $ref : ' ../../../common/parameters.yml#/HitsPerPage'
14
+ requestBody :
15
+ description : The body of the the `searchSynonyms` method.
16
+ content :
17
+ application/json :
18
+ schema :
19
+ title : searchSynonymsParams
20
+ type : object
21
+ additionalProperties : false
22
+ properties :
23
+ query :
24
+ $ref : ' ../../../common/schemas/SearchParams.yml#/query'
15
25
responses :
16
26
' 200 ' :
17
27
description : OK
Original file line number Diff line number Diff line change 1
1
[
2
2
{
3
+ "testName" : " searchSynonyms with minimal parameters" ,
3
4
"parameters" : {
4
5
"indexName" : " indexName"
5
6
},
6
7
"request" : {
7
8
"path" : " /1/indexes/indexName/synonyms/search" ,
8
9
"method" : " POST"
9
10
}
11
+ },
12
+ {
13
+ "testName" : " searchSynonyms with all parameters" ,
14
+ "parameters" : {
15
+ "indexName" : " indexName" ,
16
+ "type" : " altcorrection1" ,
17
+ "page" : 10 ,
18
+ "hitsPerPage" : 10 ,
19
+ "searchSynonymsParams" : {
20
+ "query" : " myQuery"
21
+ }
22
+ },
23
+ "request" : {
24
+ "path" : " /1/indexes/indexName/synonyms/search" ,
25
+ "method" : " POST" ,
26
+ "body" : {
27
+ "query" : " myQuery"
28
+ },
29
+ "queryParameters" : {
30
+ "type" : " altcorrection1" ,
31
+ "page" : " 10" ,
32
+ "hitsPerPage" : " 10"
33
+ }
34
+ }
10
35
}
11
36
]
You can’t perform that action at this time.
0 commit comments