aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/api/__main__.py
diff options
context:
space:
mode:
authorAkhil Batra <akhil.batra@research.iiit.ac.in>2017-02-19 19:21:15 +0530
committerAkhil Batra <akhil.batra@research.iiit.ac.in>2017-02-22 10:23:08 +0530
commitf34137052d2938a504f04a825951dca0913a9875 (patch)
tree0c530561e960dde5a5a080fbd187a6b4eec6923d /qtip/api/__main__.py
parentcdb8e1be12b724e9f68c7e46c9a653ec37c502cb (diff)
Add Api Basic framework skeleton
- Requirements updated to remove flask and include connexion - Api specifications will be added to specs file in swagger/ - controllers module will handle all requests and responses JIRA: QTIP-213 Change-Id: Icfec15ddeff7d53c53ce64910ae2bddd4fc0f260 Signed-off-by: Akhil Batra <akhil.batra@research.iiit.ac.in>
Diffstat (limited to 'qtip/api/__main__.py')
-rw-r--r--qtip/api/__main__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/qtip/api/__main__.py b/qtip/api/__main__.py
new file mode 100644
index 00000000..89298e6d
--- /dev/null
+++ b/qtip/api/__main__.py
@@ -0,0 +1,11 @@
+import connexion
+
+
+def main():
+ app = connexion.App(__name__, specification_dir='swagger/')
+ app.add_api('swagger.yaml', base_path='/v1.0')
+ app.run(host='0.0.0.0', port='5000')
+
+
+if __name__ == '__main__':
+ main()