Initial commit

This commit is contained in:
2025-07-11 13:52:19 +00:00
commit e0c489f625
362 changed files with 27286 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
from fastapi import APIRouter, status
from pydantic import BaseModel
router = APIRouter()
class HealthCheck(BaseModel):
"""Response model for health check endpoint"""
status: str = "healthy"
@router.get(
"/health",
tags=["Health"],
summary="Perform a Health Check",
response_description="Return health status",
status_code=status.HTTP_200_OK,
response_model=HealthCheck
)
async def health_check() -> HealthCheck:
"""
Endpoint to perform a healthcheck. Used by container orchestration systems
to determine if the service is healthy and ready to receive traffic.
"""
return HealthCheck()