-
Notifications
You must be signed in to change notification settings - Fork 27
/
urls.py
70 lines (68 loc) · 2.86 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
from django.urls import re_path, include
from core.collections.feeds import CollectionFeed
from core.common.constants import NAMESPACE_PATTERN
from . import views
urlpatterns = [
re_path(r'^$', views.CollectionListView.as_view(), name='collection-list'),
re_path(
r"^(?P<collection>{pattern})/$".format(pattern=NAMESPACE_PATTERN),
views.CollectionRetrieveUpdateDestroyView.as_view(),
name='collection-detail'
),
re_path(
r'^(?P<collection>{pattern})/versions/$'.format(pattern=NAMESPACE_PATTERN),
views.CollectionVersionListView.as_view(),
name='collection-version-list'
),
re_path(r'^(?P<collection>{pattern})/concepts/atom/$'.format(pattern=NAMESPACE_PATTERN), CollectionFeed()),
re_path(r"^(?P<collection>{pattern})/concepts/".format(pattern=NAMESPACE_PATTERN), include('core.concepts.urls')),
re_path(r"^(?P<collection>{pattern})/mappings/".format(pattern=NAMESPACE_PATTERN), include('core.mappings.urls')),
re_path(
r'^(?P<collection>{pattern})/references/$'.format(pattern=NAMESPACE_PATTERN),
views.CollectionReferencesView.as_view(),
name='collection-references'
),
re_path(
r'^(?P<collection>{pattern})/(?P<version>{pattern})/$'.format(pattern=NAMESPACE_PATTERN),
views.CollectionVersionRetrieveUpdateDestroyView.as_view(),
name='collection-version-detail'
),
re_path(
r"^(?P<collection>{pattern})/extras/(?P<extra>{pattern})/$".format(pattern=NAMESPACE_PATTERN),
views.CollectionExtraRetrieveUpdateDestroyView.as_view(),
name='collection-extra'
),
re_path(
r'^(?P<collection>{pattern})/(?P<version>{pattern})/export/$'.format(pattern=NAMESPACE_PATTERN),
views.CollectionVersionExportView.as_view(), name='collectionversion-export'
),
re_path(
r"^(?P<collection>{pattern})/(?P<version>{pattern})/extras/$".format(pattern=NAMESPACE_PATTERN),
views.CollectionExtrasView.as_view(),
name='collectionversion-extras'
),
re_path(
r"^(?P<collection>{pattern})/(?P<version>{pattern})/extras/(?P<extra>{pattern})/$".format(
pattern=NAMESPACE_PATTERN
),
views.CollectionExtraRetrieveUpdateDestroyView.as_view(),
name='collectionversion-extra'
),
re_path(
r"^(?P<collection>{pattern})/(?P<version>{pattern})/concepts/".format(
pattern=NAMESPACE_PATTERN
),
include('core.concepts.urls')
),
re_path(
r"^(?P<collection>{pattern})/(?P<version>{pattern})/mappings/".format(
pattern=NAMESPACE_PATTERN
),
include('core.mappings.urls')
),
re_path(
r'^(?P<collection>{pattern})/(?P<version>{pattern})/processing/$'.format(pattern=NAMESPACE_PATTERN),
views.CollectionVersionProcessingView.as_view(),
name='collectionversion-processing'
),
]