flask-restplus support automatic swagger documentation...
http://flask-restplus.readthedocs.io/en/stable/ https://github.com/PyMySQL/PyMySQL
For this task I was programming in anaconda - spyder (python 3.5.2) on windows 10
-
in app.py file, you need to change your mysql connection parameters, it would better if parameters are in config file
-
run app.py file and go to url: http://localhost:5000/ you will see swagger api spec
-
To test application just run test_unit.py, I could write init file some script that execute all tests in folder
It took me about 10 hours for programming and 8 hours for framework and literature
UNITTESTS: for each pet test if property exist in json object update one value and test if response is equal
pets.py where you can find more info about routing, parsing and model
Additional work: RotatingFileHandler for logging