diff options
author | 2018-01-29 10:42:38 +0800 | |
---|---|---|
committer | 2018-01-29 11:10:25 +0800 | |
commit | a408396aefb298f230ddf33fbb0b3927527864f4 (patch) | |
tree | 8a9453181c5926fbcee231ad132b34ae982bb475 | |
parent | b55a70d00756d2fc1ddf4b5fc0c192f6af62278f (diff) |
Remove useless swagger view
Change-Id: Id64dcf7acb5f45d4006c8f3058e507f465f81e62
Issue-ID: VFC-680
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns/views.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lcm/ns/views.py b/lcm/ns/views.py index 32dc91e5..a5250848 100644 --- a/lcm/ns/views.py +++ b/lcm/ns/views.py @@ -13,7 +13,6 @@ # limitations under the License. import json import logging -import os import traceback from rest_framework import status @@ -230,15 +229,6 @@ class NSDetailView(APIView): return Response(data={'error': e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) -class SwaggerJsonView(APIView): - def get(self, request): - json_file = os.path.join(os.path.dirname(__file__), 'swagger.json') - f = open(json_file) - json_data = json.JSONDecoder().decode(f.read()) - f.close() - return Response(json_data) - - class NSInstPostDealView(APIView): def post(self, request, ns_instance_id): logger.debug("Enter NSInstPostDealView::post %s, %s", request.data, ns_instance_id) |