diff options
-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) |