Improve the demo feature of the project

This commit is contained in:
Urtzi Alfaro
2025-10-12 18:47:33 +02:00
parent dbc7f2fa0d
commit 7556a00db7
168 changed files with 10102 additions and 18869 deletions

View File

@@ -14,6 +14,7 @@ from app.api.orders import router as orders_router
from app.api.customers import router as customers_router
from app.api.order_operations import router as order_operations_router
from app.api.procurement_operations import router as procurement_operations_router
from app.api import internal_demo
from app.services.procurement_scheduler_service import ProcurementSchedulerService
from shared.service_base import StandardFastAPIService
@@ -98,13 +99,18 @@ service.setup_standard_endpoints()
# Include routers - organized by ATOMIC and BUSINESS operations
# ATOMIC: Direct CRUD operations
service.add_router(orders_router)
# NOTE: Register customers_router BEFORE orders_router to ensure /customers
# matches before the parameterized /{order_id} route
service.add_router(customers_router)
service.add_router(orders_router)
# BUSINESS: Complex operations and workflows
service.add_router(order_operations_router)
service.add_router(procurement_operations_router)
# INTERNAL: Service-to-service endpoints
service.add_router(internal_demo.router)
@app.post("/test/procurement-scheduler")
async def test_procurement_scheduler():