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