From 3b60a76f14d035b4e3ca818e07815785ce5a7746 Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Wed, 20 Feb 2019 07:34:09 -0500 Subject: Switch to openapi3, clean up testing Issue-ID: DCAEGEN2-1215 Change-Id: I29cb31faa497233635de19d211f633f34692d511 Signed-off-by: Tommy Carpenter --- app/app/config_binding_service/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/app/config_binding_service/__init__.py') 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'}) -- cgit 1.2.3-korg