diff --git a/kiali/api_connector.py b/kiali/api_connector.py index 1cd2cde..c440aae 100644 --- a/kiali/api_connector.py +++ b/kiali/api_connector.py @@ -35,6 +35,9 @@ def dispatcher(self, url, params=None, http_method='GET', data=None): if http_method is 'PATCH': return self.patch(url=url, params=params, data=data) + if http_method is 'DELETE': + return self.delete(url=url, params=params, data=data) + def get(self, url, params=None): session = self.create_session() @@ -44,6 +47,10 @@ def patch(self, url, data, params=None): session = self.create_session() return session.patch(url=self.retrieve_url(url), data=data, params=params) + def delete(self, url, data, params=None): + session = self.create_session() + return session.delete(url=self.retrieve_url(url), data=data, params=params) + class KialiHTTPSApiConnector(KialiApiConnector): """ diff --git a/setup.py b/setup.py index 325c571..4520a4d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="kiali-client", - version="0.6.0", + version="0.6.1", author="Guilherme Baufaker Rego", author_email="gbaufake@redhat.com", description="Python client to communicate with Kiali server over HTTP(S)",