Skip to content

Commit

Permalink
Fix empty response docs
Browse files Browse the repository at this point in the history
A couple end-points provided incorrect documentation for response when
deleting. The server does not return anything (on success). It is the
client that prints the "No content" message.
  • Loading branch information
lubomir committed Sep 8, 2015
1 parent 667816c commit e2566b9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pdc/apps/component/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,9 +1619,7 @@ def destroy(self, request, *args, **kwargs):
__Response__:
{
"Response": "No content"
}
On success, HTTP status code is 204 and the response has no content.
"""
return super(GroupTypeViewSet, self).destroy(request, *args, **kwargs)

Expand Down Expand Up @@ -1726,9 +1724,7 @@ def destroy(self, request, *args, **kwargs):
__Response__:
{
"Response": "No content"
}
On success, HTTP status code is 204 and the response has no content.
"""
return super(GroupViewSet, self).destroy(request, *args, **kwargs)

Expand Down Expand Up @@ -1852,8 +1848,6 @@ def destroy(self, request, *args, **kwargs):
__Response__:
{
"Response": "No content"
}
On success, HTTP status code is 204 and the response has no content.
"""
return super(ReleaseComponentRelationshipViewSet, self).destroy(request, *args, **kwargs)

0 comments on commit e2566b9

Please sign in to comment.