From 9c13bb8eaca61c4baae0463edc61aa349dc0fb27 Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Fri, 9 Feb 2018 15:03:55 +0800 Subject: Add vfc-ztevnfmdriver query job responseId Change-Id: I68cac7ea17772dee56ba94fbb8c1f695e47dcdbc Issue-ID: VFC-736 Signed-off-by: ying.yunlong --- zte/vmanager/driver/interfaces/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zte') 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" -- cgit 1.2.3-korg