aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorBonfaceKilz2021-03-26 09:48:13 +0300
committerBonfaceKilz2021-05-08 19:19:47 +0300
commitbaf2b6daa2c9d8646a68465269d1a64646e0e162 (patch)
treeacc0ce1310053d74d6783d58b356ff67907c8bff /gn3/api
parentae9ef7338815666721141efc352601e255f0f655 (diff)
downloadgenenetwork3-baf2b6daa2c9d8646a68465269d1a64646e0e162.tar.gz
Add endpoints for (batch) entering phenotypes and genotypes
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/data_entry.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/gn3/api/data_entry.py b/gn3/api/data_entry.py
new file mode 100644
index 0000000..e69a6cb
--- /dev/null
+++ b/gn3/api/data_entry.py
@@ -0,0 +1,18 @@
+"""Endpoints used for data entry"""
+from flask import Blueprint
+from flask import jsonify
+
+
+data_entry = Blueprint("data_entry", __name__)
+
+
+@data_entry.route("/phenotype", methods=["POST"],
+ strict_slashes=False)
+def load_phenotype():
+ return jsonify("Pass")
+
+
+@data_entry.route("/genotype", methods=["POST"],
+ strict_slashes=False)
+def load_genotype():
+ return jsonify("Pass")