mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 12:27:46 +00:00
13 lines
337 B
Python
Executable File
13 lines
337 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.App(__name__)
|
|
app.add_api('resty-api.yaml', arguments={'title': 'RestyResolver Example'}, resolver=RestyResolver('api'))
|
|
app.run(port=9090)
|