refactor: Update response types to use common schemas across API endpoints
Some checks failed
Backend CI / test (push) Failing after 3m51s
Some checks failed
Backend CI / test (push) Failing after 3m51s
This commit is contained in:
21
app/schemas/common.py
Normal file
21
app/schemas/common.py
Normal 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")
|
||||
Reference in New Issue
Block a user