feat(api): enhance authentication and health check endpoints with detailed responses and descriptions

This commit is contained in:
Abhimanyu Saharan
2026-02-15 02:35:31 +05:30
parent 7e147ee608
commit ae17facf88
4 changed files with 155 additions and 21 deletions

View File

@@ -0,0 +1,16 @@
"""Health and readiness probe response schemas."""
from __future__ import annotations
from pydantic import Field
from sqlmodel import SQLModel
class HealthStatusResponse(SQLModel):
"""Standard payload for service liveness/readiness checks."""
ok: bool = Field(
description="Indicates whether the probe check succeeded.",
examples=[True],
)