Skip to content

Commit

Permalink
beaconCollectionsResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Mar 21, 2024
1 parent ea3be85 commit 2553223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
26 changes: 3 additions & 23 deletions models/json/beacon-v2-default-model/datasets/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,6 @@
}
},
"responses": {
"CollectionsResponse": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconBooleanResponse.json"
},
{
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCountResponse.json"
},
{
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCollectionsResponse.json"
}
]
}
}
},
"description": "Successful collection list operation."
},
"ResultsOKResponse": {
"content": {
"application/json": {
Expand All @@ -80,7 +60,7 @@
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCountResponse.json"
},
{
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCollectionsResponse.json"
}
]
}
Expand Down Expand Up @@ -124,7 +104,7 @@
],
"responses": {
"200": {
"$ref": "#/components/responses/CollectionsResponse"
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
Expand All @@ -149,7 +129,7 @@
},
"responses": {
"200": {
"$ref": "#/components/responses/CollectionsResponse"
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
Expand Down
13 changes: 2 additions & 11 deletions models/src/beacon-v2-default-model/datasets/endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ paths:
- GET Endpoints
responses:
'200':
$ref: '#/components/responses/CollectionsResponse'
$ref: '#/components/responses/ResultsOKResponse'
default:
$ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json
post:
Expand All @@ -44,7 +44,7 @@ paths:
required: true
responses:
'200':
$ref: '#/components/responses/CollectionsResponse'
$ref: '#/components/responses/ResultsOKResponse'
default:
description: An unsuccessful operation
$ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json
Expand Down Expand Up @@ -240,15 +240,6 @@ components:
responses:
ResultsOKResponse:
description: Successful operation.
content:
application/json:
schema:
oneOf:
- $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconBooleanResponse.json
- $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCountResponse.json
- $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json
CollectionsResponse:
description: Successful collection list operation.
content:
application/json:
schema:
Expand Down

0 comments on commit 2553223

Please sign in to comment.