Example #1
0
from documents.views import unlend
from documents.views import missing
from documents.views import lost
from documents.views import SearchView
from documents.views import ExportView
from documents.views import export_allegro
from documents.views import export_bibtex
from documents.views import NonUserDetailView


urlpatterns = patterns('documents.views',
                       url(r'^$',
                           'index',
                           name='documents.index'),
                       url(r'^search/$',
                           SearchView.as_view(),
                           name='documents.search'),
                       url(r'^list/$',
                           DocumentList.as_view(),
                           name='documents.list'),
                       url(r'^list/missed/$',
                           MissedDocumentList.as_view(),
                           name='documents.list.missed'),
                       url(r'^list/lend/$',
                           LendDocumentList.as_view(),
                           name='documents.list.lend'),
                       url(r'^list/nonuserlend/(?P<nonuser>\d+)/$',
                           NonUserLendDocumentList.as_view(),
                           name='documents.list.nonuserlend'),
                       url(r'^view/(?P<pk>\w\d+)/$',
                           DocumentDetailView.as_view(),
Example #2
0
api_router.register(r"logs", LogViewSet, basename="logs")
api_router.register(r"tags", TagViewSet)
api_router.register(r"saved_views", SavedViewViewSet)

urlpatterns = [
    re_path(
        r"^api/",
        include([
            re_path(
                r"^auth/",
                include(('rest_framework.urls', 'rest_framework'),
                        namespace="rest_framework")),
            re_path(r"^search/autocomplete/",
                    SearchAutoCompleteView.as_view(),
                    name="autocomplete"),
            re_path(r"^search/", SearchView.as_view(), name="search"),
            re_path(
                r"^statistics/", StatisticsView.as_view(), name="statistics"),
            re_path(r"^documents/post_document/",
                    PostDocumentView.as_view(),
                    name="post_document"),
            re_path(r"^documents/bulk_edit/",
                    BulkEditView.as_view(),
                    name="bulk_edit"),
            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)
Example #3
0
api_router.register(r"tags", TagViewSet)
api_router.register(r"saved_views", SavedViewViewSet)


urlpatterns = [
    re_path(r"^paperless/api/", include([
        re_path(r"^auth/",
                include(('rest_framework.urls', 'rest_framework'),
                        namespace="rest_framework")),

        re_path(r"^search/autocomplete/",
                SearchAutoCompleteView.as_view(),
                name="autocomplete"),

        re_path(r"^search/",
                SearchView.as_view(),
                name="search"),

        re_path(r"^statistics/",
                StatisticsView.as_view(),
                name="statistics"),

        re_path(r"^documents/post_document/", PostDocumentView.as_view(),
                name="post_document"),

        re_path(r"^documents/bulk_edit/", BulkEditView.as_view(),
                name="bulk_edit"),

        re_path(r"^documents/selection_data/", SelectionDataView.as_view(),
                name="selection_data"),