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

python-aiohttp.__init__main.mustache Maven / Gradle / Ivy

import os
import connexion


def main():
    options = {
        "swagger_ui": True
        }
    specification_dir = os.path.join(os.path.dirname(__file__), 'openapi')
    app = connexion.AioHttpApp(__name__, specification_dir=specification_dir, options=options)
    app.add_api('openapi.yaml',
                arguments={'title': '{{appName}}'},
                pythonic_params=True,
                pass_context_arg_name='request')
    app.run(port={{serverPort}})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy