Skip to content

Commit e330f4a

Browse files
authored
Add 500 schema and endpoints (#141)
* Add 500 schema and endpoints to data node paths * Add 500 reponse to all remaining paths of all services
1 parent de13036 commit e330f4a

19 files changed

+84
-20
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: The request cannot be fulfilled due to an unexpected server error
2+
content:
3+
application/json:
4+
schema:
5+
$ref: ../schemas/Error.yaml

openapi/commons/paths/healthCheck.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ get:
1212
schema:
1313
$ref: ../components/schemas/HealthCheck.yaml
1414
'404':
15-
$ref: ../components/responses/NotFound.yaml
15+
$ref: ../components/responses/NotFound.yaml
16+
'500':
17+
$ref: ../components/responses/InternalServerError.yaml

openapi/commons/paths/service.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ get:
1212
schema:
1313
$ref: ../components/schemas/Service.yaml
1414
'404':
15-
$ref: ../components/responses/NotFound.yaml
15+
$ref: ../components/responses/NotFound.yaml
16+
'500':
17+
$ref: ../components/responses/InternalServerError.yaml

openapi/data-node/paths/annotationStores.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ post:
3434
$ref: ../../commons/components/responses/BadRequest.yaml
3535
'409':
3636
$ref: ../../commons/components/responses/Conflict.yaml
37+
'500':
38+
$ref: ../../commons/components/responses/InternalServerError.yaml
3739
get:
3840
tags:
3941
- AnnotationStore
@@ -61,4 +63,6 @@ get:
6163
$ref: ../components/schemas/PageOfAnnotationStores.yaml
6264
description: Success
6365
'400':
64-
$ref: ../../commons/components/responses/BadRequest.yaml
66+
$ref: ../../commons/components/responses/BadRequest.yaml
67+
'500':
68+
$ref: ../../commons/components/responses/InternalServerError.yaml

openapi/data-node/paths/annotationStores@{annotationStoreId}.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ get:
2626
$ref: ../components/schemas/AnnotationStore.yaml
2727
'404':
2828
$ref: ../../commons/components/responses/NotFound.yaml
29+
'500':
30+
$ref: ../../commons/components/responses/InternalServerError.yaml
2931
delete:
3032
tags:
3133
- AnnotationStore
@@ -40,4 +42,6 @@ delete:
4042
schema:
4143
$ref: ../../commons/components/schemas/EmptyObject.yaml
4244
'404':
43-
$ref: ../../commons/components/responses/NotFound.yaml
45+
$ref: ../../commons/components/responses/NotFound.yaml
46+
'500':
47+
$ref: ../../commons/components/responses/InternalServerError.yaml

openapi/data-node/paths/annotations.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ post:
3333
$ref: ../../commons/components/responses/BadRequest.yaml
3434
'409':
3535
$ref: ../../commons/components/responses/Conflict.yaml
36+
'500':
37+
$ref: ../../commons/components/responses/InternalServerError.yaml
3638
get:
3739
tags:
3840
- Annotation
@@ -60,4 +62,6 @@ get:
6062
$ref: ../components/schemas/PageOfAnnotations.yaml
6163
description: Success
6264
'400':
63-
$ref: ../../commons/components/responses/BadRequest.yaml
65+
$ref: ../../commons/components/responses/BadRequest.yaml
66+
'500':
67+
$ref: ../../commons/components/responses/InternalServerError.yaml

openapi/data-node/paths/annotations@{annotationId}.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ get:
3232
$ref: ../../commons/components/schemas/Annotation.yaml
3333
'404':
3434
$ref: ../../commons/components/responses/NotFound.yaml
35+
'500':
36+
$ref: ../../commons/components/responses/InternalServerError.yaml
3537
delete:
3638
tags:
3739
- Annotation
@@ -46,4 +48,6 @@ delete:
4648
schema:
4749
$ref: ../../commons/components/schemas/EmptyObject.yaml
4850
'404':
49-
$ref: ../../commons/components/responses/NotFound.yaml
51+
$ref: ../../commons/components/responses/NotFound.yaml
52+
'500':
53+
$ref: ../../commons/components/responses/InternalServerError.yaml

openapi/data-node/paths/datasets.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ post:
2727
$ref: ../../commons/components/responses/BadRequest.yaml
2828
'409':
2929
$ref: ../../commons/components/responses/Conflict.yaml
30+
'500':
31+
$ref: ../../commons/components/responses/InternalServerError.yaml
3032
get:
3133
tags:
3234
- Dataset
@@ -55,4 +57,5 @@ get:
5557
description: Success
5658
'400':
5759
$ref: ../../commons/components/responses/BadRequest.yaml
58-
60+
'500':
61+
$ref: ../../commons/components/responses/InternalServerError.yaml

openapi/data-node/paths/datasets@{datasetId}.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ get:
2020
$ref: ../components/schemas/Dataset.yaml
2121
'404':
2222
$ref: ../../commons/components/responses/NotFound.yaml
23+
'500':
24+
$ref: ../../commons/components/responses/InternalServerError.yaml
2325
delete:
2426
tags:
2527
- Dataset
@@ -34,4 +36,6 @@ delete:
3436
schema:
3537
$ref: ../../commons/components/schemas/EmptyObject.yaml
3638
'404':
37-
$ref: ../../commons/components/responses/NotFound.yaml
39+
$ref: ../../commons/components/responses/NotFound.yaml
40+
'500':
41+
$ref: ../../commons/components/responses/InternalServerError.yaml

openapi/data-node/paths/fhirStores.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ post:
3434
$ref: ../../commons/components/responses/BadRequest.yaml
3535
'409':
3636
$ref: ../../commons/components/responses/Conflict.yaml
37+
'500':
38+
$ref: ../../commons/components/responses/InternalServerError.yaml
3739
get:
3840
tags:
3941
- FhirStore
@@ -62,3 +64,5 @@ get:
6264
description: Success
6365
'400':
6466
$ref: ../../commons/components/responses/BadRequest.yaml
67+
'500':
68+
$ref: ../../commons/components/responses/InternalServerError.yaml

0 commit comments

Comments
 (0)