62 lines
2.9 KiB
Python
62 lines
2.9 KiB
Python
# This file defines the URL patterns for the customs app in a Django project.
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
# import necessary viewsets
|
|
from .views import (
|
|
ViewSetPedimento,
|
|
ViewSetTipoOperacion,
|
|
ViewSetProcesamientoPedimento,
|
|
ViewSetEDocument,
|
|
ViewSetCove,
|
|
ImportadorViewSet,
|
|
PartidaViewSet
|
|
)
|
|
# from .views import YourViewSet # Import your viewsets here
|
|
|
|
router = DefaultRouter()
|
|
|
|
# Register your viewsets with the router here
|
|
# Example:
|
|
# from .views import MyViewSet
|
|
# router.register(r'myviewset', MyViewSet, basename='myviewset')
|
|
|
|
router.register(r'pedimentos', ViewSetPedimento, basename='Pedimento')
|
|
router.register(r'tiposoperacion', ViewSetTipoOperacion, basename='TipoOperacion')
|
|
router.register(r'procesamientopedimentos', ViewSetProcesamientoPedimento, basename='ProcesamientoPedimento')
|
|
router.register(r'edocuments', ViewSetEDocument, basename='EDocument')
|
|
router.register(r'coves', ViewSetCove, basename='Cove')
|
|
router.register(r'importadores', ImportadorViewSet, basename='Importador')
|
|
router.register(r'partidas', PartidaViewSet, basename='Partida')
|
|
|
|
# Import auditor views
|
|
from .views_auditor import (
|
|
crear_partidas_organizacion,
|
|
crear_partidas_pedimento,
|
|
auditar_pedimentos_endpoint,
|
|
auditar_coves_endpoint,
|
|
auditar_acuse_cove_endpoint,
|
|
auditar_edocuments_endpoint,
|
|
auditar_acuse_endpoint,
|
|
auditar_cove_pedimento_endpoint,
|
|
auditar_acuse_cove_pedimento_endpoint,
|
|
auditar_edocument_pedimento_endpoint,
|
|
auditar_acuse_pedimento_endpoint,
|
|
auditor_procesar_pedimentos_organizacion
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('auditor/crear-partidas/organizacion/', crear_partidas_organizacion, name='crear-partidas-organizacion'),
|
|
path('auditor/crear-partidas/pedimento/', crear_partidas_pedimento, name='crear-partidas-pedimento'),
|
|
path('auditor/auditar-pedimentos/', auditar_pedimentos_endpoint, name='auditar-pedimentos'),
|
|
path('auditor/auditar-coves/', auditar_coves_endpoint, name='auditar-coves'),
|
|
path('auditor/auditar-acuse-cove/', auditar_acuse_cove_endpoint, name='auditar-acuse-cove'),
|
|
path('auditor/auditar-edocuments/', auditar_edocuments_endpoint, name='auditar-edocuments'),
|
|
path('auditor/auditar-acuse/', auditar_acuse_endpoint, name='auditar-acuse'),
|
|
path('auditor/auditar-cove/pedimento/', auditar_cove_pedimento_endpoint, name='auditar-cove-pedimento'),
|
|
path('auditor/auditar-acuse-cove/pedimento/', auditar_acuse_cove_pedimento_endpoint, name='auditar-acuse-cove-pedimento'),
|
|
path('auditor/auditar-edocument/pedimento/', auditar_edocument_pedimento_endpoint, name='auditar-edocument-pedimento'),
|
|
path('auditor/auditar-acuse/pedimento/', auditar_acuse_pedimento_endpoint, name='auditar-acuse-pedimento'),
|
|
path('auditor/procesar-pedimentos/organizaciones/', auditor_procesar_pedimentos_organizacion, name='procesar-pedimentos-organizaciones'),
|
|
] |