""" Integration app URLs with comprehensive CRUD operations. """ from django.urls import path, include from . import views app_name = 'integration' urlpatterns = [ # ============================================================================ # DASHBOARD AND OVERVIEW # ============================================================================ path('', views.IntegrationDashboardView.as_view(), name='dashboard'), # ============================================================================ # EXTERNAL SYSTEM URLS (FULL CRUD - Master Data) # ============================================================================ path('systems/', views.ExternalSystemListView.as_view(), name='external_system_list'), path('systems/create/', views.ExternalSystemCreateView.as_view(), name='external_system_create'), path('systems//', views.ExternalSystemDetailView.as_view(), name='external_system_detail'), path('systems//update/', views.ExternalSystemUpdateView.as_view(), name='external_system_update'), path('systems//delete/', views.ExternalSystemDeleteView.as_view(), name='external_system_delete'), # ============================================================================ # INTEGRATION ENDPOINT URLS (FULL CRUD - Operational Data) # ============================================================================ path('endpoints/', views.IntegrationEndpointListView.as_view(), name='integration_endpoint_list'), path('endpoints/create/', views.IntegrationEndpointCreateView.as_view(), name='integration_endpoint_create'), path('endpoints//', views.IntegrationEndpointDetailView.as_view(), name='integration_endpoint_detail'), path('endpoints//update/', views.IntegrationEndpointUpdateView.as_view(), name='integration_endpoint_update'), path('endpoints//delete/', views.IntegrationEndpointDeleteView.as_view(), name='integration_endpoint_delete'), # ============================================================================ # DATA MAPPING URLS (FULL CRUD - Operational Data) # ============================================================================ path('mappings/', views.DataMappingListView.as_view(), name='data_mapping_list'), path('mappings/create/', views.DataMappingCreateView.as_view(), name='data_mapping_create'), path('mappings//', views.DataMappingDetailView.as_view(), name='data_mapping_detail'), path('mappings//update/', views.DataMappingUpdateView.as_view(), name='data_mapping_update'), path('mappings//delete/', views.DataMappingDeleteView.as_view(), name='data_mapping_delete'), # ============================================================================ # INTEGRATION EXECUTION URLS (READ-ONLY - System Generated) # ============================================================================ path('executions/', views.IntegrationExecutionListView.as_view(), name='integration_execution_list'), path('executions//', views.IntegrationExecutionDetailView.as_view(), name='integration_execution_detail'), # ============================================================================ # WEBHOOK ENDPOINT URLS (FULL CRUD - Operational Data) # ============================================================================ path('webhooks/', views.WebhookEndpointListView.as_view(), name='webhook_endpoint_list'), path('webhooks/create/', views.WebhookEndpointCreateView.as_view(), name='webhook_endpoint_create'), path('webhooks//', views.WebhookEndpointDetailView.as_view(), name='webhook_endpoint_detail'), path('webhooks//update/', views.WebhookEndpointUpdateView.as_view(), name='webhook_endpoint_update'), path('webhooks//delete/', views.WebhookEndpointDeleteView.as_view(), name='webhook_endpoint_delete'), # ============================================================================ # WEBHOOK EXECUTION URLS (READ-ONLY - System Generated) # ============================================================================ path('webhook-executions/', views.WebhookExecutionListView.as_view(), name='webhook_execution_list'), path('webhook-executions//', views.WebhookExecutionDetailView.as_view(), name='webhook_execution_detail'), # ============================================================================ # INTEGRATION LOG URLS (READ-ONLY - System Generated) # ============================================================================ path('logs/', views.IntegrationLogListView.as_view(), name='integration_log_list'), path('logs//', views.IntegrationLogDetailView.as_view(), name='integration_log_detail'), # ============================================================================ # HTMX ENDPOINTS FOR REAL-TIME UPDATES # ============================================================================ path('stats/', views.integration_stats, name='integration_stats'), path('system-health/', views.system_health, name='system_health'), # ============================================================================ # ACTION URLS FOR WORKFLOW OPERATIONS # ============================================================================ path('systems//test-connection/', views.test_connection, name='test_connection'), path('endpoints//execute/', views.execute_endpoint, name='execute_endpoint'), path('mappings//test/', views.test_data_mapping, name='test_data_mapping'), path('endpoints/bulk-execute/', views.bulk_execute_endpoints, name='bulk_execute_endpoints'), # ============================================================================ # API ENDPOINTS # ============================================================================ path('api/', include('integration.api.urls')), ]