Tweak app API urls.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
e1956f8d80
commit
77a3c103d1
@@ -279,11 +279,20 @@ urlpatterns = [
|
||||
]
|
||||
|
||||
api_urls = [
|
||||
url(r'^documents/$', APIDocumentListView.as_view(), name='document-list'),
|
||||
url(
|
||||
r'^documents/recent/$', APIRecentDocumentListView.as_view(),
|
||||
name='document-recent-list'
|
||||
r'^document_types/(?P<pk>[0-9]+)/$', APIDocumentTypeView.as_view(),
|
||||
name='documenttype-detail'
|
||||
),
|
||||
url(
|
||||
r'^document_types/$', APIDocumentTypeListView.as_view(),
|
||||
name='documenttype-list'
|
||||
),
|
||||
url(
|
||||
r'^document_types/(?P<pk>[0-9]+)/documents/$',
|
||||
APIDocumentTypeDocumentListView.as_view(),
|
||||
name='documenttype-document-list'
|
||||
),
|
||||
url(r'^documents/$', APIDocumentListView.as_view(), name='document-list'),
|
||||
url(
|
||||
r'^documents/(?P<pk>[0-9]+)/$', APIDocumentView.as_view(),
|
||||
name='document-detail'
|
||||
@@ -309,6 +318,10 @@ api_urls = [
|
||||
APIDocumentVersionDownloadView.as_view(),
|
||||
name='documentversion-download'
|
||||
),
|
||||
url(
|
||||
r'^documents/recent/$', APIRecentDocumentListView.as_view(),
|
||||
name='document-recent-list'
|
||||
),
|
||||
url(
|
||||
r'^documents/(?P<pk>[0-9]+)/versions/(?P<version_pk>[0-9]+)/pages/(?P<page_pk>[0-9]+)$',
|
||||
APIDocumentPageView.as_view(), name='documentpage-detail'
|
||||
@@ -317,19 +330,6 @@ api_urls = [
|
||||
r'^documents/(?P<pk>[0-9]+)/versions/(?P<version_pk>[0-9]+)/pages/(?P<page_pk>[0-9]+)/image/$',
|
||||
APIDocumentPageImageView.as_view(), name='documentpage-image'
|
||||
),
|
||||
url(
|
||||
r'^document_types/(?P<pk>[0-9]+)/documents/$',
|
||||
APIDocumentTypeDocumentListView.as_view(),
|
||||
name='documenttype-document-list'
|
||||
),
|
||||
url(
|
||||
r'^document_types/(?P<pk>[0-9]+)/$', APIDocumentTypeView.as_view(),
|
||||
name='documenttype-detail'
|
||||
),
|
||||
url(
|
||||
r'^document_types/$', APIDocumentTypeListView.as_view(),
|
||||
name='documenttype-list'
|
||||
),
|
||||
url(
|
||||
r'^trashed_documents/$', APIDeletedDocumentListView.as_view(),
|
||||
name='trasheddocument-list'
|
||||
|
||||
Reference in New Issue
Block a user