pyeve / eve-swagger

Swagger extension for Eve-powered RESTful APIs
http://python-eve.org
Other
154 stars 43 forks source link

Add HTTP POST error response to documentation #72

Closed anetz89 closed 5 years ago

anetz89 commented 6 years ago

Following the current Python Eve documentation, there's an error http response status next to the success response (201)

When all documents pass validation and are inserted correctly the response status is 201 Created. If any document fails validation the response status is 422 UnprocessableEntity

Is it possible to add this error status to the documentation per default? Listing all possible error codes (like 404 or 401) may be too much, but 422 should show up in the documentation. Also mind the option to override this status code with the VALIDATION_ERROR_STATUS setting.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.