2018-11-11 12:41:48 +00:00
|
|
|
"""passbook URL Configuration"""
|
2019-10-28 13:26:34 +00:00
|
|
|
from django.urls import path
|
2018-12-26 23:38:42 +00:00
|
|
|
|
2019-03-14 17:01:27 +00:00
|
|
|
from passbook.admin.views import (applications, audit, debug, factors, groups,
|
2019-03-08 11:47:50 +00:00
|
|
|
invitations, overview, policy,
|
|
|
|
property_mapping, providers, sources, users)
|
2018-12-26 23:38:42 +00:00
|
|
|
|
2018-11-11 12:41:48 +00:00
|
|
|
urlpatterns = [
|
2018-11-16 08:10:35 +00:00
|
|
|
path('', overview.AdministrationOverviewView.as_view(), name='overview'),
|
2018-11-26 21:08:18 +00:00
|
|
|
# Applications
|
2018-11-16 08:10:35 +00:00
|
|
|
path('applications/', applications.ApplicationListView.as_view(),
|
2018-11-16 12:08:37 +00:00
|
|
|
name='applications'),
|
2018-11-11 12:41:48 +00:00
|
|
|
path('applications/create/', applications.ApplicationCreateView.as_view(),
|
2018-11-16 08:10:35 +00:00
|
|
|
name='application-create'),
|
2018-11-26 21:08:18 +00:00
|
|
|
path('applications/<uuid:pk>/update/',
|
|
|
|
applications.ApplicationUpdateView.as_view(), name='application-update'),
|
|
|
|
path('applications/<uuid:pk>/delete/',
|
|
|
|
applications.ApplicationDeleteView.as_view(), name='application-delete'),
|
2018-11-26 21:09:04 +00:00
|
|
|
# Sources
|
2018-11-22 12:11:46 +00:00
|
|
|
path('sources/', sources.SourceListView.as_view(), name='sources'),
|
|
|
|
path('sources/create/', sources.SourceCreateView.as_view(), name='source-create'),
|
|
|
|
path('sources/<uuid:pk>/update/', sources.SourceUpdateView.as_view(), name='source-update'),
|
|
|
|
path('sources/<uuid:pk>/delete/', sources.SourceDeleteView.as_view(), name='source-delete'),
|
2019-02-16 09:24:31 +00:00
|
|
|
# Policies
|
|
|
|
path('policies/', policy.PolicyListView.as_view(), name='policies'),
|
|
|
|
path('policies/create/', policy.PolicyCreateView.as_view(), name='policy-create'),
|
|
|
|
path('policies/<uuid:pk>/update/', policy.PolicyUpdateView.as_view(), name='policy-update'),
|
|
|
|
path('policies/<uuid:pk>/delete/', policy.PolicyDeleteView.as_view(), name='policy-delete'),
|
|
|
|
path('policies/<uuid:pk>/test/', policy.PolicyTestView.as_view(), name='policy-test'),
|
2018-11-26 21:40:10 +00:00
|
|
|
# Providers
|
|
|
|
path('providers/', providers.ProviderListView.as_view(), name='providers'),
|
|
|
|
path('providers/create/',
|
|
|
|
providers.ProviderCreateView.as_view(), name='provider-create'),
|
2018-12-09 20:04:57 +00:00
|
|
|
path('providers/<int:pk>/update/',
|
2018-11-26 21:40:10 +00:00
|
|
|
providers.ProviderUpdateView.as_view(), name='provider-update'),
|
2018-12-09 20:04:57 +00:00
|
|
|
path('providers/<int:pk>/delete/',
|
2018-11-26 21:40:10 +00:00
|
|
|
providers.ProviderDeleteView.as_view(), name='provider-delete'),
|
2019-02-16 08:52:37 +00:00
|
|
|
# Factors
|
|
|
|
path('factors/', factors.FactorListView.as_view(), name='factors'),
|
|
|
|
path('factors/create/',
|
|
|
|
factors.FactorCreateView.as_view(), name='factor-create'),
|
|
|
|
path('factors/<uuid:pk>/update/',
|
|
|
|
factors.FactorUpdateView.as_view(), name='factor-update'),
|
|
|
|
path('factors/<uuid:pk>/delete/',
|
|
|
|
factors.FactorDeleteView.as_view(), name='factor-delete'),
|
2019-03-08 11:47:50 +00:00
|
|
|
# Factors
|
|
|
|
path('property-mappings/', property_mapping.PropertyMappingListView.as_view(),
|
|
|
|
name='property-mappings'),
|
|
|
|
path('property-mappings/create/',
|
|
|
|
property_mapping.PropertyMappingCreateView.as_view(), name='property-mapping-create'),
|
|
|
|
path('property-mappings/<uuid:pk>/update/',
|
|
|
|
property_mapping.PropertyMappingUpdateView.as_view(), name='property-mapping-update'),
|
|
|
|
path('property-mappings/<uuid:pk>/delete/',
|
|
|
|
property_mapping.PropertyMappingDeleteView.as_view(), name='property-mapping-delete'),
|
2018-12-10 13:21:42 +00:00
|
|
|
# Invitations
|
2018-12-10 13:49:15 +00:00
|
|
|
path('invitations/', invitations.InvitationListView.as_view(), name='invitations'),
|
|
|
|
path('invitations/create/',
|
|
|
|
invitations.InvitationCreateView.as_view(), name='invitation-create'),
|
2018-12-10 13:21:42 +00:00
|
|
|
path('invitations/<uuid:pk>/delete/',
|
2018-12-10 13:49:15 +00:00
|
|
|
invitations.InvitationDeleteView.as_view(), name='invitation-delete'),
|
2018-12-14 13:24:04 +00:00
|
|
|
# Users
|
|
|
|
path('users/', users.UserListView.as_view(),
|
|
|
|
name='users'),
|
2019-10-08 10:27:19 +01:00
|
|
|
path('users/create/', users.UserCreateView.as_view(), name='user-create'),
|
2018-12-14 13:24:04 +00:00
|
|
|
path('users/<int:pk>/update/',
|
|
|
|
users.UserUpdateView.as_view(), name='user-update'),
|
|
|
|
path('users/<int:pk>/delete/',
|
|
|
|
users.UserDeleteView.as_view(), name='user-delete'),
|
2019-02-25 19:46:23 +00:00
|
|
|
path('users/<int:pk>/reset/',
|
|
|
|
users.UserPasswordResetView.as_view(), name='user-password-reset'),
|
2019-03-08 14:49:45 +00:00
|
|
|
# Groups
|
|
|
|
path('group/', groups.GroupListView.as_view(), name='group'),
|
|
|
|
path('group/create/', groups.GroupCreateView.as_view(), name='group-create'),
|
|
|
|
path('group/<uuid:pk>/update/', groups.GroupUpdateView.as_view(), name='group-update'),
|
|
|
|
path('group/<uuid:pk>/delete/', groups.GroupDeleteView.as_view(), name='group-delete'),
|
2018-12-14 09:28:37 +00:00
|
|
|
# Audit Log
|
2019-10-28 13:26:34 +00:00
|
|
|
path('audit/', audit.EventListView.as_view(), name='audit-log'),
|
2018-12-26 23:38:42 +00:00
|
|
|
# Groups
|
|
|
|
path('groups/', groups.GroupListView.as_view(), name='groups'),
|
2019-03-14 17:01:27 +00:00
|
|
|
# Debug
|
|
|
|
path('debug/request/', debug.DebugRequestView.as_view(), name='debug-request'),
|
2018-11-11 12:41:48 +00:00
|
|
|
]
|