Automated Action 0e00013b7f Implement product catalog API with CRUD operations
- Created FastAPI application with product catalog functionality
- Implemented CRUD operations for products
- Added SQLAlchemy models and Pydantic schemas
- Set up SQLite database with Alembic migrations
- Added health check endpoint
- Updated README with project documentation

generated with BackendIM... (backend.im)
2025-05-13 17:21:00 +00:00

12 lines
257 B
Python

from fastapi import APIRouter
from app.schemas.health import HealthCheck
router = APIRouter()
@router.get("/", response_model=HealthCheck)
def health_check():
"""
Health check endpoint.
"""
return HealthCheck(status="ok", version="0.1.0")