aboutsummaryrefslogtreecommitdiffstats
path: root/app/app/config_binding_service/__init__.py
diff options
context:
space:
mode:
authorTommy Carpenter <tommy@research.att.com>2019-02-20 07:34:09 -0500
committerTommy Carpenter <tommy@research.att.com>2019-02-20 13:46:44 -0500
commit3b60a76f14d035b4e3ca818e07815785ce5a7746 (patch)
treef5804c7e62f2a36651726f5726d86ebbc4051e61 /app/app/config_binding_service/__init__.py
parent58c2dfb5bf159488dd04cae572af93c975926d1c (diff)
Switch to openapi3, clean up testing4.0.0-ONAPdublin
Issue-ID: DCAEGEN2-1215 Change-Id: I29cb31faa497233635de19d211f633f34692d511 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
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'})