From 4ea3a430697414352dd709d1108246c9e489d0f4 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Sat, 23 Mar 2019 16:46:30 +0800 Subject: Add serializer for delete Subscribe Change-Id: I0162530406a1048786eeac3a649e4e681143d9f5 Issue-ID: VFC-1307 Signed-off-by: fujinhua --- zte/vmanager/driver/interfaces/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zte/vmanager/driver/interfaces/views.py b/zte/vmanager/driver/interfaces/views.py index 27914f19..1c4625d5 100644 --- a/zte/vmanager/driver/interfaces/views.py +++ b/zte/vmanager/driver/interfaces/views.py @@ -663,6 +663,12 @@ class Subscribe(APIView): class SubscribeDetail(APIView): + @swagger_auto_schema( + responses={ + status.HTTP_204_NO_CONTENT: "None", + status.HTTP_500_INTERNAL_SERVER_ERROR: "Internal error" + } + ) def delete(self, request, subscribeId): logger.debug("====SubscribeDetail delete %s====", subscribeId) return Response(status=status.HTTP_204_NO_CONTENT) -- cgit 1.2.3-korg