2015-06-18 23:57:43 -05:00
|
|
|
"""URL patterns for the dispatcher API."""
|
2023-02-16 00:04:25 -06:00
|
|
|
from django.urls import path
|
2015-06-18 23:57:43 -05:00
|
|
|
|
2023-02-16 00:04:25 -06:00
|
|
|
from dispatch.views import (DispatcherActionDetail, DispatcherActionList, DispatcherDetail, DispatcherDetailByKey,
|
|
|
|
DispatcherList, DispatchMessage, DispatchMessageByKey)
|
2015-06-18 23:57:43 -05:00
|
|
|
|
2017-02-06 22:58:51 -06:00
|
|
|
urlpatterns = [
|
2023-02-16 00:04:25 -06:00
|
|
|
path('api/dispatchers/', DispatcherList.as_view(), name='dispatch_api_dispatchers'),
|
2023-02-28 18:19:22 -06:00
|
|
|
path('api/dispatchers/<int:pk>/', DispatcherDetail.as_view(), name='dispatch_api_dispatcher_detail'),
|
|
|
|
path('api/dispatchers/<int:pk>/message', DispatchMessage.as_view(), name='dispatch_api_dispatch_message'),
|
2023-02-16 00:04:25 -06:00
|
|
|
path('api/dispatchers/<key>/', DispatcherDetailByKey.as_view(), name='dispatch_api_dispatcher_detail'),
|
|
|
|
path('api/dispatchers/<key>/message', DispatchMessageByKey.as_view(), name='dispatch_api_dispatch_message'),
|
2015-06-19 11:29:00 -05:00
|
|
|
|
2023-02-16 00:04:25 -06:00
|
|
|
path('api/actions/', DispatcherActionList.as_view(), name='dispatch_api_actions'),
|
2023-02-28 18:37:05 -06:00
|
|
|
path('api/actions/<int:pk>/', DispatcherActionDetail.as_view(), name='dispatch_api_action_detail'),
|
2017-02-06 22:58:51 -06:00
|
|
|
]
|