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: