Files
connexion/examples/restyresolver/resty.py
2017-04-04 08:20:24 -03:00

15 lines
374 B
Python
Executable File

#!/usr/bin/env python
import logging
import connexion
from connexion.resolver import RestyResolver
logging.basicConfig(level=logging.INFO)
if __name__ == '__main__':
app = connexion.FlaskApp(__name__)
app.add_api('resty-api.yaml',
arguments={'title': 'RestyResolver Example'},
resolver=RestyResolver('api'))
app.run(port=9090)