Files
connexion/examples/openapi3/helloworld/hello.py
Robbe Sneyders 5a0c292b44 Add async app
2022-12-26 20:51:46 +01:00

12 lines
289 B
Python
Executable File

import connexion
def post_greeting(name: str) -> str:
return f"Hello {name}"
if __name__ == "__main__":
app = connexion.FlaskApp(__name__, port=9090, specification_dir="openapi/")
app.add_api("helloworld-api.yaml", arguments={"title": "Hello World Example"})
app.run()