From 64d1e2dc640d673140c98eab1e7f7c342aaf0eae Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Tue, 13 Mar 2018 11:29:33 +0800 Subject: Fix vfc-lcm auto-swagger ui issue Change-Id: I1a4b67efc5331104822f08575ffa46c4d7eb2cc6 Issue-ID: VFC-808 Signed-off-by: ying.yunlong --- lcm/ns/sfcs/views.py | 6 +++--- lcm/ns/views.py | 2 +- lcm/ns/vnfs/views.py | 2 +- lcm/samples/views.py | 2 +- lcm/settings.py | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lcm/ns/sfcs/views.py b/lcm/ns/sfcs/views.py index 5fb6ae22..4403ffe6 100644 --- a/lcm/ns/sfcs/views.py +++ b/lcm/ns/sfcs/views.py @@ -75,7 +75,7 @@ class PortPairGpView(APIView): @swagger_auto_schema( request_body=CreatePortPairGpSerializer(), responses={ - status.HTTP_200_OK: None + status.HTTP_200_OK: 'successful' } ) def post(self, request): @@ -95,7 +95,7 @@ class FlowClaView(APIView): @swagger_auto_schema( request_body=CreateFlowClaSerializer(), responses={ - status.HTTP_200_OK: None + status.HTTP_200_OK: 'successful' } ) def post(self, request): @@ -114,7 +114,7 @@ class PortChainView(APIView): @swagger_auto_schema( request_body=CreatePortChainSerializer(), responses={ - status.HTTP_200_OK: None + status.HTTP_200_OK: 'successful' } ) def post(self, request): diff --git a/lcm/ns/views.py b/lcm/ns/views.py index 429df521..413a89a6 100644 --- a/lcm/ns/views.py +++ b/lcm/ns/views.py @@ -216,7 +216,7 @@ class NSDetailView(APIView): @swagger_auto_schema( request_body=None, responses={ - status.HTTP_204_NO_CONTENT: None, + status.HTTP_204_NO_CONTENT: 'successful', status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error" } ) diff --git a/lcm/ns/vnfs/views.py b/lcm/ns/vnfs/views.py index 59762e69..75d2b500 100644 --- a/lcm/ns/vnfs/views.py +++ b/lcm/ns/vnfs/views.py @@ -183,7 +183,7 @@ class LcmNotify(APIView): @swagger_auto_schema( request_body=NotifyLcmReqSerializer(), responses={ - status.HTTP_201_CREATED: None, + status.HTTP_201_CREATED: 'successful', status.HTTP_409_CONFLICT: "Inner error" } ) diff --git a/lcm/samples/views.py b/lcm/samples/views.py index 06d82d00..5889aaca 100644 --- a/lcm/samples/views.py +++ b/lcm/samples/views.py @@ -47,7 +47,7 @@ class TablesList(APIView): @swagger_auto_schema( request_body=None, responses={ - status.HTTP_204_NO_CONTENT: None, + status.HTTP_204_NO_CONTENT: 'successful', status.HTTP_500_INTERNAL_SERVER_ERROR: "Inner error" } ) diff --git a/lcm/settings.py b/lcm/settings.py index d45915ec..128d298c 100644 --- a/lcm/settings.py +++ b/lcm/settings.py @@ -45,8 +45,8 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'rest_framework', 'lcm.pub.database', - 'lcm.samples', - 'lcm.swagger', + # 'lcm.samples', + # 'lcm.swagger', 'drf_yasg' ] -- cgit 1.2.3-korg