From 85b4171dc5d5e846e5904e815def7729bf60b022 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Mon, 25 Mar 2019 11:13:34 +0800 Subject: Add serializer for download vnf pkg Change-Id: Id7e141b341dcdf4a0d2423b81d394728c52f461e Issue-ID: VFC-1307 Signed-off-by: fujinhua --- zte/vmanager/driver/interfaces/views.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zte/vmanager') diff --git a/zte/vmanager/driver/interfaces/views.py b/zte/vmanager/driver/interfaces/views.py index 292e7488..cd184e8b 100644 --- a/zte/vmanager/driver/interfaces/views.py +++ b/zte/vmanager/driver/interfaces/views.py @@ -698,6 +698,12 @@ class VnfPkgs(APIView): class VnfPkg(APIView): + @swagger_auto_schema( + responses={ + status.HTTP_200_OK: "File stream for vnf pkg file", + status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" + } + ) def get(self, request, packageId, fileName): logger.debug("====VnfPkg get====%s, %s", packageId, fileName) file_range = request.META.get('RANGE') -- cgit 1.2.3-korg