Add vfc-ztevnfmdriver query job responseId 87/30987/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 9 Feb 2018 07:03:55 +0000 (15:03 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Fri, 9 Feb 2018 07:03:55 +0000 (15:03 +0800)
Change-Id: I68cac7ea17772dee56ba94fbb8c1f695e47dcdbc
Issue-ID: VFC-736
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
zte/vmanager/driver/interfaces/views.py

index c664219..21256d0 100644 (file)
@@ -18,6 +18,7 @@ import logging
 import os
 import traceback
 
+from drf_yasg import openapi
 from drf_yasg.utils import swagger_auto_schema
 from rest_framework import status
 from rest_framework.decorators import api_view
@@ -226,6 +227,13 @@ def query_vnf(request, *args, **kwargs):
 
 class JobView(APIView):
     @swagger_auto_schema(
+        manual_parameters=[
+            openapi.Parameter('responseId',
+                              openapi.IN_QUERY,
+                              "responseId",
+                              type=openapi.TYPE_INTEGER
+                              ),
+        ],
         responses={
             status.HTTP_200_OK: JobQueryRespSerializer(),
             status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error"