File tree 5 files changed +14
-8
lines changed
tests/CTS/requests/composition
5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
- searchParams :
1
+ params :
2
2
title : Composition Search parameters as object
3
3
type : object
4
4
additionalProperties : false
Original file line number Diff line number Diff line change 1
1
post :
2
2
tags :
3
3
- Search
4
- operationId : runSingleComposition
4
+ operationId : search
5
5
x-use-read-transporter : true
6
6
x-cacheable : true
7
7
x-acl :
@@ -11,10 +11,16 @@ post:
11
11
parameters :
12
12
- $ref : ' ../../common/parameters.yml#/compositionID'
13
13
requestBody :
14
+ required : true
14
15
content :
15
16
application/json :
16
17
schema :
17
- $ref : ' ../../../common/schemas/SearchParams.yml#/searchParams'
18
+ title : requestBody
19
+ type : object
20
+ additionalProperties : false
21
+ properties :
22
+ params :
23
+ $ref : ' ../../common/schemas/SearchParams.yml#/params'
18
24
responses :
19
25
' 200 ' :
20
26
description : OK
Original file line number Diff line number Diff line change 41
41
maxFacetHits :
42
42
$ref : ' ../../../common/schemas/IndexSettings.yml#/maxFacetHits'
43
43
searchQuery :
44
- $ref : ' ../../common/schemas/SearchParams.yml#/searchParams '
44
+ $ref : ' ../../common/schemas/SearchParams.yml#/params '
45
45
responses :
46
46
' 200 ' :
47
47
description : OK
Original file line number Diff line number Diff line change 57
57
# ### Search Endpoints ###
58
58
# ########################
59
59
/1/compositions/{compositionID}/run :
60
- $ref : ' paths/search/run .yml'
60
+ $ref : ' paths/search/search .yml'
61
61
/1/compositions/{compositionID}/facets/{facetName}/query :
62
62
$ref : ' paths/search/searchForFacetValues.yml'
63
63
Original file line number Diff line number Diff line change 2
2
{
3
3
"parameters" : {
4
4
"compositionID" : " foo" ,
5
- "searchParams " : {
6
- "query" : " batman"
5
+ "requestBody " : {
6
+ "params" : { " query" : " batman" }
7
7
}
8
8
},
9
9
"request" : {
10
10
"path" : " /1/compositions/foo/run" ,
11
11
"method" : " POST" ,
12
12
"body" : {
13
- "query" : " batman"
13
+ "params" : { " query" : " batman" }
14
14
}
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments