Library API

API operations on libraries.

library.views.delete_library(request)[source]
POST /library/delete_library/
Delete library with a given id.
Parameters:record_id – library id
Returns:{‘success’: not error, ‘error’: error}
Return type:JSON response
library.views.get_all(request)[source]
GET /library/get_all/
Get the list of all libraries and samples.
Returns:list with libraries and samples
Return type:JSON response
library.views.get_files(request)[source]
library.views.get_library_protocols(request)[source]
GET /library/get_library_protocols/
Get the list of all library protocols.
Returns:list with library protocols
Return type:JSON response
library.views.get_library_type(request)[source]
GET /library/get_library_type/?library_protocol_id={library_protocol_id}/
Get the list of all library types for a given library protocol.
Parameters:library_protocol_id – library protocol id
Returns:list with library types
Return type:JSON response
library.views.save_library(request)[source]

Add a new library or update an existing one.

library.views.upload_files(request)[source]