Merge pull request #1351 from ecordell/document-201-swagger
Swagger: document 201 responses for POST requests
This commit is contained in:
commit
eb3e7eba88
1 changed files with 4 additions and 0 deletions
|
@ -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'
|
||||
|
|
Reference in a new issue