Fix swagger export error for catalog 87/64587/1
authorfujinhua <fu.jinhua@zte.com.cn>
Wed, 5 Sep 2018 05:23:40 +0000 (13:23 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Wed, 5 Sep 2018 05:23:40 +0000 (13:23 +0800)
Change-Id: I125042aa8a7c3e556ae3e2f930f789d34ee8a81f
Issue-ID: VFC-1093
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/packages/views/ns_descriptor_views.py
catalog/packages/views/pnf_descriptor_views.py
catalog/packages/views/vnf_package_views.py

index d47fb17..589ab8e 100644 (file)
@@ -46,7 +46,7 @@ logger = logging.getLogger(__name__)
     operation_description="Delete a NSD",
     request_body=no_body,
     responses={
-        status.HTTP_204_NO_CONTENT: None,
+        status.HTTP_204_NO_CONTENT: "No content",
         status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
     }
 )
@@ -138,7 +138,7 @@ def ns_descriptors_rc(request):
     operation_description="Download NSD content",
     request_body=no_body,
     responses={
-        status.HTTP_204_NO_CONTENT: None,
+        status.HTTP_204_NO_CONTENT: "No content",
         status.HTTP_404_NOT_FOUND: 'NSD does not exist.',
         status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
     }
index 15d7e64..caa7ac2 100644 (file)
@@ -46,7 +46,7 @@ logger = logging.getLogger(__name__)
     operation_description="Delete a PNFD",
     request_body=no_body,
     responses={
-        status.HTTP_204_NO_CONTENT: None,
+        status.HTTP_204_NO_CONTENT: "No content",
         status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
     }
 )
@@ -134,7 +134,7 @@ def pnf_descriptors_rc(request):
     operation_description="Upload PNFD content",
     request_body=no_body,
     responses={
-        status.HTTP_204_NO_CONTENT: None,
+        status.HTTP_204_NO_CONTENT: "No content",
         status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
     }
 )
index 01eb5be..da88dfd 100644 (file)
@@ -181,7 +181,7 @@ def upload_from_uri_c(request, **kwargs):
     operation_description="Delete an individual VNF package resource",
     request_body=no_body,
     responses={
-        status.HTTP_204_NO_CONTENT: None,
+        status.HTTP_204_NO_CONTENT: "No content",
         status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"
     }
 )