We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df5214 commit 5391a82Copy full SHA for 5391a82
pyms/flask/app/__init__.py
@@ -28,9 +28,11 @@ def create_app(self):
28
return the app and the database objects.
29
:return:
30
"""
31
+ config = get_conf(service=self.service)
32
app = connexion.App(__name__, specification_dir=os.path.join(self.path, 'swagger'))
33
app.add_api('swagger.yaml',
- arguments={'title': 'Swagger Example project'}
34
+ arguments={'title': 'Swagger Example project'},
35
+ base_path=config.APPLICATION_ROOT
36
)
37
38
application = app.app
tests/tests_flask.py
@@ -2,7 +2,7 @@
2
import unittest
3
4
from pyms.constants import CONFIGMAP_FILE_ENVIRONMENT
5
-from pyms.flask.app.utils import Microservice
+from pyms.flask.app import Microservice
6
7
8
def home():
0 commit comments