swagger: document 201 responses for POST requests

This commit is contained in:
Evan Cordell 2016-04-07 09:26:28 -04:00
parent a934a63b49
commit d69d79d302

View file

@ -202,6 +202,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'