-
-
-class QueryMultipleVnf(APIView):
- def get(self, request):
- logger.debug("QueryMultipleVnf--get::> %s" % request.data)
- return Response(data='', status=status.HTTP_202_ACCEPTED)
-
-# class QuerySingleVnf(APIView):
-# def get(self, request, instanceid):
-# logger.debug("QuerySingleVnf--get::> %s" % request.data)
-# try:
-# resp_data = QueryVnf(request.data, instanceid).query_single_vnf(instanceid)
-# except NFLCMException as e:
-# logger.error(e.message)
-# return Response(data={'error': '%s' % e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
-# except:
-# logger.error(traceback.format_exc())
-# return Response(data={'error': 'Failed to get Vnf(%s)' % instanceid},
-# status=status.HTTP_500_INTERNAL_SERVER_ERROR)
-# return Response(data=resp_data, status=status.HTTP_202_ACCEPTED)
-
-
-# class GetOperationStatus(APIView):
-# def get(self, request):
-# logger.debug("GetOperationStatus--get::> %s" % request.data)
-# return Response(data='', status=status.HTTP_202_ACCEPTED)
-
-
-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)