Created
April 29, 2022 07:06
-
-
Save chrimaho/2aaeb0649346f47b0f50ed5a63793010 to your computer and use it in GitHub Desktop.
This file contains 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
# Endpoint: Health Check ---- | |
@app.get \ | |
( path="/api/health" | |
, summary="Health check" | |
, description="Check to ensure that the app is healthy and ready to run." | |
, tags=["App Info"] | |
, response_class=PlainTextResponse | |
, responses= \ | |
{ 200: {"content": {"text/plain": {"schema": None}}} | |
} | |
) | |
def health(): | |
return PlainTextResponse \ | |
( "App is ready to go." | |
, status_code=200 | |
, media_type="text/plain" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment