Files
plantillas-proyectos/backend/api/v1/modules/a76/router.py
Galindo97 0b4c385aeb feat: Implement Document Types for Digitization module
- Added backend API for managing document types related to digitization, including CRUD operations.
- Created DTOs and models for DocumentTypeDigitization with validation using Pydantic.
- Updated frontend API service to interact with the new document types API.
- Refactored existing forms in the frontend to load and manage document types effectively.
- Enhanced data loading and state management in various components related to pedimentos.
2026-01-02 14:16:09 -06:00

97 lines
5.1 KiB
Python

"""
Router principal de API v1
Agrega todos los módulos de la aplicación
"""
from fastapi import APIRouter
from .customs_brokers.routes import router as customs_broker_router
# Importar routers de módulos
from .invoices.routes import router as invoices_router
from .classes import router as classes_router
from .clients_and_providers import router as client_and_provider_router
from .general_catalogs.company import router as company_router
from .country_rule_oct.routes import router as country_rule_oct_router
from .transportation.drivers.routes import router as drivers_router
from .doc_types_dig.routes import router as doc_types_dig_router
from .general_catalogs.exchange_rate.routes import router as exchange_rate_router
from .general_catalogs.identifiers.routes import router as identifiers_router
from .fraction_rule_octave.routes import router as fraction_rule_octave_router
from .general_catalogs.packages.routes import router as package_router
from .general_catalogs.ports.routes import router as ports_router
from .parts import router as parts_router
from .pedmientos.router import router as pedimentos_router
from .permission_rule_oct.routes import router as permission_rule_oct_router
from .general_catalogs.seal.routes import router as seal_router
from .general_catalogs.units_of_measure.routes import router as units_of_measure_router
from .general_catalogs.concepts.routes import router as concepts_router
from .general_catalogs.customs_broker_concepts.routes import router as customs_broker_concepts_router
from .general_catalogs.classification_concepts.routes import router as classification_concepts_router
from .general_catalogs.unit_conversions.routes import router as unit_conversions_router
from .general_catalogs.equivalencies.routes import router as equivalencies_router
from .general_catalogs.multi_currency_types.routes import router as multi_currency_types_router
from .general_catalogs.inpc.routes import router as inpc_router
from .general_catalogs.legends.routes import router as legends_router
from .general_catalogs.signatures.routes import router as signatures_router
from .general_catalogs.error_catalogs.routes import router as error_catalogs_router
from .general_catalogs.doda.routes import router as doda_router
from .general_catalogs.prevalidators.routes import router as prevalidators_router
from .general_catalogs.electronic_notices.routes import router as electronic_notices_router
from .transportation.trailers.routes import router as trailers_router
from .transportation.transporters.routes import router as transporters_router
from .transportation.vehicles.routes import router as vehicles_router
# Router principal
router = APIRouter()
# Registrar módulos
router.include_router(invoices_router, prefix="/a76", tags=["a76 / invoices"])
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"])
router.include_router(
permission_rule_oct_router, prefix="/a76", tags=["a76 / permission_rule_oct"]
)
router.include_router(package_router, prefix="/a76")
router.include_router(ports_router, prefix="/a76")
router.include_router(seal_router, prefix="/a76", tags=["a76 / seal"])
router.include_router(units_of_measure_router, prefix="/a76")
router.include_router(
fraction_rule_octave_router, prefix="/a76", tags=["a76 / fraction_rule_octave"]
)
router.include_router(identifiers_router, prefix="/a76")
router.include_router(
country_rule_oct_router, prefix="/a76", tags=["a76 / country_rule_oct"]
)
router.include_router(exchange_rate_router, prefix="/a76",
tags=["a76 / exchange_rate"])
router.include_router(trailers_router, prefix="/a76", tags=["a76 / trailers"])
router.include_router(
customs_broker_router, prefix="/a76", tags=["a76 / customs_broker"]
)
router.include_router(doc_types_dig_router, prefix="/a76", tags=["a76 / document_types_digitization"])
router.include_router(drivers_router, prefix="/a76", tags=["a76 / drivers"])
router.include_router(transporters_router, prefix="/a76",
tags=["a76 / transporters"])
router.include_router(vehicles_router, prefix="/a76", tags=["a76 / vehicles"])
# Registrar catálogos generales adicionales
router.include_router(concepts_router, prefix="/a76")
router.include_router(customs_broker_concepts_router, prefix="/a76")
router.include_router(classification_concepts_router, prefix="/a76")
router.include_router(unit_conversions_router, prefix="/a76")
router.include_router(equivalencies_router, prefix="/a76")
router.include_router(multi_currency_types_router, prefix="/a76")
router.include_router(inpc_router, prefix="/a76")
router.include_router(legends_router, prefix="/a76")
router.include_router(signatures_router, prefix="/a76")
router.include_router(error_catalogs_router, prefix="/a76")
router.include_router(doda_router, prefix="/a76")
router.include_router(prevalidators_router, prefix="/a76")
router.include_router(electronic_notices_router, prefix="/a76")