components.blob.api

BLOB API

components.blob.api.delete(blob)

Delete the blob.

Parameters:blob

Returns:

components.blob.api.get_all()

Return all blobs.

Args:

Returns:List of Blob instances.
components.blob.api.get_all_by_user_id(user_id)

Return all blobs by user.

Parameters:user_id – User id.
Returns:List of Blob instances for the given user id.
components.blob.api.get_all_except_user_id(user_id)

Return all blobs except the ones of user.

Parameters:user_id – User id.
Returns:List of Blob instances except the given user id.
components.blob.api.get_by_id(blob_id)

Return blob by its id.

Parameters:blob_id

Returns:

components.blob.api.insert(blob)

Insert the blob in the blob repository.

Parameters:blob

Returns: