Bin
2025-12-16 7423b0c6e1959f30a7e8e453e953310f32ce13c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
"""
from data_manager import api, views
from django.urls import include, path
from rest_framework.routers import DefaultRouter
 
app_name = 'data_manager'
router = DefaultRouter()
router.register(r'views', api.ViewAPI, basename='view')
 
urlpatterns = [
    path('api/dm/', include((router.urls, app_name), namespace='api')),
    path('api/dm/columns/', api.ProjectColumnsAPI.as_view(), name='dm-columns'),
    path('api/dm/project/', api.ProjectStateAPI.as_view(), name='dm-project'),
    path('api/dm/actions/', api.ProjectActionsAPI.as_view(), name='dm-actions'),
    path('api/dm/actions/<str:action_id>/form/', api.ProjectActionsFormAPI.as_view(), name='dm-actions-form'),
    # path("api/dm/tasks/", api.TaskListAPI.as_view()),
    # path("api/dm/tasks/<int:pk>", api.TaskAPI.as_view()),
    path('projects/<int:pk>/', views.task_page, name='project-data'),
    path('projects/<int:pk>/data/', views.task_page, name='project-data'),
    path('projects/<int:pk>/data/import', views.task_page, name='project-import'),
    path('projects/<int:pk>/data/export', views.task_page, name='project-export'),
]