aboutsummaryrefslogtreecommitdiffstats
path: root/catalog/packages/views/vnf_package_artifact_views.py
diff options
context:
space:
mode:
authorhongyuzhao <zhao.hongyu@zte.com.cn>2019-11-29 16:58:52 +0800
committerhongyuzhao <zhao.hongyu@zte.com.cn>2019-11-30 11:21:02 +0800
commit06bfcce3f57176e6b428e43e8e411e245a5fa75e (patch)
tree68e15b2e0948251b6955e5e95ba6fab57c2bb4b7 /catalog/packages/views/vnf_package_artifact_views.py
parent24ea7e1390912ba99304085c249e17dce46b047a (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_artifact_views.py')
-rw-r--r--catalog/packages/views/vnf_package_artifact_views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/catalog/packages/views/vnf_package_artifact_views.py b/catalog/packages/views/vnf_package_artifact_views.py
index 56f3f2f..dde7585 100644
--- a/catalog/packages/views/vnf_package_artifact_views.py
+++ b/catalog/packages/views/vnf_package_artifact_views.py
@@ -23,6 +23,7 @@ from rest_framework.views import APIView
from catalog.packages.biz.vnf_pkg_artifacts import FetchVnfPkgArtifact
from catalog.packages.const import TAG_VNF_PACKAGE_API
from .common import view_safe_call_with_log
+from catalog.swagger.views import EtsiCatalogFileAutoSchema
logger = logging.getLogger(__name__)
@@ -39,6 +40,7 @@ VALID_FILTERS = [
class FetchVnfPkgmArtifactsView(APIView):
@swagger_auto_schema(
+ auto_schema=EtsiCatalogFileAutoSchema,
tags=[TAG_VNF_PACKAGE_API],
responses={
status.HTTP_200_OK: openapi.Response("Return the artifact file",