diff --git a/docs/api.yml b/docs/api.yml index 1213e690eb4ffc100a340dd4d2b7c38a2d5b56a0..99b4147ea12e03bcfcf280e438ad67aeda200b58 100644 --- a/docs/api.yml +++ b/docs/api.yml @@ -10,8 +10,6 @@ info: paths: /version: get: - tags: - - public summary: Gets information about the server version operationId: version responses: diff --git a/settings-example.json b/settings-example.json index d8ae21d57fc54bcd92bbc1b9ffda196f76b137af..20725d4df86f3413bf8b0c8742e0d91d2a915684 100644 --- a/settings-example.json +++ b/settings-example.json @@ -9,5 +9,8 @@ }, "database": { "databasePath": "storageLeaf.db" + }, + "api": { + "url": "http://localhost:10003" } } \ No newline at end of file diff --git a/src/blueprints/Routes.py b/src/blueprints/Routes.py index d4942bdd0e1c473eb5e258a4be7fba7a68e1046b..e0191cf82afc0a0dc4b48fb59f26bee705f2e7f0 100644 --- a/src/blueprints/Routes.py +++ b/src/blueprints/Routes.py @@ -37,7 +37,7 @@ def construct_blueprint(settings, version): with open(yamlPath, 'r') as yamlFile: specification = yaml.load(yamlFile, Loader=yaml.FullLoader) - specification['servers'][0]['url'] = '0815' + specification['servers'][0]['url'] = settings['api']['url'] specification['info']['version'] = version['name'] specification = json.dumps(specification)