githubEdit

文件

Get details about a file

get
Path parameters
idintegerRequired

File ID

Responses
chevron-right
200

OK

application/json
attachmentIdintegerOptional

Associations - AttachmentID SET NULL for fast prep deletion, async cleanup

cidstringOptional

CID is the CID of the file.

directoryIdintegerOptional
hashstringOptional

Hash is the hash of the file.

idintegerOptional
lastModifiedNanointegerOptional
pathstringOptional

Path is the relative path to the file inside the storage.

sizeintegerOptional

Size is the size of the file in bytes.

get
/file/{id}

Get all deals that have been made for a file

get
Path parameters
idintegerRequired

File ID

Responses
chevron-right
200

OK

application/json
get
/file/{id}/deals

prepare job for a given item

post
Path parameters
idintegerRequired

File ID

Responses
chevron-right
200

OK

application/json
integerOptional
post
/file/{id}/prepare_to_pack

Push a file to be queued

post

Tells Singularity that something is ready to be grabbed for data preparation

Path parameters
idstringRequired

Preparation ID or name

namestringRequired

Source storage ID or name

Body
pathstringOptional

Path to the new file, relative to the source

Responses
chevron-right
200

OK

application/json
attachmentIdintegerOptional

Associations - AttachmentID SET NULL for fast prep deletion, async cleanup

cidstringOptional

CID is the CID of the file.

directoryIdintegerOptional
hashstringOptional

Hash is the hash of the file.

idintegerOptional
lastModifiedNanointegerOptional
pathstringOptional

Path is the relative path to the file inside the storage.

sizeintegerOptional

Size is the size of the file in bytes.

post
/preparation/{id}/source/{name}/file

Last updated

Was this helpful?