aboutsummaryrefslogtreecommitdiff
path: root/gn3/api/metadata.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api/metadata.py')
-rw-r--r--gn3/api/metadata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 35e4067..8f6127f 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -13,14 +13,14 @@ from gn3.db.rdf import get_dataset_metadata
metadata = Blueprint("metadata", __name__)
-@metadata.route("/dataset/<accession_id>", methods=["GET"])
-def jsonify_dataset_metadata(accession_id):
+@metadata.route("/dataset/<name>", methods=["GET"])
+def jsonify_dataset_metadata(name):
"""Fetch a dataset's metadata given it's ACCESSION_ID"""
try:
return jsonify(
get_dataset_metadata(
SPARQLWrapper(current_app.config.get("SPARQL_ENDPOINT")),
- accession_id,
+ name,
).data
)
# The virtuoso server is misconfigured or it isn't running at all