aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-03 16:13:20 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commit58047e6c7e3f7d4b7c3cdb859fae4e25c7e2605a (patch)
treebc21d6936b6db487bbbe4276826946c6f17e56fc /gn3/api
parent47a10086b305e062b0c7b32c40fe222714407084 (diff)
downloadgenenetwork3-58047e6c7e3f7d4b7c3cdb859fae4e25c7e2605a.tar.gz
Simplify CONSTRUCT query when fetching a dataset's metadata.
* gn3/api/metadata.py (dataset): Update docstring. * gn3/db/rdf.py (get_dataset_metadata): Simplify CONSTRUCT query. Also, now you can fetch metadata using either an accession_id or the dataset's name. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index f21739a..df3c4a9 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -21,7 +21,7 @@ metadata = Blueprint("metadata", __name__)
@metadata.route("/dataset/<name>", methods=["GET"])
def dataset(name):
- """Fetch a dataset's metadata given it's ACCESSION_ID"""
+ """Fetch a dataset's metadata given it's ACCESSION_ID or NAME"""
try:
return jsonify(
get_dataset_metadata(