- Added service layer for handling client and provider operations including creation, retrieval, updating, and deletion. - Introduced DTOs for data transfer and validation. - Implemented filtering and pagination for client/provider listing. - Added logging for better traceability of operations. feat: Create parts management module - Developed a complete module for managing parts/components including creation, retrieval, updating, and deletion. - Introduced DTOs for parts with detailed attributes and validation. - Implemented search and filtering capabilities for parts based on various criteria. - Added endpoints for regulatory information retrieval and parts statistics. - Integrated logging for error handling and operational insights.
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
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 .auth import router as auth_router
|
|
from .tenants import router as tenants_router
|
|
from .licenses import router as licenses_router
|
|
from .pedmientos.router import router as pedimentos_router
|
|
from .client_and_provider import router as client_and_provider_router
|
|
from .company import router as company_router
|
|
from .classes import router as classes_router
|
|
from .parts import router as parts_router
|
|
|
|
# Router principal
|
|
router = APIRouter()
|
|
|
|
# Registrar módulos
|
|
router.include_router(auth_router)
|
|
router.include_router(tenants_router, prefix="/a76", tags=["a76 / tenants"])
|
|
router.include_router(licenses_router, prefix="/a76", tags=["a76 / licenses"])
|
|
router.include_router(pedimentos_router, prefix="/a76")
|
|
router.include_router(client_and_provider_router, prefix="/a76", tags=["a76 / clients and providers"])
|
|
router.include_router(company_router, prefix="/a76", tags=["a76 / company"])
|
|
router.include_router(classes_router, prefix="/a76", tags=["a76 / classes"])
|
|
router.include_router(parts_router, prefix="/a76", tags=["a76 / parts"])
|
|
|