aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/traits.py
diff options
context:
space:
mode:
authorAlexander Kabui2021-04-06 22:54:08 +0300
committerAlexander Kabui2021-04-06 22:54:08 +0300
commita1fcc30e84bd7201c852faf6f6a622face646ef8 (patch)
tree825fd0fa3571c4324c5c3d81dc1f6530e4a42cb1 /gn3/api/traits.py
parentea610aa797d4c859fa9b9fa59a1eaa86ff7fd41c (diff)
downloadgenenetwork3-a1fcc30e84bd7201c852faf6f6a622face646ef8.tar.gz
fix Docstrings
Diffstat (limited to 'gn3/api/traits.py')
-rw-r--r--gn3/api/traits.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gn3/api/traits.py b/gn3/api/traits.py
index cf445e1..0ac437d 100644
--- a/gn3/api/traits.py
+++ b/gn3/api/traits.py
@@ -12,11 +12,10 @@ from gn3.experimental_db import database_connector
trait = Blueprint("trait", __name__)
-
@trait.route("/<string:trait_name>/<string:dataset_name>")
def create_trait(trait_name, dataset_name):
- """/test:trait_name/dataset_name/type :retrieve sample\
- data for trait"""
+ """Endpoint for creating trait and fetching strain\
+ values"""
# xtodo replace the object at most this endpoint
# requires dataset_type,dataset_name ,dataset_id
@@ -38,7 +37,7 @@ def create_trait(trait_name, dataset_name):
@trait.route("/trait_info/<string:trait_name>", methods=["POST"])
def fetch_trait_info(trait_name):
- """api endpoint for fetching the trait info \
+ """Api endpoint for fetching the trait info \
expects the trait and trait dataset to have\
been created """
data = request.get_json()