-
Notifications
You must be signed in to change notification settings - Fork 9
/
urls.py
27 lines (22 loc) · 869 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Workflows URLs
"""
import logging
from django.urls import path
from .api import adjust, classification, healthy, index, workflows
from .constants import WORKFLOWS_API_VERSION
from .views import classification as graph_classification
from .views import workflows as graph_workflows
logger = logging.getLogger(__name__)
urlpatterns = [
path("", index.as_view()),
path("healthy", healthy.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/workflows", workflows.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/workflows/<str:pk>", classification.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/workflows/<str:pk>/adjust", adjust.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/graph/workflows", graph_workflows.as_view()),
path(
f"api/{WORKFLOWS_API_VERSION}/graph/workflows/<str:pk>",
graph_classification.as_view(),
),
]