Files
connexion/examples/openapi3/helloworld_aiohttp/hello.py
Jyhess db4459fa20 Datetime serialization (#851)
* Add datetime and uuid serialization for AioHttp

* Remove ujson dependency

* fix merge error

* Retry CI

* remove bad jsonifier import

* remove ujson import
2019-12-03 05:23:36 +01:00

17 lines
397 B
Python
Executable File

#!/usr/bin/env python3
import asyncio
import connexion
from aiohttp import web
@asyncio.coroutine
def post_greeting(name):
return web.Response(text='Hello {name}'.format(name=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()