
- Set up project structure with FastAPI - Configure SQLAlchemy with SQLite - Implement user and item models - Set up Alembic for database migrations - Create CRUD operations for models - Implement API endpoints for users and items - Add authentication functionality - Add health check endpoint - Configure Ruff for linting - Update README with comprehensive documentation
13 lines
269 B
Python
13 lines
269 B
Python
from typing import Dict
|
|
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/", response_model=Dict[str, str])
|
|
async def health() -> Dict[str, str]:
|
|
"""
|
|
Health check endpoint to verify the API is running.
|
|
"""
|
|
return {"status": "healthy"} |