Coverage for apis_core/history/urls.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
1from django.urls import path
3from apis_core.history import views
4from apis_core.history.api_views import (
5 EntityHistoryLogs,
6 GenericHistoryLog,
7)
9app_name = "history"
12urlpatterns = [
13 path(
14 "<contenttype:contenttype>/<int:pk>/history",
15 views.HistoryView.as_view(),
16 name="history",
17 ),
18 path(
19 "add_new_version/<contenttype:contenttype>/<int:pk>/",
20 views.create_new_version,
21 name="add_new_history_version",
22 ),
23 path(
24 "api/version_log/<contenttype:contenttype>/<int:pk>/",
25 EntityHistoryLogs.as_view(),
26 name="entityhistorylog",
27 ),
28 path(
29 "api/entity_combined/<contenttype:contenttype>/<int:pk>/",
30 GenericHistoryLog.as_view(),
31 name="generichistorylog",
32 ),
33]