forked from loafle/openapi-generator-original
10 lines
506 B
Python
10 lines
506 B
Python
#!/usr/bin/env python3
|
|
|
|
import connexion
|
|
|
|
if __name__ == '__main__':
|
|
app = connexion.App(__name__, 8080,
|
|
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 <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters'})
|
|
app.run()
|