From: fujinhua Date: Wed, 5 Sep 2018 05:23:40 +0000 (+0800) Subject: Fix swagger export error for catalog X-Git-Tag: 1.2.0~19 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2413303699535ab9b36ee235255e9dd991896ca8;p=vfc%2Fnfvo%2Fcatalog.git Fix swagger export error for catalog Change-Id: I125042aa8a7c3e556ae3e2f930f789d34ee8a81f Issue-ID: VFC-1093 Signed-off-by: fujinhua --- diff --git a/catalog/packages/views/ns_descriptor_views.py b/catalog/packages/views/ns_descriptor_views.py index d47fb176..589ab8ee 100644 --- a/catalog/packages/views/ns_descriptor_views.py +++ b/catalog/packages/views/ns_descriptor_views.py @@ -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" } diff --git a/catalog/packages/views/pnf_descriptor_views.py b/catalog/packages/views/pnf_descriptor_views.py index 15d7e643..caa7ac23 100644 --- a/catalog/packages/views/pnf_descriptor_views.py +++ b/catalog/packages/views/pnf_descriptor_views.py @@ -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" } ) diff --git a/catalog/packages/views/vnf_package_views.py b/catalog/packages/views/vnf_package_views.py index 01eb5be2..da88dfd7 100644 --- a/catalog/packages/views/vnf_package_views.py +++ b/catalog/packages/views/vnf_package_views.py @@ -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" } )