Skip to content

Commit

Permalink
Switch to JSON for health checks (#3)
Browse files Browse the repository at this point in the history
Switch to JSON for health checks to unify all endpoints on JSON

Signed-off-by: Matthew <[email protected]>
  • Loading branch information
Computroniks authored Apr 29, 2024
1 parent be244ca commit abb03f4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
10 changes: 0 additions & 10 deletions components/responses/HealthCheckFail.yaml

This file was deleted.

9 changes: 5 additions & 4 deletions components/responses/HealthCheckOK.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# SPDX-FileCopyrightText: 2024 Sidings Media
# SPDX-License-Identifier: MIT

description: Service is healthy
description: Health Check is OK
content:
text/plain:
application/json:
schema:
type: string
$ref: ../schemas/GeneralError.yaml
example:
healthy
code: 200
message: OK
2 changes: 1 addition & 1 deletion paths/messaging/health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ get:
'429':
$ref: ../../components/responses/TooManyRequests.yaml
5XX:
$ref: ../../components/responses/HealthCheckFail.yaml
$ref: ../../components/responses/ServerError.yaml
2 changes: 1 addition & 1 deletion paths/openapi/health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ get:
'429':
$ref: ../../components/responses/TooManyRequests.yaml
5XX:
$ref: ../../components/responses/HealthCheckFail.yaml
$ref: ../../components/responses/ServerError.yaml
2 changes: 1 addition & 1 deletion paths/static/health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ get:
'429':
$ref: ../../components/responses/TooManyRequests.yaml
5XX:
$ref: ../../components/responses/HealthCheckFail.yaml
$ref: ../../components/responses/ServerError.yaml

0 comments on commit abb03f4

Please sign in to comment.