Remove useless swagger view 15/29415/2
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 29 Jan 2018 02:42:38 +0000 (10:42 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 29 Jan 2018 03:10:25 +0000 (11:10 +0800)
Change-Id: Id64dcf7acb5f45d4006c8f3058e507f465f81e62
Issue-ID: VFC-680
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/views.py

index 32dc91e..a525084 100644 (file)
@@ -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)