aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorBonfaceKilz2021-02-16 19:15:35 +0300
committerBonfaceKilz2021-02-16 19:15:35 +0300
commit5901528848acbc82ad57bdb6f4c25c51a52ead5c (patch)
treebcd0539b64876f3b6eea853175acf0c6f7e09fe5 /gn3/api
parent8fe418159306c1d04e4a13a63a7cd2b5b52dd5d5 (diff)
downloadgenenetwork3-5901528848acbc82ad57bdb6f4c25c51a52ead5c.tar.gz
Add basic integration tests to test out the API
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/gemma.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/api/gemma.py b/gn3/api/gemma.py
index ae23b34..30d486f 100644
--- a/gn3/api/gemma.py
+++ b/gn3/api/gemma.py
@@ -1,5 +1,6 @@
"""Endpoints for running the gemma cmd"""
from flask import Blueprint
+from flask import jsonify
gemma = Blueprint("gemma", __name__)
@@ -7,4 +8,4 @@ gemma = Blueprint("gemma", __name__)
@gemma.route("/")
def index() -> str:
"""Test endpoint"""
- return "hello world"
+ return jsonify(result="hello world")