+++ /dev/null
-# Copyright 2017 ZTE Corporation.\r
-#\r
-# Licensed under the Apache License, Version 2.0 (the "License");\r
-# you may not use this file except in compliance with the License.\r
-# You may obtain a copy of the License at\r
-#\r
-# http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-# See the License for the specific language governing permissions and\r
-# limitations under the License.\r
-\r
-from drf_yasg.utils import swagger_auto_schema\r
-from rest_framework import status\r
-from rest_framework.views import APIView\r
-\r
-\r
-class ns_descriptors(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class ns_info(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class nsd_content(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class pnf_descriptors(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class pnfd_info(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class pnfd_content(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class nsd_subscriptions(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class nsd_subscription(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
+++ /dev/null
-# Copyright 2017 ZTE Corporation.\r
-#\r
-# Licensed under the Apache License, Version 2.0 (the "License");\r
-# you may not use this file except in compliance with the License.\r
-# You may obtain a copy of the License at\r
-#\r
-# http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-# See the License for the specific language governing permissions and\r
-# limitations under the License.\r
-\r
-import logging\r
-\r
-from drf_yasg.utils import swagger_auto_schema\r
-from rest_framework import status\r
-from rest_framework.views import APIView\r
-\r
-\r
-logger = logging.getLogger(__name__)\r
-\r
-\r
-class vnf_package(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class vnfd(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class artifacts(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class vnfpkg_subscriptions(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r
-\r
-\r
-class vnfpkg_subscription(APIView):\r
- @swagger_auto_schema(\r
- responses={\r
- # status.HTTP_200_OK: Serializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def get(self, request):\r
- # TODO\r
- return None\r
-\r
- @swagger_auto_schema(\r
- # request_body=CreateVnfReqSerializer(),\r
- responses={\r
- # status.HTTP_201_CREATED: CreateVnfRespSerializer(),\r
- status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"\r
- }\r
- )\r
- def post(self, request):\r
- # TODO\r
- return None\r