Commit 962dc012 authored by Lubber's avatar Lubber

Added swagger redirect to microservice root

parent 6e26b92b
...@@ -31,7 +31,7 @@ def before_request(): ...@@ -31,7 +31,7 @@ def before_request():
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
def api_root(): def api_root():
return 'Endpoint of role-stage-discovery-microservice!' return redirect('/api/ui')
# SSL configuration # SSL configuration
certificate_path = get_resources_path() certificate_path = get_resources_path()
......
...@@ -40,7 +40,7 @@ def before_request(): ...@@ -40,7 +40,7 @@ def before_request():
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
def api_root(): def api_root():
return 'Endpoint of semantic-linking-microservice!' return redirect('/api/ui')
# SSL configuration # SSL configuration
certificate_path = get_resources_path() certificate_path = get_resources_path()
......
...@@ -28,7 +28,7 @@ def before_request(): ...@@ -28,7 +28,7 @@ def before_request():
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
def api_root(): def api_root():
return 'Endpoint of business-logic-microservice!' return redirect('/api/ui')
# SSL configuration # SSL configuration
certificate_path = get_resources_path() certificate_path = get_resources_path()
......
...@@ -34,7 +34,7 @@ def before_request(): ...@@ -34,7 +34,7 @@ def before_request():
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
def api_root(): def api_root():
return 'Endpoint of SMART RESTful API Gateway!' return redirect('/api/ui')
# SSL configuration # SSL configuration
certificate_path = get_resources_path() certificate_path = get_resources_path()
......
...@@ -43,7 +43,7 @@ def before_request(): ...@@ -43,7 +43,7 @@ def before_request():
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
def api_root(): def api_root():
return 'Endpoint of trace-retrieval-microservice!' return redirect('/api/ui')
# SSL configuration # SSL configuration
certificate_path = get_resources_path() certificate_path = get_resources_path()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment