API-Manager/apimanager/apicollections/urls.py

28 lines
1007 B
Python
Raw Permalink Normal View History

2021-10-12 08:24:13 +00:00
# -*- coding: utf-8 -*-
"""
URLs for config app
"""
2024-10-31 11:56:29 +00:00
from django.urls import re_path
2021-10-12 08:24:13 +00:00
from apicollections.views import IndexView, apicollections_save, \
apicollections_delete, DetailView, DeleteCollectionEndpointView, apicollections_update
2021-10-12 08:24:13 +00:00
urlpatterns = [
2024-10-31 11:56:29 +00:00
re_path(r'^$',
2021-10-12 08:24:13 +00:00
IndexView.as_view(),
name='apicollections-index'),
2024-10-31 11:56:29 +00:00
re_path(r'save/apicollection', apicollections_save,
2021-10-12 08:24:13 +00:00
name='apicollection-save'),
2024-10-31 11:56:29 +00:00
re_path(r'update/apicollection', apicollections_update,
name='apicollection-update'),
2024-10-31 11:56:29 +00:00
re_path(r'delete/apicollection', apicollections_delete,
name='apicollection-delete'),
2024-10-31 11:56:29 +00:00
re_path(r'^my-api-collection-ids/(?P<api_collection_id>[\w\@\.\+-]+)$',
DetailView.as_view(),
name='my-api-collection-detail'),
2024-10-31 11:56:29 +00:00
re_path(r'^delete/api-collections/(?P<api_collection_id>[\w-]+)/api-collection-endpoint/(?P<operation_id>[\w\@\.\+-]+)$',
DeleteCollectionEndpointView.as_view(),
name='delete-api-collection-endpoint'),
2021-10-12 08:24:13 +00:00
]