As a: developer
I need: to refactor my basic Flask application to one that uses Flask-RESTPlus
So that: I can provide Swagger documentation more easily
Assumptions:
90% test coverage
Acceptance CriteriaGiven JR throws bad data at our service
When our service sees this bad data
Then we should not send any 500 errors (400 errors are fine)
To successfully satisfy this requirement you will need to:
• Refactor your micro service to use Flask-RESTPlus following the file
layout outlined in lab-flask-restplus-swagger.
• Make sure that all HTTP errors return json error messages and not
html.
• Run your test cases and make sure that your Flask-RESTPlus
implementation still works like the original.
As a: developer I need: to refactor my basic Flask application to one that uses Flask-RESTPlus So that: I can provide Swagger documentation more easily
Assumptions:
Acceptance Criteria Given JR throws bad data at our service When our service sees this bad data Then we should not send any 500 errors (400 errors are fine)
To successfully satisfy this requirement you will need to: • Refactor your micro service to use Flask-RESTPlus following the file layout outlined in lab-flask-restplus-swagger. • Make sure that all HTTP errors return json error messages and not html. • Run your test cases and make sure that your Flask-RESTPlus implementation still works like the original.