Skip to content

Commit

Permalink
Adding back GET method to POST only (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstretenowich authored Feb 2, 2024
1 parent 5ad9365 commit 4dccb39
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit 4dccb39

Please sign in to comment.