All Downloads are FREE. Search and download functionalities are using the official Maven repository.

handlebars.pythonFlaskConnexion.__main__.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
{{#supportPython2}}
#!/usr/bin/env python
{{/supportPython2}}
{{^supportPython2}}
#!/usr/bin/env python3
{{/supportPython2}}

import connexion

from {{packageName}} import encoder


def main():
    app = connexion.App(__name__, specification_dir='./swagger/')
    app.app.json_encoder = encoder.JSONEncoder
    app.add_api('swagger.yaml', arguments={'title': '{{appName}}'}, pythonic_params=True)
    app.run(port={{serverPort}})


if __name__ == '__main__':
    main()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy