summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 15:44:11 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-09 15:44:11 +0800
commitaf411775e11ffff3d9116a5255c1a05ce9b0e3db (patch)
tree062c61e69b8f1b31c2d03cb60a03035ad787cb8f
parenta96becb1e243bfeb10e6a07a222b6910da77146b (diff)
Add vfc-vnflcm queryJov responseId
Change-Id: I1ecbb2c04fec1bd21cf3d9a395b8da68cdfb19ef Issue-ID: VFC-682 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r--lcm/lcm/jobs/views.py8
-rw-r--r--lcm/lcm/nf/vnfs/urls.py9
2 files changed, 11 insertions, 6 deletions
diff --git a/lcm/lcm/jobs/views.py b/lcm/lcm/jobs/views.py
index 3da36bf8..cdd7ba4f 100644
--- a/lcm/lcm/jobs/views.py
+++ b/lcm/lcm/jobs/views.py
@@ -15,6 +15,7 @@
import logging
import traceback
+from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
from rest_framework import status
from rest_framework.response import Response
@@ -30,6 +31,13 @@ logger = logging.getLogger(__name__)
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"
diff --git a/lcm/lcm/nf/vnfs/urls.py b/lcm/lcm/nf/vnfs/urls.py
index a8de42b1..a8348b4c 100644
--- a/lcm/lcm/nf/vnfs/urls.py
+++ b/lcm/lcm/nf/vnfs/urls.py
@@ -18,10 +18,7 @@ from lcm.nf.vnfs.views import InstantiateVnf, TerminateVnf, DeleteVnfAndQueryVnf
urlpatterns = [
url(r'^api/vnflcm/v1/vnf_instances$', CreateVnfAndQueryVnfs.as_view()),
- url(r'^api/vnflcm/v1/vnf_instances/(?P<instanceid>[0-9a-zA-Z_-]+)/instantiate$',
- InstantiateVnf.as_view()),
- url(r'^api/vnflcm/v1/vnf_instances/(?P<instanceid>[0-9a-zA-Z_-]+)$',
- DeleteVnfAndQueryVnf.as_view()),
- url(r'^api/vnflcm/v1/vnf_instances/(?P<instanceid>[0-9a-zA-Z_-]+)/terminate$',
- TerminateVnf.as_view()),
+ url(r'^api/vnflcm/v1/vnf_instances/(?P<instanceid>[0-9a-zA-Z_-]+)/instantiate$', InstantiateVnf.as_view()),
+ url(r'^api/vnflcm/v1/vnf_instances/(?P<instanceid>[0-9a-zA-Z_-]+)$', DeleteVnfAndQueryVnf.as_view()),
+ url(r'^api/vnflcm/v1/vnf_instances/(?P<instanceid>[0-9a-zA-Z_-]+)/terminate$', TerminateVnf.as_view()),
]