fix code formatting of flaskConnexion app.py and use more intuitive run(port=..)

This commit is contained in:
hjacobs 2016-01-22 22:34:49 +01:00
parent aecc367e35
commit 103321d872

View File

@ -3,7 +3,6 @@
import connexion import connexion
if __name__ == '__main__': if __name__ == '__main__':
app = connexion.App(__name__, {{serverPort}}, app = connexion.App(__name__, specification_dir='./swagger/')
specification_dir='./swagger/')
app.add_api('swagger.yaml', arguments={'title': '{{appDescription}}'}) app.add_api('swagger.yaml', arguments={'title': '{{appDescription}}'})
app.run() app.run(port={{serverPort}})