
Implemented a complete FastAPI backend with: - Project structure with FastAPI and SQLAlchemy - SQLite database with proper configuration - Alembic for database migrations - Generic Item resource with CRUD operations - REST API endpoints with proper validation - Health check endpoint - Documentation and setup instructions
8 lines
232 B
Python
8 lines
232 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.endpoints import items, health
|
|
|
|
api_router = APIRouter()
|
|
api_router.include_router(health.router, tags=["health"])
|
|
api_router.include_router(items.router, prefix="/items", tags=["items"])
|