diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-11-29 16:58:52 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-11-30 11:21:02 +0800 |
commit | 06bfcce3f57176e6b428e43e8e411e245a5fa75e (patch) | |
tree | 68e15b2e0948251b6955e5e95ba6fab57c2bb4b7 /catalog/packages/views/vnf_package_views.py | |
parent | 24ea7e1390912ba99304085c249e17dce46b047a (diff) |
Swagger issue fixes from the Ericsson team:content-type extends the "application / octet-stream"
Change-Id: Ib516dadf8430e5b4230ac1d51d936517e9cec8ba
Issue-ID: MODELING-288
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'catalog/packages/views/vnf_package_views.py')
-rw-r--r-- | catalog/packages/views/vnf_package_views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog/packages/views/vnf_package_views.py b/catalog/packages/views/vnf_package_views.py index 2156e7b..6ff4f9f 100644 --- a/catalog/packages/views/vnf_package_views.py +++ b/catalog/packages/views/vnf_package_views.py @@ -32,6 +32,7 @@ from catalog.packages.serializers.vnf_pkg_info import VnfPkgInfoSerializer from catalog.packages.serializers.vnf_pkg_infos import VnfPkgInfosSerializer from .common import validate_data, validate_req_data from .common import view_safe_call_with_log +from catalog.swagger.views import EtsiCatalogFileAutoSchema logger = logging.getLogger(__name__) @@ -77,6 +78,7 @@ def vnf_packages_rc(request): @swagger_auto_schema( + auto_schema=EtsiCatalogFileAutoSchema, method="GET", operation_description="Read VNFD of an on-boarded VNF package", tags=[TAG_VNF_PACKAGE_API], @@ -90,7 +92,6 @@ def vnf_packages_rc(request): status.HTTP_500_INTERNAL_SERVER_ERROR: openapi.Response("Internal error", schema=openapi.Schema(type=openapi.TYPE_STRING)) }, - produces='application/octet-stream', operation_id='VNFD of an on-boarded VNF package' ) @api_view(http_method_names=["GET"]) @@ -118,6 +119,7 @@ def vnfd_rd(request, **kwargs): } ) @swagger_auto_schema( + auto_schema=EtsiCatalogFileAutoSchema, method="GET", operation_description="Fetch VNF package content", tags=[TAG_VNF_PACKAGE_API], |