LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
"""Internal API URLs for Notification/Webhook Operations
URL patterns for webhook notification internal APIs.
"""
from django.urls import include, path
from rest_framework.routers import DefaultRouter
from . import internal_api_views
from .internal_views import (
WebhookInternalViewSet,
WebhookMetricsAPIView,
WebhookTestAPIView,
)
# Create router for webhook viewsets
router = DefaultRouter()
router.register(r"", WebhookInternalViewSet, basename="webhook-internal")
urlpatterns = [
# Buffered (clubbed) notification dispatch endpoints
path(
"buffer/enqueue/",
internal_api_views.enqueue_notification_buffer,
name="enqueue_notification_buffer",
),
path(
"buffer/process/",
internal_api_views.process_notification_buffer,
name="process_notification_buffer",
),
# Terminal-state marks posted by the notification worker after delivery
# (replaces the old Celery link/link_error callbacks).
path(
"buffer/mark/dispatched/",
internal_api_views.mark_buffer_dispatched,
name="mark_buffer_dispatched",
),
path(
"buffer/mark/dead-letter/",
internal_api_views.mark_buffer_dead_letter,
name="mark_buffer_dead_letter",
),
# Notification data endpoints for workers
path(
"pipeline/<str:pipeline_id>/notifications/",
internal_api_views.get_pipeline_notifications,
name="get_pipeline_notifications",
),
path(
"pipeline/<str:pipeline_id>/",
internal_api_views.get_pipeline_data,
name="get_pipeline_data",
),
path(
"api/<str:api_id>/notifications/",
internal_api_views.get_api_notifications,
name="get_api_notifications",
),
path(
"api/<str:api_id>/",
internal_api_views.get_api_data,
name="get_api_data",
),
# Webhook operation endpoints
path("test/", WebhookTestAPIView.as_view(), name="webhook-test"),
path("metrics/", WebhookMetricsAPIView.as_view(), name="webhook-metrics"),
# Webhook configuration CRUD (via router)
path("", include(router.urls)),
]