mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-06 12:27:45 +00:00
17 lines
373 B
Python
Executable File
17 lines
373 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)
|