
- 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)
12 lines
257 B
Python
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") |