mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-10 12:27:46 +00:00
17 lines
264 B
Python
Executable File
17 lines
264 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Basic example of a resource server
|
|
"""
|
|
|
|
import connexion
|
|
|
|
|
|
def get_secret(user) -> str:
|
|
return f"You are: {user}"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app = connexion.FlaskApp(__name__)
|
|
app.add_api("app.yaml")
|
|
app.run(port=8080)
|