文件
File ID
OK
Associations - AttachmentID SET NULL for fast prep deletion, async cleanup
CID is the CID of the file.
Hash is the hash of the file.
Path is the relative path to the file inside the storage.
Size is the size of the file in bytes.
Internal Server Error
GET /api/file/{id} HTTP/1.1
Accept: */*
{
"attachmentId": 1,
"cid": "text",
"directoryId": 1,
"fileRanges": [
{
"cid": "text",
"fileId": 1,
"id": 1,
"jobId": 1,
"length": 1,
"offset": 1
}
],
"hash": "text",
"id": 1,
"lastModifiedNano": 1,
"path": "text",
"size": 1
}File ID
OK
Internal Server Error
GET /api/file/{id}/deals HTTP/1.1
Accept: */*
[
{
"deals": [
{
"clientId": "text",
"createdAt": "text",
"ddoAllocationId": 1,
"ddoPaymentToken": "text",
"ddoRailId": 1,
"dealId": 1,
"dealType": "market",
"endEpoch": 1,
"errorMessage": "text",
"id": 1,
"label": "text",
"lastVerifiedAt": "text",
"nextChallengeEpoch": 1,
"pieceCid": "text",
"pieceSize": 1,
"price": "text",
"proofSetId": 1,
"proofSetLive": true,
"proposalId": "text",
"provider": "text",
"scheduleId": 1,
"sectorStartEpoch": 1,
"startEpoch": 1,
"state": "proposed",
"updatedAt": "text",
"verified": true,
"walletId": 1
}
],
"fileRange": {
"cid": "text",
"fileId": 1,
"id": 1,
"jobId": 1,
"length": 1,
"offset": 1
}
}
]Tells Singularity that something is ready to be grabbed for data preparation
Preparation ID or name
Source storage ID or name
Path to the new file, relative to the source
OK
Associations - AttachmentID SET NULL for fast prep deletion, async cleanup
CID is the CID of the file.
Hash is the hash of the file.
Path is the relative path to the file inside the storage.
Size is the size of the file in bytes.
Bad Request
Internal Server Error
POST /api/preparation/{id}/source/{name}/file HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"path": "text"
}{
"attachmentId": 1,
"cid": "text",
"directoryId": 1,
"fileRanges": [
{
"cid": "text",
"fileId": 1,
"id": 1,
"jobId": 1,
"length": 1,
"offset": 1
}
],
"hash": "text",
"id": 1,
"lastModifiedNano": 1,
"path": "text",
"size": 1
}Last updated
Was this helpful?