mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-07 12:27:46 +00:00
* Add datetime and uuid serialization for AioHttp * Remove ujson dependency * fix merge error * Retry CI * remove bad jsonifier import * remove ujson import
17 lines
397 B
Python
Executable File
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()
|