Files
ETB/ETB-API/automation_orchestration/urls.py
Iliyan Angelov 6b247e5b9f Updates
2025-09-19 11:58:53 +03:00

37 lines
1.2 KiB
Python

"""
URL configuration for automation_orchestration app
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views.automation import (
RunbookViewSet,
RunbookExecutionViewSet,
IntegrationViewSet,
ChatOpsIntegrationViewSet,
ChatOpsCommandViewSet,
AutoRemediationViewSet,
AutoRemediationExecutionViewSet,
MaintenanceWindowViewSet,
WorkflowTemplateViewSet,
WorkflowExecutionViewSet,
)
# Create router and register viewsets
router = DefaultRouter()
router.register(r'runbooks', RunbookViewSet)
router.register(r'runbook-executions', RunbookExecutionViewSet)
router.register(r'integrations', IntegrationViewSet)
router.register(r'chatops-integrations', ChatOpsIntegrationViewSet)
router.register(r'chatops-commands', ChatOpsCommandViewSet)
router.register(r'auto-remediations', AutoRemediationViewSet)
router.register(r'auto-remediation-executions', AutoRemediationExecutionViewSet)
router.register(r'maintenance-windows', MaintenanceWindowViewSet)
router.register(r'workflow-templates', WorkflowTemplateViewSet)
router.register(r'workflow-executions', WorkflowExecutionViewSet)
app_name = 'automation_orchestration'
urlpatterns = [
path('', include(router.urls)),
]