From a0b4e77f24415270d5bd81d1ead0f98135fa065b Mon Sep 17 00:00:00 2001 From: CPBI Date: Mon, 9 Oct 2023 08:28:34 +0200 Subject: [PATCH] add healthcheck path --- optimizerapi/health.py | 2 ++ optimizerapi/openapi/specification.yml | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 optimizerapi/health.py diff --git a/optimizerapi/health.py b/optimizerapi/health.py new file mode 100644 index 0000000..f658ce6 --- /dev/null +++ b/optimizerapi/health.py @@ -0,0 +1,2 @@ +def check() -> str: + return "OK" diff --git a/optimizerapi/openapi/specification.yml b/optimizerapi/openapi/specification.yml index e8402be..b50292f 100644 --- a/optimizerapi/openapi/specification.yml +++ b/optimizerapi/openapi/specification.yml @@ -122,6 +122,13 @@ paths: ], }, } + /health: + get: + description: Health check endpoint + operationId: optimizerapi.health.check + responses: + "200": + description: Service is reachable components: securitySchemes: