X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Fswagger%2Fviews.py;fp=lcm%2Fswagger%2Fviews.py;h=e78eceadc42f61cfb5ce22be8a2c76867a46bcab;hb=5ab315f97965decc438a1b058881c3b9f6ef0669;hp=5034905c830ed9a540229b18a45372e380545f8c;hpb=d4d9f19a30092bdf1df6aabe5b66855b000dbc66;p=vfc%2Fnfvo%2Flcm.git diff --git a/lcm/swagger/views.py b/lcm/swagger/views.py index 5034905c..e78ecead 100644 --- a/lcm/swagger/views.py +++ b/lcm/swagger/views.py @@ -53,6 +53,14 @@ class SwaggerJsonView(APIView): 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__), 'vfc.db.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"]) + json_file = os.path.join(os.path.dirname(__file__), 'vfc.others.swagger.json') f = open(json_file) json_data_temp = json.JSONDecoder().decode(f.read())