Request API

API operations on requests.

request.views.delete_request(request)[source]
POST /request/delete_request/
Delete request with a given id and all its libraries and samples.
Parameters:request_id – request id
Returns:{‘success’: not error, ‘error’: error}
Return type:JSON response
request.views.generate_deep_sequencing_request(request)[source]

Generate Deep Sequencing Request form in PDF.

request.views.get_all(request)[source]
GET /request/get_all/
Get the list of all requests.
Returns:list with requests
Return type:JSON response
request.views.get_libraries_and_samples(request)[source]
GET /request/libraries_and_samples/?request_id={request_id}
Get the list of all libraries and samples for a given request.
Parameters:request_id – request id
Returns:libraries and samples in a given request
Return type:JSON reponse
request.views.save_request(request)[source]
POST /request/save_request/
Add new or edit an existing request.
Parameters:
  • mode – add/edit - controles the mode: either add or edit a request
  • request_id – request id if mode=’edit’; otherwise, ‘’
  • libraries – list of library ids
  • samples – list of samples ids
  • description – request description
Returns:

{‘success’: not error, ‘error’: error}

Return type:

JSON response

request.views.upload_deep_sequencing_request(request)[source]

Upload Deep Sequencing request with PI’s signature and change request status to 1.