refactor: Update response types to use common schemas across API endpoints
Some checks failed
Backend CI / test (push) Failing after 3m51s

This commit is contained in:
JSC
2025-07-31 10:40:03 +02:00
parent dc372b961e
commit c13285ca4e
7 changed files with 101 additions and 37 deletions

21
app/schemas/common.py Normal file
View File

@@ -0,0 +1,21 @@
"""Common response schemas."""
from pydantic import BaseModel, Field
class MessageResponse(BaseModel):
"""Generic message response."""
message: str = Field(description="Response message")
class StatusResponse(BaseModel):
"""Generic status response."""
status: str = Field(description="Status message")
class HealthResponse(BaseModel):
"""Health check response."""
status: str = Field(description="Health status")