aboutsummaryrefslogtreecommitdiffstats
path: root/app/app/config_binding_service/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/app/config_binding_service/__init__.py')
-rw-r--r--app/app/config_binding_service/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/app/config_binding_service/__init__.py b/app/app/config_binding_service/__init__.py
index 5a6b081..306a762 100644
--- a/app/app/config_binding_service/__init__.py
+++ b/app/app/config_binding_service/__init__.py
@@ -1,5 +1,5 @@
# ============LICENSE_START=======================================================
-# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
import os
+import connexion
class BadEnviornmentENVNotFound(Exception):
@@ -38,3 +39,8 @@ def get_consul_uri():
return "http://{0}:{1}".format(os.environ["CONSUL_HOST"], 8500)
else:
raise BadEnviornmentENVNotFound("CONSUL_HOST")
+
+
+# this has to be here due to circular dependency
+app = connexion.App(__name__, specification_dir='.')
+app.add_api('openapi.yaml', arguments={'title': 'Config Binding Service'})