/
urls.py
65 lines (62 loc) · 1.78 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from django.conf.urls import url
from django.urls import path
from .views import (
ProjectView,
ProjectDetailView,
ProjectDetailAPIView,
ProjectAPIView,
TagsAPIView,
EmbedApprovalView,
EmbedApprovalDetailView,
DeploymentsView,
DeploymentsDetailView,
DeploymentsIdView,
BuildView,
BuildDetailView,
)
urlpatterns = [
url(r"^$", ProjectView.as_view(), name="publish"),
path(
"api/v1/deployments/<str:id>/",
DeploymentsIdView.as_view(),
name="deployments_id_view",
),
path("api/v1/deployments/", DeploymentsView.as_view(), name="list_deployments_api"),
path("api/v1/builds/<int:id>/", BuildDetailView.as_view(), name="build_detail_api"),
path(
"api/v1/builds/<int:id>/promote/",
BuildDetailView.as_view(),
name="build_promote_api",
),
path("api/v1/", ProjectAPIView.as_view(), name="project_create_api"),
path(
"api/v1/<str:username>/<str:title>/builds/",
BuildView.as_view(),
name="build_create_api",
),
path(
"api/v1/<str:username>/<str:title>/embedapprovals/",
EmbedApprovalView.as_view(),
name="embed_approval",
),
path(
"api/v1/<str:username>/<str:title>/embedapprovals/<str:ea_name>/",
EmbedApprovalDetailView.as_view(),
name="embed_approval_detail",
),
path(
"api/v1/<str:username>/<str:title>/deployments/<str:dep_name>/",
DeploymentsDetailView.as_view(),
name="deployments_detail",
),
path(
"api/v1/<str:username>/<str:title>/",
ProjectDetailAPIView.as_view(),
name="project_detail_api",
),
path(
"api/v1/<str:username>/<str:title>/tags/",
TagsAPIView.as_view(),
name="project_tags_api",
),
]