diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-13 11:29:33 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-13 11:29:33 +0800 |
commit | 64d1e2dc640d673140c98eab1e7f7c342aaf0eae (patch) | |
tree | ba32bdf07d760efe9c1a4f016a971e903d588a71 | |
parent | 348d4624de3c1109741d3590b76cdb2949494f9d (diff) |
Fix vfc-lcm auto-swagger ui issue
Change-Id: I1a4b67efc5331104822f08575ffa46c4d7eb2cc6
Issue-ID: VFC-808
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r-- | lcm/ns/sfcs/views.py | 6 | ||||
-rw-r--r-- | lcm/ns/views.py | 2 | ||||
-rw-r--r-- | lcm/ns/vnfs/views.py | 2 | ||||
-rw-r--r-- | lcm/samples/views.py | 2 | ||||
-rw-r--r-- | 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' ] |