
- Created project structure with FastAPI framework - Set up SQLite database with SQLAlchemy ORM - Implemented models: User, Item, Supplier, Transaction - Created CRUD operations for all models - Added API endpoints for all resources - Implemented JWT authentication and authorization - Added Alembic migration scripts - Created health endpoint - Updated documentation generated with BackendIM... (backend.im)
10 lines
512 B
Python
10 lines
512 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.endpoints import items, login, suppliers, transactions, users
|
|
|
|
api_router = APIRouter()
|
|
api_router.include_router(login.router, tags=["login"])
|
|
api_router.include_router(users.router, prefix="/users", tags=["users"])
|
|
api_router.include_router(items.router, prefix="/items", tags=["items"])
|
|
api_router.include_router(suppliers.router, prefix="/suppliers", tags=["suppliers"])
|
|
api_router.include_router(transactions.router, prefix="/transactions", tags=["transactions"]) |