3 from drf_yasg.utils import swagger_auto_schema
4 from rest_framework import status
5 from rest_framework.response import Response
6 from rest_framework.views import APIView
8 logger = logging.getLogger(__name__)
11 class NSInstancesView(APIView):
12 def get(self, request):
13 logger.debug(request.query_params)
16 def post(self, request):
17 logger.debug("Enter NSInstancesView::POST ns_instances %s", request.data)
19 return Response(data={}, status=status.HTTP_201_CREATED)
22 class IndividualNsInstanceView(APIView):
23 def get(self, request, id):
24 logger.debug("Enter IndividualNsInstanceView::get ns(%s)", id)
26 return Response(data={}, status=status.HTTP_200_OK)
31 status.HTTP_204_NO_CONTENT: None
34 def delete(self, request, id):
35 logger.debug("Enter IndividualNsInstanceView::DELETE ns_instance(%s)", id)
37 return Response(data={}, status=status.HTTP_204_NO_CONTENT)