mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 14:56:47 +00:00
feature/ add more feature with api-collections
This commit is contained in:
parent
8ec299427b
commit
d1cee88d01
@ -115,8 +115,8 @@ class DeleteCollectionEndpointView(LoginRequiredMixin, FormView):
|
||||
"""Deletes api collection endpoint from API"""
|
||||
api = API(self.request.session.get('obp'))
|
||||
try:
|
||||
get_api_collection_by_Id_url = "/my/api-collections/{}".format(kwargs["api_collection_id"])
|
||||
result = api.get(get_api_collection_by_Id_url)
|
||||
get_api_collection_by_id_url = "/my/api-collections/{}".format(kwargs["api_collection_id"])
|
||||
result = api.get(get_api_collection_by_id_url)
|
||||
urlpath = '/my/api-collections/{}/api-collection-endpoints/{}'.format(kwargs['api_collection_name'],kwargs['operation_id'])
|
||||
result = api.delete(urlpath)
|
||||
if result is not None and 'code' in result and result['code']>=400:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user