<reponame>oakdoor/enterprisediodeemulator<gh_stars>1-10
# Copyright PA Knowledge Ltd 2021
# For licence terms see LICENCE.md file

import connexion
import os
import yaml

app = connexion.App(__name__, specification_dir='openapi/')

if os.getenv("ANONYMOUSACCESS") == "True":
    parsed_yaml_file = yaml.load(open('Emulator/openapi/openapispec.yaml'), Loader=yaml.FullLoader)
    parsed_yaml_file.pop('security')
    app.add_api(parsed_yaml_file)
else:
    app.add_api('openapispec.yaml')

app.run(port=8081)

# Copyright PA Knowledge Ltd 2021
# For licence terms see LICENCE.md file

import connexion
import os
import yaml

app = connexion.App(__name__, specification_dir='openapi/')

if os.getenv("ANONYMOUSACCESS") == "True":
    parsed_yaml_file = yaml.load(open('Emulator/openapi/openapispec.yaml'), Loader=yaml.FullLoader)
    parsed_yaml_file.pop('security')
    app.add_api(parsed_yaml_file)
else:
    app.add_api('openapispec.yaml')

app.run(port=8081)
# Copyright PA Knowledge Ltd 2021 # For licence terms see LICENCE.md file