Add document type change API endpoint
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -4,13 +4,13 @@ from django.conf.urls import url
|
||||
|
||||
from .api_views import (
|
||||
APITrashedDocumentListView, APIDeletedDocumentRestoreView,
|
||||
APIDeletedDocumentView, APIDocumentDownloadView, APIDocumentView,
|
||||
APIDocumentListView, APIDocumentVersionDownloadView,
|
||||
APIDocumentPageImageView, APIDocumentPageView,
|
||||
APIDocumentTypeDocumentListView, APIDocumentTypeListView,
|
||||
APIDocumentTypeView, APIDocumentVersionsListView,
|
||||
APIDocumentVersionPageListView, APIDocumentVersionView,
|
||||
APIRecentDocumentListView
|
||||
APIDeletedDocumentView, APIDocumentDocumentTypeChangeView,
|
||||
APIDocumentDownloadView, APIDocumentView, APIDocumentListView,
|
||||
APIDocumentVersionDownloadView, APIDocumentPageImageView,
|
||||
APIDocumentPageView, APIDocumentTypeDocumentListView,
|
||||
APIDocumentTypeListView, APIDocumentTypeView,
|
||||
APIDocumentVersionsListView, APIDocumentVersionPageListView,
|
||||
APIDocumentVersionView, APIRecentDocumentListView
|
||||
)
|
||||
from .views.document_page_views import (
|
||||
DocumentPageDisable, DocumentPageEnable, DocumentPageListView,
|
||||
@@ -393,6 +393,11 @@ api_urls = [
|
||||
regex=r'^documents/(?P<pk>[0-9]+)/download/$',
|
||||
view=APIDocumentDownloadView.as_view(), name='document-download'
|
||||
),
|
||||
url(
|
||||
regex=r'^documents/(?P<pk>[0-9]+)/type/change/$',
|
||||
view=APIDocumentDocumentTypeChangeView.as_view(),
|
||||
name='document-type-change'
|
||||
),
|
||||
url(
|
||||
regex=r'^documents/(?P<pk>[0-9]+)/versions/$',
|
||||
view=APIDocumentVersionsListView.as_view(),
|
||||
|
||||
Reference in New Issue
Block a user