Skip to content

Commit

Permalink
Merge pull request #80 from cpbinovo/healthcheck
Browse files Browse the repository at this point in the history
add health check path
  • Loading branch information
langdal authored Oct 9, 2023
2 parents aa2ee22 + a0b4e77 commit 7186f0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimizerapi/health.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def check() -> str:
return "OK"
7 changes: 7 additions & 0 deletions optimizerapi/openapi/specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ paths:
],
},
}
/health:
get:
description: Health check endpoint
operationId: optimizerapi.health.check
responses:
"200":
description: Service is reachable

components:
securitySchemes:
Expand Down

0 comments on commit 7186f0e

Please sign in to comment.