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-12-31 11:51:16 +00:00
|
|
|
from passbook.admin.views import (
|
|
|
|
applications,
|
|
|
|
audit,
|
2020-03-03 22:35:25 +00:00
|
|
|
certificate_key_pair,
|
2019-12-31 11:51:16 +00:00
|
|
|
debug,
|
2020-05-08 16:45:53 +00:00
|
|
|
flows,
|
2019-12-31 11:51:16 +00:00
|
|
|
groups,
|
2020-05-15 20:15:01 +00:00
|
|
|
inlets,
|
2019-12-31 11:51:16 +00:00
|
|
|
invitations,
|
2020-05-15 20:15:01 +00:00
|
|
|
outlets,
|
2019-12-31 11:51:16 +00:00
|
|
|
overview,
|
2020-05-15 20:15:01 +00:00
|
|
|
policies,
|
2019-12-31 11:51:16 +00:00
|
|
|
property_mapping,
|
2020-05-08 17:46:39 +00:00
|
|
|
stages,
|
2019-12-31 11:51:16 +00:00
|
|
|
users,
|
|
|
|
)
|
2018-12-26 23:38:42 +00:00
|
|
|
|
2018-11-11 12:41:48 +00:00
|
|
|
urlpatterns = [
|
2019-12-31 11:51:16 +00:00
|
|
|
path("", overview.AdministrationOverviewView.as_view(), name="overview"),
|
2018-11-26 21:08:18 +00:00
|
|
|
# Applications
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
|
|
|
"applications/", applications.ApplicationListView.as_view(), name="applications"
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"applications/create/",
|
|
|
|
applications.ApplicationCreateView.as_view(),
|
|
|
|
name="application-create",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"applications/<uuid:pk>/update/",
|
|
|
|
applications.ApplicationUpdateView.as_view(),
|
|
|
|
name="application-update",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"applications/<uuid:pk>/delete/",
|
|
|
|
applications.ApplicationDeleteView.as_view(),
|
|
|
|
name="application-delete",
|
|
|
|
),
|
2020-05-15 20:15:01 +00:00
|
|
|
# Inlets
|
|
|
|
path("inlets/", inlets.InletListView.as_view(), name="inlets"),
|
|
|
|
path("inlets/create/", inlets.InletCreateView.as_view(), name="inlet-create"),
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
2020-05-15 20:15:01 +00:00
|
|
|
"inlets/<uuid:pk>/update/",
|
|
|
|
inlets.InletUpdateView.as_view(),
|
|
|
|
name="inlet-update",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
|
|
|
path(
|
2020-05-15 20:15:01 +00:00
|
|
|
"inlets/<uuid:pk>/delete/",
|
|
|
|
inlets.InletDeleteView.as_view(),
|
|
|
|
name="inlet-delete",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
2019-02-16 09:24:31 +00:00
|
|
|
# Policies
|
2020-05-15 20:15:01 +00:00
|
|
|
path("policies/", policies.PolicyListView.as_view(), name="policies"),
|
|
|
|
path("policies/create/", policies.PolicyCreateView.as_view(), name="policy-create"),
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
|
|
|
"policies/<uuid:pk>/update/",
|
2020-05-15 20:15:01 +00:00
|
|
|
policies.PolicyUpdateView.as_view(),
|
2019-12-31 11:51:16 +00:00
|
|
|
name="policy-update",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"policies/<uuid:pk>/delete/",
|
2020-05-15 20:15:01 +00:00
|
|
|
policies.PolicyDeleteView.as_view(),
|
2019-12-31 11:51:16 +00:00
|
|
|
name="policy-delete",
|
|
|
|
),
|
|
|
|
path(
|
2020-05-15 20:15:01 +00:00
|
|
|
"policies/<uuid:pk>/test/",
|
|
|
|
policies.PolicyTestView.as_view(),
|
|
|
|
name="policy-test",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
2020-05-15 20:15:01 +00:00
|
|
|
# Outlets
|
|
|
|
path("outlets/", outlets.OutletListView.as_view(), name="outlets"),
|
|
|
|
path("outlets/create/", outlets.OutletCreateView.as_view(), name="outlet-create",),
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
2020-05-15 20:15:01 +00:00
|
|
|
"outlets/<int:pk>/update/",
|
|
|
|
outlets.OutletUpdateView.as_view(),
|
|
|
|
name="outlet-update",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
|
|
|
path(
|
2020-05-15 20:15:01 +00:00
|
|
|
"outlets/<int:pk>/delete/",
|
|
|
|
outlets.OutletDeleteView.as_view(),
|
|
|
|
name="outlet-delete",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
2020-05-08 17:46:39 +00:00
|
|
|
# Stages
|
|
|
|
path("stages/", stages.StageListView.as_view(), name="stages"),
|
|
|
|
path("stages/create/", stages.StageCreateView.as_view(), name="stage-create"),
|
2019-12-31 11:51:16 +00:00
|
|
|
path(
|
2020-05-08 17:46:39 +00:00
|
|
|
"stages/<uuid:pk>/update/",
|
|
|
|
stages.StageUpdateView.as_view(),
|
|
|
|
name="stage-update",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
|
|
|
path(
|
2020-05-08 17:46:39 +00:00
|
|
|
"stages/<uuid:pk>/delete/",
|
|
|
|
stages.StageDeleteView.as_view(),
|
|
|
|
name="stage-delete",
|
2019-12-31 11:51:16 +00:00
|
|
|
),
|
2020-05-08 16:45:53 +00:00
|
|
|
# Flows
|
|
|
|
path("flows/", flows.FlowListView.as_view(), name="flows"),
|
|
|
|
path("flows/create/", flows.FlowCreateView.as_view(), name="flow-create",),
|
|
|
|
path(
|
|
|
|
"flows/<uuid:pk>/update/", flows.FlowUpdateView.as_view(), name="flow-update",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"flows/<uuid:pk>/delete/", flows.FlowDeleteView.as_view(), name="flow-delete",
|
|
|
|
),
|
2020-05-08 17:46:39 +00:00
|
|
|
# Property Mappings
|
2019-12-31 11:51:16 +00:00
|
|
|
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
|
2019-12-31 11:51:16 +00:00
|
|
|
path("invitations/", invitations.InvitationListView.as_view(), name="invitations"),
|
|
|
|
path(
|
|
|
|
"invitations/create/",
|
|
|
|
invitations.InvitationCreateView.as_view(),
|
|
|
|
name="invitation-create",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"invitations/<uuid:pk>/delete/",
|
|
|
|
invitations.InvitationDeleteView.as_view(),
|
|
|
|
name="invitation-delete",
|
|
|
|
),
|
2018-12-14 13:24:04 +00:00
|
|
|
# Users
|
2019-12-31 11:51:16 +00:00
|
|
|
path("users/", users.UserListView.as_view(), name="users"),
|
|
|
|
path("users/create/", users.UserCreateView.as_view(), name="user-create"),
|
|
|
|
path("users/<int:pk>/update/", users.UserUpdateView.as_view(), name="user-update"),
|
|
|
|
path("users/<int:pk>/delete/", users.UserDeleteView.as_view(), name="user-delete"),
|
|
|
|
path(
|
|
|
|
"users/<int:pk>/reset/",
|
|
|
|
users.UserPasswordResetView.as_view(),
|
|
|
|
name="user-password-reset",
|
|
|
|
),
|
2019-03-08 14:49:45 +00:00
|
|
|
# Groups
|
2019-12-31 11:51:16 +00:00
|
|
|
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"
|
|
|
|
),
|
2020-03-03 22:35:25 +00:00
|
|
|
# Certificate-Key Pairs
|
|
|
|
path(
|
|
|
|
"crypto/certificates/",
|
|
|
|
certificate_key_pair.CertificateKeyPairListView.as_view(),
|
|
|
|
name="certificate_key_pair",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"crypto/certificates/create/",
|
|
|
|
certificate_key_pair.CertificateKeyPairCreateView.as_view(),
|
|
|
|
name="certificatekeypair-create",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"crypto/certificates/<uuid:pk>/update/",
|
|
|
|
certificate_key_pair.CertificateKeyPairUpdateView.as_view(),
|
|
|
|
name="certificatekeypair-update",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"crypto/certificates/<uuid:pk>/delete/",
|
|
|
|
certificate_key_pair.CertificateKeyPairDeleteView.as_view(),
|
|
|
|
name="certificatekeypair-delete",
|
|
|
|
),
|
2018-12-14 09:28:37 +00:00
|
|
|
# Audit Log
|
2019-12-31 11:51:16 +00:00
|
|
|
path("audit/", audit.EventListView.as_view(), name="audit-log"),
|
2018-12-26 23:38:42 +00:00
|
|
|
# Groups
|
2019-12-31 11:51:16 +00:00
|
|
|
path("groups/", groups.GroupListView.as_view(), name="groups"),
|
2019-03-14 17:01:27 +00:00
|
|
|
# Debug
|
2019-12-31 11:51:16 +00:00
|
|
|
path("debug/request/", debug.DebugRequestView.as_view(), name="debug-request"),
|
2018-11-11 12:41:48 +00:00
|
|
|
]
|