mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-06 12:27:45 +00:00
* Upgrade isort==5.9.1 * isort --thirdparty connexion,aiohttp ./tests * isort --thirdparty aiohttp,connexion --check-only --diff . * cd tests before running isort
15 lines
352 B
Python
Executable File
15 lines
352 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import connexion
|
|
from aiohttp import web
|
|
|
|
|
|
async def post_greeting(name):
|
|
return web.Response(text=f'Hello {name}')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app = connexion.AioHttpApp(__name__, port=9090, specification_dir='openapi/')
|
|
app.add_api('helloworld-api.yaml', arguments={'title': 'Hello World Example'})
|
|
app.run()
|