Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 721 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 721 Bytes

flask-swagger-codegen

Generate Flask code from Swagger docs.

Origin

Forked from: https://pypi.python.org/pypi/Flask-Swagger-Codegen

Demo

https://asciinema.org/a/18775 (from original author)

Tutorial

  1. Start with an empty directory
  2. Add your own .yml file in Swagger format, the rest of this assumes "api.yml" filename is chosen and "test-app" is name.
  3. Run pip install Flask-Swagger-Codegen (for this repo use: pip install git+https://github.com/SamuelMarks/flask-swagger-codegen#egg=flask_swagger_codegen)
  4. flask_swagger_codegen test-app -s api.yml
  5. cd test-app
  6. pip install -r requirements.txt
  7. python -m test_app.__init__

License

MIT