Skip to content

Commit

Permalink
feat: health check API added
Browse files Browse the repository at this point in the history
Signed-off-by: SanjaySinghRajpoot <[email protected]>
  • Loading branch information
SanjaySinghRajpoot committed Jun 30, 2022
1 parent 089614d commit 350c9b5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions local/rest_api_flint.example/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@
def home():
return "FLINT.Example API"

@app.route("/health-flint-example", methods=["GET"])
def health():
"""
Get health status of FLINT example
---
tags:
- health
responses:
200:
description: A status check for FLINT example
"""
return "FLINT.Example is active."

@app.route("/spec")
def spec():
Expand Down
12 changes: 12 additions & 0 deletions local/rest_api_gcbm/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@
app.register_blueprint(SWAGGERUI_BLUEPRINT, url_prefix=SWAGGER_URL)
### end swagger specific ###

@app.route("/health-gcbm", methods=["GET"])
def health():
"""
Get health status of GCBM
---
tags:
- health
responses:
200:
description: A status check for GCBM
"""
return "GCBM is active."

@app.route("/spec")
def spec():
Expand Down

0 comments on commit 350c9b5

Please sign in to comment.