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

Server script in root package.

parent 40ab2bb8
No related branches found
No related tags found
No related merge requests found
import connexion import connexion
from src import encoder from src.rest import encoder
app = connexion.App(__name__, specification_dir='api') app = connexion.App(__name__, specification_dir='rest/swagger')
app.app.json_encoder = encoder.JSONEncoder app.app.json_encoder = encoder.JSONEncoder
app.add_api('engine.yaml', arguments={'title': 'AURA Engine API'}, pythonic_params=True) app.add_api('swagger.yaml', arguments={'title': 'AURA Engine API'}, pythonic_params=True)
def main(): def 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