API support for downloading compressed archives of multiple documents

This commit is contained in:
jonaswinkler
2021-02-20 16:09:29 +01:00
parent f9669501a1
commit 02f93792c1
5 changed files with 274 additions and 26 deletions

View File

@@ -23,7 +23,8 @@ from documents.views import (
PostDocumentView,
SavedViewViewSet,
BulkEditView,
SelectionDataView
SelectionDataView,
BulkDownloadView
)
from paperless.views import FaviconView
@@ -63,6 +64,9 @@ urlpatterns = [
re_path(r"^documents/selection_data/", SelectionDataView.as_view(),
name="selection_data"),
re_path(r"^documents/bulk_download/", BulkDownloadView.as_view(),
name="bulk_download"),
path('token/', views.obtain_auth_token)
] + api_router.urls)),