summaryrefslogtreecommitdiffstats
path: root/zte
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-03-25 11:13:34 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-03-25 11:13:34 +0800
commit85b4171dc5d5e846e5904e815def7729bf60b022 (patch)
tree8d0dca9101153196a4d8ebc8d423c23dbe8a0c4e /zte
parent91371241b309f0bc39cf195fc46b2c4f2ac49752 (diff)
Add serializer for download vnf pkg
Change-Id: Id7e141b341dcdf4a0d2423b81d394728c52f461e Issue-ID: VFC-1307 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'zte')
-rw-r--r--zte/vmanager/driver/interfaces/views.py6
1 files changed, 6 insertions, 0 deletions
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')