
- Set up project structure with FastAPI and SQLite - Create models for products and cart items - Implement schemas for API request/response validation - Add database migrations with Alembic - Create service layer for business logic - Implement API endpoints for cart operations - Add health endpoint for monitoring - Update documentation - Fix linting issues
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
# Re-export schemas for easier imports elsewhere
|
|
from app.schemas.common import (
|
|
ResponseBase as ResponseBase,
|
|
DataResponse as DataResponse,
|
|
PaginatedResponse as PaginatedResponse,
|
|
PaginationParams as PaginationParams
|
|
)
|
|
from app.schemas.product import (
|
|
Product as Product,
|
|
ProductCreate as ProductCreate,
|
|
ProductUpdate as ProductUpdate,
|
|
ProductInDB as ProductInDB
|
|
)
|
|
from app.schemas.cart import (
|
|
CartBase as CartBase,
|
|
CartCreate as CartCreate,
|
|
CartResponse as CartResponse,
|
|
CartDetail as CartDetail,
|
|
CartItemBase as CartItemBase,
|
|
CartItemCreate as CartItemCreate,
|
|
CartItemUpdate as CartItemUpdate,
|
|
CartItemResponse as CartItemResponse,
|
|
CartItemDetail as CartItemDetail
|
|
)
|
|
|
|
__all__ = [
|
|
"ResponseBase", "DataResponse", "PaginatedResponse", "PaginationParams",
|
|
"Product", "ProductCreate", "ProductUpdate", "ProductInDB",
|
|
"CartBase", "CartCreate", "CartResponse", "CartDetail",
|
|
"CartItemBase", "CartItemCreate", "CartItemUpdate", "CartItemResponse", "CartItemDetail"
|
|
] |