Some improvement in code

This commit is contained in:
Reena Aheer 2023-04-20 13:04:02 +02:00
parent 707be83c4c
commit 549df6cae1
2 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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 ...