Created
April 29, 2022 07:05
-
-
Save chrimaho/965d3ef3ed0d69386033c8c795eefc36 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