nyu-devops-team7 / shopcarts

The shopcarts resource allows customers to make a collection of products that they want to purchase
Apache License 2.0
0 stars 3 forks source link

Refactor using Flask-RESTPlus #26

Open ora11 opened 3 years ago

ora11 commented 3 years ago

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.