summaryrefslogtreecommitdiffstats
path: root/zte/vmanager
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 15:03:55 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 15:03:55 +0800
commit9c13bb8eaca61c4baae0463edc61aa349dc0fb27 (patch)
treeb0a1817bec312b570d233aa99fb529187513098d /zte/vmanager
parent19c0f06da63dfa380185df230e8c6d0c0da1d118 (diff)
Add vfc-ztevnfmdriver query job responseId
Change-Id: I68cac7ea17772dee56ba94fbb8c1f695e47dcdbc Issue-ID: VFC-736 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'zte/vmanager')
-rw-r--r--zte/vmanager/driver/interfaces/views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/zte/vmanager/driver/interfaces/views.py b/zte/vmanager/driver/interfaces/views.py
index c664219e..21256d07 100644
--- a/zte/vmanager/driver/interfaces/views.py
+++ b/zte/vmanager/driver/interfaces/views.py
@@ -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"