summaryrefslogtreecommitdiffstats
path: root/share/newton_base/swagger/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/newton_base/swagger/views.py')
-rw-r--r--share/newton_base/swagger/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/newton_base/swagger/views.py b/share/newton_base/swagger/views.py
index 0e3722ec..165cf01e 100644
--- a/share/newton_base/swagger/views.py
+++ b/share/newton_base/swagger/views.py
@@ -96,6 +96,12 @@ class SwaggerJsonView(APIView):
f.close()
json_data["paths"].update(json_data_temp["paths"])
+ json_file = os.path.join(os.path.dirname(__file__), 'multicloud.capacity.swagger.json')
+ f = open(json_file)
+ json_data_temp = json.JSONDecoder().decode(f.read())
+ f.close()
+ json_data["paths"].update(json_data_temp["paths"])
+
json_data["basePath"] = "/api/multicloud-newton/v0/"
json_data["info"]["title"] = "Service NBI of MultiCloud plugin for OpenStack Newton"
return Response(json_data)