aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/api/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'qtip/api/__main__.py')
-rw-r--r--qtip/api/__main__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/qtip/api/__main__.py b/qtip/api/__main__.py
index 05d9231..381622a 100644
--- a/qtip/api/__main__.py
+++ b/qtip/api/__main__.py
@@ -14,9 +14,14 @@ import os
swagger_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'swagger/'))
-def main():
+def get_app():
app = connexion.App(__name__, specification_dir=swagger_dir)
- app.add_api('swagger.yaml', base_path='/v1.0')
+ app.add_api('swagger.yaml', base_path='/v1.0', strict_validation=True)
+ return app
+
+
+def main():
+ app = get_app()
app.run(host="0.0.0.0", port=5000)