Skip to content

Commit de13036

Browse files
authored
Add health check endpoints to commons (#138)
* Add health check endpoints to commons * Hack to hopefully rename healthcheck.yaml to healthCheck.yaml * Rename plop.yaml to healthCheck.yaml * Fix typo
1 parent 4e53495 commit de13036

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
.idea
12
dist
2-
dist.yaml
33
node_modules
4+
5+
dist.yaml
46
openapi.yaml
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
type: object
2+
description: Represents the health of a service
3+
properties:
4+
status:
5+
description: Indicates whether the service status is acceptable or not
6+
type: string
7+
enum:
8+
- pass
9+
- fail
10+
- warn
11+
required:
12+
- status
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
get:
2+
tags:
3+
- HealthCheck
4+
summary: Get health check information
5+
description: Get information about the health of the service
6+
operationId: getHealthCheck
7+
responses:
8+
'200':
9+
description: Success
10+
content:
11+
application/json:
12+
schema:
13+
$ref: ../components/schemas/HealthCheck.yaml
14+
'404':
15+
$ref: ../components/responses/NotFound.yaml

openapi/data-node/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ tags:
3333
description: Operations about datasets
3434
- name: FhirStore
3535
description: Operations about FHIR stores
36+
- name: HealthCheck
37+
description: Operations about health checks
3638
- name: Note
3739
description: Operations about notes
3840
- name: Patient
@@ -72,5 +74,7 @@ paths:
7274
$ref: 'paths/notes.yaml'
7375
/datasets/{datasetId}/fhirStores/{fhirStoreId}/fhir/Note/{noteId}:
7476
$ref: 'paths/notes@{noteId}.yaml'
77+
/healthCheck:
78+
$ref: '../commons/paths/healthCheck.yaml'
7579
/service:
7680
$ref: '../commons/paths/service.yaml'

0 commit comments

Comments
 (0)