Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Health check API added for FLINT Example and GCBM #142

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions local/rest_api_flint.example/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ def home():
return "FLINT.Example API"


@app.route("/health", 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():
swag = swagger(app)
Expand Down
14 changes: 14 additions & 0 deletions local/rest_api_gcbm/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@
### end swagger specific ###


@app.route("/health", 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():
swag = swagger(app)
Expand Down