diff --git a/test_app.py b/test_app.py index cc1c8213a..db4a843c1 100644 --- a/test_app.py +++ b/test_app.py @@ -8,21 +8,24 @@ app = FastAPI( ```bash curl -X GET http://127.0.0.1:8000/ -""" +""", ) + class HealthResponse(BaseModel): - status: str + status: str + @app.get("/") def root(): - return "Hello World" + return "Hello World" + @app.get( -"/health", -response_model=HealthResponse, -summary="Health check endpoint", -tags=["System"] + "/health", + response_model=HealthResponse, + summary="Health check endpoint", + tags=["System"], ) def health_check(): - return HealthResponse(status="healthy") \ No newline at end of file + return HealthResponse(status="healthy")