From 94c77710f5533410837d4e3e1ff501b08b253b8e Mon Sep 17 00:00:00 2001 From: Deshna Date: Fri, 19 Dec 2025 12:03:37 +0530 Subject: [PATCH] Improve quick start documentation and add health endpoint --- test_app.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test_app.py diff --git a/test_app.py b/test_app.py new file mode 100644 index 000000000..cc1c8213a --- /dev/null +++ b/test_app.py @@ -0,0 +1,28 @@ +from fastapi import FastAPI +from pydantic import BaseModel + +app = FastAPI( + title="FastAPI", + description=""" +## 🚀 Quick Start + +```bash +curl -X GET http://127.0.0.1:8000/ +""" +) + +class HealthResponse(BaseModel): + status: str + +@app.get("/") +def root(): + return "Hello World" + +@app.get( +"/health", +response_model=HealthResponse, +summary="Health check endpoint", +tags=["System"] +) +def health_check(): + return HealthResponse(status="healthy") \ No newline at end of file