
- Set up project structure with app modules - Configure SQLite database connection - Set up Alembic for database migrations - Implement Item model with CRUD operations - Create API endpoints for items management - Add health check endpoint - Add API documentation - Add comprehensive README
18 lines
316 B
Python
18 lines
316 B
Python
"""
|
|
Pydantic schemas for health checks.
|
|
"""
|
|
from enum import Enum
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class HealthStatus(str, Enum):
|
|
"""Enum for health status."""
|
|
OK = "ok"
|
|
ERROR = "error"
|
|
|
|
|
|
class HealthCheck(BaseModel):
|
|
"""Schema for health check response."""
|
|
status: HealthStatus
|
|
version: str |