Created
May 7, 2020 12:35
-
-
Save davidrosenstark/db4bb7be5fff114e062945e6513be76e to your computer and use it in GitHub Desktop.
flask_health_check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import jsonify | |
from flask_restx import Resource, Namespace | |
health_api = Namespace('health', 'health check api') | |
@health_api.route('health_check', doc=False) | |
class HealthCheck(Resource): | |
def get(self): | |
response = {"Status": "OK"} | |
return jsonify(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment