Hacker News new | past | comments | ask | show | jobs | submit login

Have a blog post handy? Need to make a flask rest api and would like it as automatic as possible.



Swagger Editor[1] can spit out the skeleton of a Flask based server from an OpenAPI 2.0 specification. The generated code makes use of the Connexion famework[2].

Paste your specification into the editor, fix it if it's not valid, open the "Generate Server" dropdown in the top menu, and select "python-flask".

[1] http://editor.swagger.io/

[2] https://github.com/zalando/connexion/


Don't have a blog post for you, but I'm pretty sure he's utilitizing Flask-APISpec (https://github.com/jmcarp/flask-apispec). I've been eying it for a while.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: