Fix vfc-lcm auto-swagger ui issue 61/35361/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Tue, 13 Mar 2018 03:29:33 +0000 (11:29 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Tue, 13 Mar 2018 03:29:33 +0000 (11:29 +0800)
Change-Id: I1a4b67efc5331104822f08575ffa46c4d7eb2cc6
Issue-ID: VFC-808
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/ns/sfcs/views.py
lcm/ns/views.py
lcm/ns/vnfs/views.py
lcm/samples/views.py
lcm/settings.py

index 5fb6ae2..4403ffe 100644 (file)
@@ -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):
index 429df52..413a89a 100644 (file)
@@ -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"
         }
     )
index 59762e6..75d2b50 100644 (file)
@@ -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"
         }
     )
index 06d82d0..5889aac 100644 (file)
@@ -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"
         }
     )
index d45915e..128d298 100644 (file)
@@ -45,8 +45,8 @@ INSTALLED_APPS = [
     'django.contrib.staticfiles',
     'rest_framework',
     'lcm.pub.database',
-    'lcm.samples',
-    'lcm.swagger',
+    'lcm.samples',
+    'lcm.swagger',
     'drf_yasg'
 ]