Skip to content

Commit

Permalink
Fix URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
C. Weaver committed Aug 28, 2023
1 parent 375e8ac commit 3366c45
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scimma_admin/hopskotch_auth/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.urls import path
from django.views.generic import TemplateView

from . import views
from . import callbacks
Expand Down Expand Up @@ -117,10 +118,15 @@
path("api/v<int:version>/groups/<str:group>/members", api_views.GroupMembershipViewSet.as_view({"get": "list", "post": "create"}), name="group_members"),
path("api/v<int:version>/groups/<str:group>/members/<int:pk>", api_views.GroupMembershipViewSet.as_view({"get": "retrieve", "patch": "partial_update", "delete": "destroy"}), name="group_member_detail"),
path("api/v<int:version>/groups/<str:owning_group>/topics", api_views.KafkaTopicViewSet.as_view({"get": "list", "post": "create"}), name="group_topics"),
path("api/v<int:version>/groups/<str:owning_group>/topics/<int:pk>", api_views.KafkaTopicViewSet.as_view({"get": "retrieve", "delete": "destroy", "patch": "partial_update"}), name="group_topic_detail"),
path("api/v<int:version>/groups/<str:granting_group>/topics/<int:topic>/permissions", api_views.GroupKafkaPermissionViewSet.as_view({"get": "list", "post": "create"}), name="group_topic_permissions"),
path("api/v<int:version>/groups/<str:granting_group>/topics/<int:topic>/permissions/<int:pk>", api_views.GroupKafkaPermissionViewSet.as_view({"get": "retrieve", "delete": "destroy"}), name="group_topic_permission_detail"),
path("api/v<int:version>/groups/<str:owning_group>/topics/<str:name>", api_views.KafkaTopicViewSet.as_view({"get": "retrieve", "delete": "destroy", "patch": "partial_update"}), name="group_topic_detail"),
path("api/v<int:version>/groups/<str:granting_group>/topics/<str:topic>/permissions", api_views.GroupKafkaPermissionViewSet.as_view({"get": "list", "post": "create"}), name="group_topic_permissions"),
path("api/v<int:version>/groups/<str:granting_group>/topics/<str:topic>/permissions/<int:pk>", api_views.GroupKafkaPermissionViewSet.as_view({"get": "retrieve", "delete": "destroy"}), name="group_topic_permission_detail"),
path("api/v<int:version>/groups/<str:granting_group>/permissions_given", api_views.GroupKafkaPermissionViewSet.as_view({"get": "list"}), name="group_permissions_given"),
path("api/v<int:version>/groups/<str:granting_group>/permissions_given/<int:pk>", api_views.GroupKafkaPermissionViewSet.as_view({"get": "retrieve", "delete": "destroy"}), name="group_permissions_given_detail"),
path("api/v<int:version>/groups/<str:subject_group>/permissions_received", api_views.GroupKafkaPermissionViewSet.as_view({"get": "list"}), name="group_permissions_received"),

path('api/swagger-ui/', TemplateView.as_view(
template_name='hopskotch_auth/swagger-ui.html',
extra_context={'schema_url':'openapi-schema'}
), name='swagger-ui'),
]

0 comments on commit 3366c45

Please sign in to comment.