mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 19:26:53 +00:00
Moved API_URL_SWAGGER to bottom of settings
This will make it use an API_HOST from local_settings
This commit is contained in:
parent
5e2e4efb89
commit
5cee638f65
@ -195,8 +195,6 @@ API_DATEFORMAT = '%Y-%m-%d'
|
||||
API_HOST = 'http://127.0.0.1:8080'
|
||||
API_BASE_PATH = '/obp/v'
|
||||
API_VERSION = '3.0.0'
|
||||
# For some reason, swagger is not available at the latest API version
|
||||
API_URL_SWAGGER = API_HOST + '/obp/v1.4.0/resource-docs/v' + API_VERSION + '/swagger' # noqa
|
||||
|
||||
# URL to API Tester if it is running on API_HOST
|
||||
API_TESTER_URL = ''
|
||||
@ -230,6 +228,7 @@ if not OAUTH_CONSUMER_KEY:
|
||||
if not OAUTH_CONSUMER_SECRET:
|
||||
raise ImproperlyConfigured('Missing settings for OAUTH_CONSUMER_SECRET')
|
||||
|
||||
# API_ROOT defined here in case any of the three components has been
|
||||
# overwritten by local settings
|
||||
# Settings here might use parts overwritten in local settings
|
||||
API_ROOT = API_HOST + API_BASE_PATH + API_VERSION
|
||||
# For some reason, swagger is not available at the latest API version
|
||||
API_URL_SWAGGER = API_HOST + '/obp/v1.4.0/resource-docs/v' + API_VERSION + '/swagger' # noqa
|
||||
|
||||
Loading…
Reference in New Issue
Block a user