forked from dmm-com/pagoda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
112 lines (110 loc) · 2.33 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
from django.urls import path
from . import views
urlpatterns = [
path(
"<int:pk>/",
views.EntryAPI.as_view(
{
"get": "retrieve",
"put": "update",
"delete": "destroy",
}
),
),
path(
"<int:pk>/referral/",
views.EntryReferralAPI.as_view(
{
"get": "list",
}
),
),
path(
"<int:pk>/restore/",
views.EntryAPI.as_view(
{
"post": "restore",
}
),
),
path(
"<int:pk>/copy/",
views.EntryAPI.as_view(
{
"post": "copy",
}
),
),
path(
"<int:pk>/histories/",
views.EntryAPI.as_view(
{
"get": "list_histories",
}
),
),
path(
"<int:pk>/alias/",
views.EntryAPI.as_view(
{
"get": "list_alias",
}
),
),
path(
"alias/",
views.EntryAliasAPI.as_view(
{
"post": "create",
}
),
),
path(
"alias/bulk/",
views.EntryAliasAPI.as_view(
{
"post": "bulk_create",
}
),
),
path(
"alias/<int:pk>",
views.EntryAliasAPI.as_view(
{
"delete": "destroy",
}
),
),
path(
"search/",
views.searchAPI.as_view(
{
"get": "list",
}
),
),
path(
"advanced_search_result_export/",
views.AdvancedSearchResultAPI.as_view(),
),
path(
"<int:entity_id>/export/",
views.EntryExportAPI.as_view(),
),
path(
"<int:attr_id>/attr_referrals/",
views.EntryAttrReferralsAPI.as_view(
{
"get": "list",
}
),
),
path(
"<int:pk>/attrv_restore/",
views.EntryAttributeValueRestoreAPI.as_view(),
),
path("advanced_search/", views.AdvancedSearchAPI.as_view()),
path("advanced_search_chain/", views.AdvancedSearchChainAPI.as_view()),
path("import/", views.EntryImportAPI.as_view()),
path("bulk_delete/", views.EntryBulkDeleteAPI.as_view()),
]