mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 12:46:54 +00:00
Some improvement in code
This commit is contained in:
parent
707be83c4c
commit
549df6cae1
@ -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')
|
||||
|
||||
@ -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 ...
|
||||
|
||||
Loading…
Reference in New Issue
Block a user