Sample API layout structure to be used as a baseline for other apps
- flask: Python server of choise
- flasgger: Used to generate the swagger documentation
- flask-marshmallow: My favourite serializer
- apispec: Required for the integration between marshmallow and flasgger
-
Check out the code
-
Install requirements
pipenv install
-
Start the server with:
pipenv run python -m flask run
-
Visit http://localhost/api for the home api
-
Visit http://localhost/apidocs for the swagger documentation
The code is covered by tests, to run the tests please execute
pipenv run python -m unittest