Skip to content

Commit

Permalink
endpoints.json ResultsetsResponse & CollectionsResponse
Browse files Browse the repository at this point in the history
... instead of the ResultsOKResponse
  • Loading branch information
mbaudis authored Mar 25, 2024
1 parent 22d4253 commit ceaddd4
Showing 1 changed file with 33 additions and 13 deletions.
46 changes: 33 additions & 13 deletions models/json/beacon-v2-default-model/datasets/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
},
"responses": {
"ResultsOKResponse": {
"CollectionsResponse": {
"content": {
"application/json": {
"schema": {
Expand All @@ -66,7 +66,27 @@
}
}
},
"description": "Successful operation."
"description": "Successful collection operation."
},
"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 resultsets operation."
}
}
},
Expand Down Expand Up @@ -104,7 +124,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 @@ -129,7 +149,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 @@ -152,7 +172,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 @@ -183,7 +203,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 @@ -212,7 +232,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 @@ -243,7 +263,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 @@ -343,7 +363,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 @@ -374,7 +394,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 @@ -403,7 +423,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 @@ -434,7 +454,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 All @@ -458,4 +478,4 @@
"name": "POST Endpoints"
}
]
}
}

0 comments on commit ceaddd4

Please sign in to comment.