Skip to content
Merged

Dev #28

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions project_tracking/api/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def files(project_id: str, patient_id: str=None, sample_id: str=None, readset_id



@bp.route('/<string:project>/metrics', methods=['POST'])
@bp.route('/<string:project>/metrics', methods=['GET', 'POST'])
@bp.route('/<string:project>/metrics/<string:metric_id>')
@bp.route('/<string:project>/patients/<string:patient_id>/metrics')
@bp.route('/<string:project>/samples/<string:sample_id>/metrics')
Expand Down Expand Up @@ -390,7 +390,7 @@ def readsets_from_samples(project_id: str, sample_id: str):
return sanity_check("Readset", action_output)


@bp.route('/<string:project>/digest_readset_file', methods=['POST'])
@bp.route('/<string:project>/digest_readset_file', methods=['GET', 'POST'])
@convcheck_project
def digest_readset_file(project_id: str):
"""
Expand All @@ -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('/<string:project>/digest_pair_file', methods=['POST'])
@bp.route('/<string:project>/digest_pair_file', methods=['GET', 'POST'])
@convcheck_project
def digest_pair_file(project_id: str):
"""
Expand All @@ -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('/<string:project>/ingest_run_processing', methods=['POST'])
@bp.route('/<string:project>/ingest_run_processing', methods=['GET', 'POST'])
@convcheck_project
def ingest_run_processing(project_id: str):
"""
Expand All @@ -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('/<string:project>/ingest_transfer', methods=['POST'])
@bp.route('/<string:project>/ingest_transfer', methods=['GET', 'POST'])
@convcheck_project
def ingest_transfer(project_id: str):
"""
Expand All @@ -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('/<string:project>/ingest_genpipes', methods=['POST'])
@bp.route('/<string:project>/ingest_genpipes', methods=['GET', 'POST'])
@convcheck_project
def ingest_genpipes(project_id: str):
"""
Expand Down Expand Up @@ -507,7 +507,7 @@ def ingest_genpipes(project_id: str):
jobs = [job.flat_dict for job in output[1]]
return [operation, jobs]

@bp.route('/<string:project>/digest_unanalyzed', methods=['POST'])
@bp.route('/<string:project>/digest_unanalyzed', methods=['GET', 'POST'])
@convcheck_project
def digest_unanalyzed(project_id: str):
"""
Expand Down