ファイル
Get details about a file
GET//localhost:9090/api/file/{id}
Path parameters
id*integer
File ID
Response
OK
Body
attachmentIdinteger
Associations
cidstring
CID is the CID of the file.
directoryIdinteger
fileRangesarray of model.FileRange (object)
hashstring
Hash is the hash of the file.
idinteger
lastModifiedNanointeger
pathstring
Path is the relative path to the file inside the storage.
sizeinteger
Size is the size of the file in bytes.
Request
Response
Get all deals that have been made for a file
GET//localhost:9090/api/file/{id}/deals
Path parameters
id*integer
File ID
Response
OK
Body
dealsarray of model.Deal (object)
fileRangemodel.FileRange (object)
Request
Response
prepare job for a given item
POST//localhost:9090/api/file/{id}/prepare_to_pack
Path parameters
id*integer
File ID
Response
OK
Body
integer
Request
Response
Push a file to be queued
Tells Singularity that something is ready to be grabbed for data preparation
POST//localhost:9090/api/preparation/{id}/source/{name}/file
Path parameters
id*string
Preparation ID or name
name*string
Source storage ID or name
Body
File Info
pathstring
Path to the new file, relative to the source
Response
OK
Body
attachmentIdinteger
Associations
cidstring
CID is the CID of the file.
directoryIdinteger
fileRangesarray of model.FileRange (object)
hashstring
Hash is the hash of the file.
idinteger
lastModifiedNanointeger
pathstring
Path is the relative path to the file inside the storage.
sizeinteger
Size is the size of the file in bytes.
Request
Response
Last updated