Files
connexion/examples/oauth2/app.py
Henning Jacobs d9edc36647 Ignore context args (#429)
* #428 add unit test

* #428 ignore context param if not in function args

* #428 update OAuth2 example app

* #428 update security docs
2017-04-05 14:32:40 +02:00

17 lines
279 B
Python
Executable File

#!/usr/bin/env python3
'''
Basic example of a resource server
'''
import connexion
def get_secret(user) -> str:
return 'You are: {uid}'.format(uid=user)
if __name__ == '__main__':
app = connexion.FlaskApp(__name__)
app.add_api('app.yaml')
app.run(port=8080)