Merge pull request #1351 from ecordell/document-201-swagger

Swagger: document 201 responses for POST requests
This commit is contained in:
Evan Cordell 2016-04-13 09:50:34 -04:00
commit eb3e7eba88

View file

@ -231,6 +231,10 @@ def swagger_route_data(include_internal=False, compact=False):
responses['204'] = {
'description': 'Deleted'
}
elif method_name == 'POST':
responses['201'] = {
'description': 'Successful creation'
}
else:
responses['200'] = {
'description': 'Successful invocation'