Add vfc-lcm queryJob responseId 19/31019/2
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 9 Feb 2018 08:42:31 +0000 (16:42 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Fri, 9 Feb 2018 09:16:05 +0000 (17:16 +0800)
Change-Id: I71f9f48a2b254d6e2c112a1da9685d4793b5b762
Issue-ID: VFC-714
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/jobs/views.py

index 55093bd..7439b63 100644 (file)
@@ -14,6 +14,7 @@
 import logging
 import traceback
 
+from drf_yasg import openapi
 from rest_framework.response import Response
 from rest_framework.views import APIView
 from rest_framework import status
@@ -31,7 +32,13 @@ logger = logging.getLogger(__name__)
 
 class JobView(APIView):
     @swagger_auto_schema(
-        request_body=None,
+        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: "Inner error"