Skip to content
Snippets Groups Projects
Commit 7944d766 authored by David Trattnig's avatar David Trattnig
Browse files

Instatiate server in root.

parent cc79b329
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
import connexion
from src import encoder
app = connexion.App(__name__, specification_dir='api')
app.app.json_encoder = encoder.JSONEncoder
app.add_api('engine.yaml', arguments={'title': 'AURA Engine API'}, pythonic_params=True)
def main():
app = connexion.App(__name__, specification_dir='../api')
app.app.json_encoder = encoder.JSONEncoder
app.add_api('engine.yaml', arguments={'title': 'AURA Engine API'}, pythonic_params=True)
app.run(port=8008)
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment