diff --git a/project_tracking/api/project.py b/project_tracking/api/project.py index 4edd7b1..9790d74 100644 --- a/project_tracking/api/project.py +++ b/project_tracking/api/project.py @@ -272,7 +272,7 @@ def files(project_id: str, patient_id: str=None, sample_id: str=None, readset_id -@bp.route('//metrics', methods=['POST']) +@bp.route('//metrics', methods=['GET', 'POST']) @bp.route('//metrics/') @bp.route('//patients//metrics') @bp.route('//samples//metrics') @@ -390,7 +390,7 @@ def readsets_from_samples(project_id: str, sample_id: str): return sanity_check("Readset", action_output) -@bp.route('//digest_readset_file', methods=['POST']) +@bp.route('//digest_readset_file', methods=['GET', 'POST']) @convcheck_project def digest_readset_file(project_id: str): """ @@ -411,7 +411,7 @@ def digest_readset_file(project_id: str): return db_action.digest_readset_file(project_id=project_id, digest_data=ingest_data) -@bp.route('//digest_pair_file', methods=['POST']) +@bp.route('//digest_pair_file', methods=['GET', 'POST']) @convcheck_project def digest_pair_file(project_id: str): """ @@ -432,7 +432,7 @@ def digest_pair_file(project_id: str): return db_action.digest_pair_file(project_id=project_id, digest_data=ingest_data) -@bp.route('//ingest_run_processing', methods=['POST']) +@bp.route('//ingest_run_processing', methods=['GET', 'POST']) @convcheck_project def ingest_run_processing(project_id: str): """ @@ -459,7 +459,7 @@ def ingest_run_processing(project_id: str): return [i.flat_dict for i in db_action.ingest_run_processing(project_id=project_id, ingest_data=ingest_data)] -@bp.route('//ingest_transfer', methods=['POST']) +@bp.route('//ingest_transfer', methods=['GET', 'POST']) @convcheck_project def ingest_transfer(project_id: str): """ @@ -478,7 +478,7 @@ def ingest_transfer(project_id: str): return [i.flat_dict for i in db_action.ingest_transfer(project_id=project_id, ingest_data=ingest_data)] -@bp.route('//ingest_genpipes', methods=['POST']) +@bp.route('//ingest_genpipes', methods=['GET', 'POST']) @convcheck_project def ingest_genpipes(project_id: str): """ @@ -507,7 +507,7 @@ def ingest_genpipes(project_id: str): jobs = [job.flat_dict for job in output[1]] return [operation, jobs] -@bp.route('//digest_unanalyzed', methods=['POST']) +@bp.route('//digest_unanalyzed', methods=['GET', 'POST']) @convcheck_project def digest_unanalyzed(project_id: str): """