diff --git a/schemas/healthcheck.py b/schemas/healthcheck.py new file mode 100644 index 0000000..0fbcd83 --- /dev/null +++ b/schemas/healthcheck.py @@ -0,0 +1,20 @@ +from pydantic import BaseModel, Field + +# Base Schema +class HealthCheckBase(BaseModel): + pass + +# Create Schema +class HealthCheckCreate(HealthCheckBase): + pass + +# Response Schema +class HealthCheck(HealthCheckBase): + status: str = Field(..., example="ok") + + class Config: + schema_extra = { + "example": { + "status": "ok" + } + } \ No newline at end of file