
- Set up FastAPI application structure - Create database models for User, Product, Cart, CartItem, Order, and OrderItem - Set up Alembic for database migrations - Create Pydantic schemas for request/response models - Implement API endpoints for products, cart operations, and checkout process - Add health endpoint - Update README with project details and documentation
11 lines
464 B
Python
11 lines
464 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.endpoints import health, products, cart, checkout
|
|
|
|
api_router = APIRouter()
|
|
|
|
# Include the different endpoints
|
|
api_router.include_router(health.router, prefix="/health", tags=["health"])
|
|
api_router.include_router(products.router, prefix="/products", tags=["products"])
|
|
api_router.include_router(cart.router, prefix="/cart", tags=["cart"])
|
|
api_router.include_router(checkout.router, prefix="/checkout", tags=["checkout"]) |