Fix some issues
[multicloud/framework.git] / multivimbroker / multivimbroker / swagger / views.py
index 8e8a2bf..5fcfb53 100644 (file)
@@ -83,5 +83,12 @@ class SwaggerJsonView(APIView):
         f.close()
         json_data["paths"].update(json_data_temp["paths"])
         json_data["definitions"].update(json_data_temp["definitions"])
+        #
+        json_file = os.path.join(os.path.dirname(__file__), 'multivim.identity.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["definitions"].update(json_data_temp["definitions"])
         return Response(json_data)