[Python][Flask] fix python2 support in Flask (#3952)

* flask python2 petstore sample

* fix python2 support in flask
This commit is contained in:
wing328
2016-10-09 14:06:55 +08:00
committed by GitHub
parent d21613c6ab
commit c1a6bbb86a
14 changed files with 1120 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env python
import connexion
if __name__ == '__main__':
app = connexion.App(__name__, specification_dir='./swagger/')
app.add_api('swagger.yaml', arguments={'title': 'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.'})
app.run(port=8080)