Skip to content

Instantly share code, notes, and snippets.

@davidrosenstark
Created May 7, 2020 12:35
Show Gist options
  • Save davidrosenstark/db4bb7be5fff114e062945e6513be76e to your computer and use it in GitHub Desktop.
Save davidrosenstark/db4bb7be5fff114e062945e6513be76e to your computer and use it in GitHub Desktop.
flask_health_check
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