
- 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
19 lines
768 B
Python
19 lines
768 B
Python
# Import all schemas to make them available throughout the app
|
|
from app.schemas.base import BaseSchema, TimestampSchema # noqa: F401
|
|
from app.schemas.user import ( # noqa: F401
|
|
User, UserCreate, UserUpdate, UserInDB, UserInDBBase
|
|
)
|
|
from app.schemas.product import ( # noqa: F401
|
|
Product, ProductCreate, ProductUpdate, ProductInDB
|
|
)
|
|
from app.schemas.cart import ( # noqa: F401
|
|
Cart, CartCreate, CartUpdate, CartInDB,
|
|
CartItemCreate, CartItemUpdate, CartItemInDB, CartItemWithProduct,
|
|
AddToCartResponse
|
|
)
|
|
from app.schemas.order import ( # noqa: F401
|
|
Order, OrderCreate, OrderUpdate, OrderInDB,
|
|
OrderItemCreate, OrderItemInDB, OrderItemWithProduct,
|
|
OrderResponse
|
|
)
|
|
from app.schemas.auth import Token, TokenPayload, Login # noqa: F401 |