File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff 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' ])
26292644def 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' ])
26672697def get_associated_donors_from_dataset (id ):
26682698 # Token is not required, but if an invalid token provided,
You can’t perform that action at this time.
0 commit comments