From b6d76c4c0c5a3321b6bf608cf5b38f9909c40f41 Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Wed, 23 Sep 2020 19:07:13 +0200
Subject: [PATCH] fix open api docs url

---
 docs/api.yml             | 2 --
 settings-example.json    | 3 +++
 src/blueprints/Routes.py | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/docs/api.yml b/docs/api.yml
index 1213e69..99b4147 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 d8ae21d..20725d4 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 d4942bd..e0191cf 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)
-- 
GitLab