Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/composition/common/schemas/SearchParams.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
searchParams:
params:
title: Composition Search parameters as object
type: object
additionalProperties: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
post:
tags:
- Search
operationId: runSingleComposition
operationId: search
x-use-read-transporter: true
x-cacheable: true
x-acl:
Expand All @@ -11,10 +11,16 @@ post:
parameters:
- $ref: '../../common/parameters.yml#/compositionID'
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../../common/schemas/SearchParams.yml#/searchParams'
title: request
type: object
additionalProperties: false
properties:
params:
$ref: '../../common/schemas/SearchParams.yml#/params'
responses:
'200':
description: OK
Expand Down
2 changes: 1 addition & 1 deletion specs/composition/paths/search/searchForFacetValues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ post:
maxFacetHits:
$ref: '../../../common/schemas/IndexSettings.yml#/maxFacetHits'
searchQuery:
$ref: '../../common/schemas/SearchParams.yml#/searchParams'
$ref: '../../common/schemas/SearchParams.yml#/params'
responses:
'200':
description: OK
Expand Down
2 changes: 1 addition & 1 deletion specs/composition/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ paths:
# ### Search Endpoints ###
# ########################
/1/compositions/{compositionID}/run:
$ref: 'paths/search/run.yml'
$ref: 'paths/search/search.yml'
/1/compositions/{compositionID}/facets/{facetName}/query:
$ref: 'paths/search/searchForFacetValues.yml'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{
"parameters": {
"compositionID": "foo",
"searchParams": {
"query": "batman"
"request": {
"params": { "query": "batman" }
}
},
"request": {
"path": "/1/compositions/foo/run",
"method": "POST",
"body": {
"query": "batman"
"params": { "query": "batman" }
}
}
}
Expand Down
Loading