Blobs
Manage file blobs.
Initiate a file upload. This endpoint can be used to create resumable uploads.
The name of the file.
When uploading temporary files, set the parameter to true
.
POST /api/blobs/uploads HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Upload a stream of data to upload without completing the upload.
The universally unique identifier (UUID).
52e51422-573d-4fc9-b5c6-4a30058f5d71
The upload token of file upload.
POST /api/blobs/uploads/{id}/append HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
PortSIP-Upload-Token: text
Content-Type: application/octet-stream
Accept: */*
Content-Length: 8
"binary"
No content
Complete the upload specified by unique ID, providing all the data in the body, if necessary. A request without a body will just complete the upload with previously uploaded content.
The universally unique identifier (UUID).
52e51422-573d-4fc9-b5c6-4a30058f5d71
The Content Digests. A digest is a serialized hash result, consisting of a algorithm and hex portion. Only sha256 based digest accepted.
84d89877f0d4041efb6bf91a16f0248f2fd573e6af05c19f96bedb9f882f7882
The upload token of file upload.
POST /api/blobs/uploads/{id}/complete HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
PortSIP-Upload-Token: text
Content-Type: application/octet-stream
Accept: */*
Content-Length: 8
"binary"
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}
Retrieve status of upload identified by the unique ID. The primary purpose of this endpoint is to resolve the current status of a resumable upload.
The universally unique identifier (UUID).
52e51422-573d-4fc9-b5c6-4a30058f5d71
GET /api/blobs/uploads/{id}/status HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Cancel outstanding upload processes, releasing associated resources. If this is not called, the unfinished uploads will eventually timeout.
The universally unique identifier (UUID).
52e51422-573d-4fc9-b5c6-4a30058f5d71
POST /api/blobs/uploads/{id}/destroy HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Download file from server by it's digest.
The Content Digests. A digest is a serialized hash result, consisting of a algorithm and hex portion. Only sha256 based digest accepted.
84d89877f0d4041efb6bf91a16f0248f2fd573e6af05c19f96bedb9f882f7882
GET /api/blobs/{digest} HTTP/1.1
Host: hostname:8887
Accept: */*
binary