Running:
$ sudo pip3 install --upgrade connexion[swagger-ui] # install Connexion from PyPI
$ ./app.py
Now open your browser and go to http://localhost:8080/ui/ to see the Swagger UI.
The hardcoded apikey is asdf1234567890.
Test it out (in another terminal):
$ curl -H 'X-Auth: asdf1234567890' http://localhost:8080/secret