diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2019-03-23 16:46:30 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2019-03-23 16:46:30 +0800 |
commit | 4ea3a430697414352dd709d1108246c9e489d0f4 (patch) | |
tree | cae754fe571837efaeb577f61a1019bd9dded936 /zte/vmanager | |
parent | a75e1bc7c8d208ab1955022b55635618ab391ee0 (diff) |
Add serializer for delete Subscribe
Change-Id: I0162530406a1048786eeac3a649e4e681143d9f5
Issue-ID: VFC-1307
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'zte/vmanager')
-rw-r--r-- | zte/vmanager/driver/interfaces/views.py | 6 |
1 files changed, 6 insertions, 0 deletions
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) |