summaryrefslogtreecommitdiffstats
path: root/zte
diff options
context:
space:
mode:
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')