Skip to content

Commit b7af360

Browse files
committed
Review comments from Joe addressed
1 parent b605982 commit b7af360

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/app.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,6 +2625,21 @@ def get_associated_organs_from_dataset(id):
26252625

26262626
return jsonify(final_result)
26272627

2628+
"""
2629+
Get all samples associated with a given dataset
2630+
2631+
The gateway treats this endpoint as public accessible
2632+
2633+
Parameters
2634+
----------
2635+
id : str
2636+
The HuBMAP ID (e.g. HBM123.ABCD.456) or UUID of given entity
2637+
2638+
Returns
2639+
-------
2640+
json
2641+
a list of all the samples associated with the target dataset
2642+
"""
26282643
@app.route('/datasets/<id>/samples', methods=['GET'])
26292644
def get_associated_samples_from_dataset(id):
26302645
# Token is not required, but if an invalid token provided,
@@ -2663,6 +2678,21 @@ def get_associated_samples_from_dataset(id):
26632678

26642679
return jsonify(final_result)
26652680

2681+
"""
2682+
Get all donors associated with a given dataset
2683+
2684+
The gateway treats this endpoint as public accessible
2685+
2686+
Parameters
2687+
----------
2688+
id : str
2689+
The HuBMAP ID (e.g. HBM123.ABCD.456) or UUID of given entity
2690+
2691+
Returns
2692+
-------
2693+
json
2694+
a list of all the donors associated with the target dataset
2695+
"""
26662696
@app.route('/datasets/<id>/donors', methods=['GET'])
26672697
def get_associated_donors_from_dataset(id):
26682698
# Token is not required, but if an invalid token provided,

0 commit comments

Comments
 (0)