mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-25 19:10:55 +00:00
9 lines
494 B
Python
9 lines
494 B
Python
#!/usr/bin/env python
|
|
|
|
import connexion
|
|
|
|
if __name__ == '__main__':
|
|
app = connexion.App(__name__, specification_dir='./swagger/')
|
|
app.add_api('swagger.yaml', arguments={'title': 'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.'})
|
|
app.run(port=8080)
|