- Added InvoiceHeader, InvoiceComplianceMx, InvoiceFinancials, InvoiceLogistics, InvoiceSalesDetails, and InvoiceCollections models. - Created schemas for invoice operations including create, update, and response schemas. - Developed services for handling business logic related to invoices, including retrieval, creation, updating, and deletion of invoices and their related data. - Introduced routes for invoice management, enabling CRUD operations through a RESTful API. - Integrated invoice routes into the main application router. - Removed unused routers from the core module to streamline the API structure.
27 lines
626 B
Python
27 lines
626 B
Python
"""
|
|
Router principal de API v1
|
|
Agrega todos los módulos de la aplicación
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
# Importar routers de módulos
|
|
from .modules.core.router import router as core_router
|
|
from .modules.a76.router import router as a76_router
|
|
from .modules.public.router import router as public_router
|
|
|
|
# Router principal
|
|
router = APIRouter()
|
|
|
|
# Registrar módulos
|
|
router.include_router(core_router)
|
|
router.include_router(a76_router)
|
|
router.include_router(public_router)
|
|
|
|
|
|
# Health check
|
|
@router.get("/status")
|
|
def status():
|
|
"""Health check de la API"""
|
|
return {"status": "ok", "version": "1.0.0", "api": "v1"}
|