Skip to content

Commit

Permalink
ResultsetsResponse for cohorts/{id}/individuals
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Mar 22, 2024
1 parent 2553223 commit ea4324b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 13 deletions.
38 changes: 29 additions & 9 deletions models/json/beacon-v2-default-model/cohorts/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}
},
"responses": {
"ResultsOKResponse": {
"CollectionsResponse": {
"content": {
"application/json": {
"schema": {
Expand All @@ -68,8 +68,28 @@
}
}
},
"description": "Successful operation."
}
"description": "Successful operation for a collections request."
},
"ResultsetsResponse": {
"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"
}
]
}
}
},
"description": "Successful operation for an individuals request."
}
}
},
"info": {
Expand Down Expand Up @@ -106,7 +126,7 @@
],
"responses": {
"200": {
"$ref": "#/components/responses/ResultsOKResponse"
"$ref": "#/components/responses/CollectionsResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
Expand All @@ -131,7 +151,7 @@
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultsOKResponse"
"$ref": "#/components/responses/CollectionsResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
Expand All @@ -154,7 +174,7 @@
],
"responses": {
"200": {
"$ref": "#/components/responses/ResultsOKResponse"
"$ref": "#/components/responses/CollectionsResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
Expand Down Expand Up @@ -185,7 +205,7 @@
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultsOKResponse"
"$ref": "#/components/responses/CollectionsResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
Expand Down Expand Up @@ -285,7 +305,7 @@
],
"responses": {
"200": {
"$ref": "#/components/responses/ResultsOKResponse"
"$ref": "#/components/responses/ResultsetsResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
Expand Down Expand Up @@ -316,7 +336,7 @@
},
"responses": {
"200": {
"$ref": "#/components/responses/ResultsOKResponse"
"$ref": "#/components/responses/ResultsetsResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
Expand Down
17 changes: 13 additions & 4 deletions models/src/beacon-v2-default-model/cohorts/endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ paths:
- GET Endpoints
responses:
'200':
$ref: '#/components/responses/ResultsOKResponse'
$ref: '#/components/responses/ResultsetsResponse'
default:
description: An unsuccessful operation
$ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json
Expand All @@ -114,7 +114,7 @@ paths:
required: true
responses:
'200':
$ref: '#/components/responses/ResultsOKResponse'
$ref: '#/components/responses/ResultsetsResponse'
default:
description: An unsuccessful operation
$ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json
Expand Down Expand Up @@ -164,15 +164,24 @@ paths:
$ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json
components:
responses:
ResultsOKResponse:
description: Successful operation.
CollectionsResponse:
description: Successful operation for a collections request.
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
ResultsetsResponse:
description: Successful operation for an individuals request.
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
parameters:
requestedSchema:
name: requestedSchema
Expand Down

0 comments on commit ea4324b

Please sign in to comment.