From 22d4253d25361bc39a80d9c815e1b04e80601c6c Mon Sep 17 00:00:00 2001 From: Michael Baudis Date: Mon, 25 Mar 2024 11:46:40 +0100 Subject: [PATCH] ResultsOKResponse => ResultSetsResponse in datasets src --- .../datasets/endpoints.yaml | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/models/src/beacon-v2-default-model/datasets/endpoints.yaml b/models/src/beacon-v2-default-model/datasets/endpoints.yaml index e3c86da0..ad0d7837 100644 --- a/models/src/beacon-v2-default-model/datasets/endpoints.yaml +++ b/models/src/beacon-v2-default-model/datasets/endpoints.yaml @@ -28,7 +28,7 @@ paths: - GET Endpoints 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 post: @@ -44,7 +44,7 @@ paths: required: true responses: '200': - $ref: '#/components/responses/ResultsOKResponse' + $ref: '#/components/responses/CollectionsResponse' default: description: An unsuccessful operation $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json @@ -60,7 +60,7 @@ paths: - GET Endpoints responses: '200': - $ref: '#/components/responses/ResultsOKResponse' + $ref: '#/components/responses/CollectionsResponse' default: description: An unsuccessful operation $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json @@ -77,7 +77,7 @@ paths: required: true responses: '200': - $ref: '#/components/responses/ResultsOKResponse' + $ref: '#/components/responses/CollectionsResponse' default: description: An unsuccessful operation $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json @@ -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 @@ -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 @@ -133,7 +133,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 @@ -151,7 +151,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 @@ -170,7 +170,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 @@ -188,7 +188,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 @@ -238,7 +238,7 @@ paths: $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json components: responses: - ResultsOKResponse: + CollectionsResponse: description: Successful operation. content: application/json: @@ -246,7 +246,16 @@ components: 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 + - $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCollectionsResponse.json + ResultSetsResponse: + description: Successful resultset list 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 parameters: requestedSchema: name: requestedSchema