From 549df6cae1376edb9507c3bc03e47a01e70ce3c0 Mon Sep 17 00:00:00 2001 From: Reena Aheer Date: Thu, 20 Apr 2023 13:04:02 +0200 Subject: [PATCH] Some improvement in code --- apimanager/apimanager/settings.py | 2 +- apimanager/obp/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apimanager/apimanager/settings.py b/apimanager/apimanager/settings.py index e3d7243..78501ec 100644 --- a/apimanager/apimanager/settings.py +++ b/apimanager/apimanager/settings.py @@ -324,7 +324,7 @@ API_ROOT = { "v510": OBPv510 } # For some reason, swagger is not available at the latest API version -API_URL_SWAGGER = API_HOST + '/obp/v1.4.0/resource-docs/v' + v5.1.0 + '/swagger' # noqa +#API_URL_SWAGGER = API_HOST + '/obp/v1.4.0/resource-docs/v' + 5.1.0 + '/swagger' # noqa if not OAUTH_CONSUMER_KEY: raise ImproperlyConfigured('Missing settings for OAUTH_CONSUMER_KEY') diff --git a/apimanager/obp/api.py b/apimanager/obp/api.py index b77d006..56071fb 100644 --- a/apimanager/obp/api.py +++ b/apimanager/obp/api.py @@ -143,7 +143,7 @@ class API(object): return None """ def get_swagger(self): - """"""Gets the swagger definition from the API """""" + Gets the swagger definition from the API # Poor man's caching ... if not self.session_data.get('swagger'): # API throws 500 if authenticated via GatewayLogin ...