FS3 API
Authentication
Login FilSwan Platform to get the authorization token which is used to acquire an access key pair for login FS3.
Acquire Access Key Pair
GET
https://<access_url>/minio
This endpoint allows you to acquire an access key pair.
Headers
Name | Type | Description |
---|---|---|
Bearer Token | string | This token can be issued via Platform 'login' API. |
Login FS3
POST
https://<access_url>/minio/webrpc
This endpoint allows you to acquire a token which is designed to do authorization before performing any actions for safety consideration.
Headers
Name | Type | Description |
---|---|---|
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.Login |
params | array | Input 'username' which is 'access_key', and 'password' which is 'secret_key'. |
Bucket Management
Get Bucket List
POST
https://<access_url>/minio/webrpc
This endpoint allows you to get a list of all buckets.
Headers
Name | Type | Description |
---|---|---|
User-Agent | string | |
Authorization | string | The bearer token is issued via 'login FS3' API. |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.ListBuckets |
params | array |
Create Bucket
POST
https://<access_url>/minio/webrpc
This endpoint allows you to create a bucket.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.MakeBucket |
params | array | input 'bucketName' |
Delete Bucket
POST
https://<access_url>/minio/webrpc
This endpoint allows you to delete the bucket you selected.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.DeleteBucket |
params | array | Input 'bucketName' |
Get Bucket Policy List
POST
https://<access_url>/minio/webrpc
This endpoint allows you to get a list of policies of the bucket you selected.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.ListAllBucketPolicies |
params | array | Input 'bucketName' |
Edit Bucket Policy
POST
https://<access_url>/minio/webrpc
This endpoint allows you to add or remove a policy of the bucket you selected.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' Api. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.SetBucketPolicy |
params | array | Input 'bucketName', 'policy', 'prefix' |
Backup Bucket to Filecoin - online deal
POST
https://<access_url>/minio/deals/<bucket>
This endpoint allows you to backup the bucket you selected to Filecoin network as an online deal.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
MinerId | string | provider ID |
Price | string | unit: fil |
Duration | string | unit: epoch |
VerifiedDeal | string | true/false |
FastRetrieval | string | true/false |
Backup Bucket to Filecoin - offline deal
POST
https://<access_url>/minio/offlinedeals/<bucket>
This endpoint allows you to backup the bucket you selected to Filecoin network as an offline deal.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
Task_Name | string | Task name you preferred. |
Curated_Dataset | string | |
Description | string | |
Is_Public | string | The task is whether public or private. The possible values: 1, 0 |
Type | string | The deals in this task is whether regular or verified. the possible values: regular, verified. |
Miner_Id | string | The provider you want to assign the task to. Required if is_public is set to 0. |
Min_Price | string | Min price per Gib per epoch. |
Max_Price | string | Max price per Gib per epoch. |
Tags | string | Up to 5 tags. |
Expire_Days | string | |
Auto_bid | string | The task is available to auto-bid or not. The possible values: 1, 0. Required if is_public is set to 1. |
Retrieve Bucket from Filecoin - online deal
GET
https://<access_url>/minio/bucket/retrieve/<bucket>
This endpoint allows you to retrieve the bucket you selected from Filecoin network.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Object Management
Get Objects List
POST
https://<access_url>/minio/webrpc
This endpoint allows you to get a list of all objects of the bucket you selected.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.ListObjects |
params | array | Input 'bucketName', 'prefix' |
Upload Object
PUT
https://<access_url>/minio/upload/<bucket>/<object>
This endpoint allows you to upload objects to the bucket you selected.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string | |
x-amz-date | string |
Request Body
Name | Type | Description |
---|---|---|
object | object | Select the file you desired to upload. |
Get URL Token
POST
https://<access_url>/minio/webrpc
This endpoint allows you to get a URL token for downloading objects.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.CreateURLToken |
params | string |
Download Objects
GET
https://<access_url>/minio/download/<bucket>/<object>
This endpoint allows you to download objects.
Path Parameters
Name | Type | Description |
---|---|---|
token | string | This token is issued via 'get URL Token' API. |
Headers
Name | Type | Description |
---|---|---|
User-Agent | string |
Delete Object
POST
https://<access_url>/minio/webrpc
This endpoint allows you to delete the object you selected.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API |
User-Agent | string | |
x-amz-date | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.RemoveObject |
params | array | Input 'bucketName', 'objects' |
Share Object
POST
https://<access_url>/minio/webrpc
This endpoint allows you to share the object you selected.
Headers
Name | Type | Description |
---|---|---|
User-Agent | string | |
Authorization | string | The bearer token is issued via 'login FS3' API. |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.PresignedGet |
params | array | Input 'bucket', 'expiry', 'host', 'object'. |
Backup Object to Filecoin - online deal
POST
https://<access_url>/minio/deal/<bucket>/<object>
This endpoint allows you to backup the object you selected to Filecoin network.
Headers
Name | Type | Description |
---|---|---|
User-Agent | string | |
Authorization | string | The bearer token is issued via 'login FS3' API. |
Request Body
Name | Type | Description |
---|---|---|
MinerId | string | provider ID |
Price | string | unit: fil |
Duration | string | unict: epochs |
VerifiedDeal | string | true/false |
FastRetrival | string | true/false |
Retrieve Object from Filecoin - online deal
GET
https://<access_url>/minio/retrieve/<bucket>/<object>
This endpoint allows you to retrieve the object you selected from Filecoin network.
Headers
Name | Type | Description |
---|---|---|
User-Agent | string | |
Authorization | string | The bearer token is issued via 'login FS3' API. |
General Settings
Change Password
POST
https://<access_url>/minio/webrpc
This endpoint allows you to change password.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.SetAuth |
params | array | Input 'currentAccessKey', 'currentSecretKey', 'newAccessKey', 'newSecretKey'. |
Get Storage Info
POST
https://<access_url>/minio/webrpc
This endpoint allows you to get storage information.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token is issued via 'login FS3' API. |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.StorageInfo |
params | string |
Get Server Info
POST
https://<access_url>/minio/webrpc
Headers
Name | Type | Description |
---|---|---|
Authorization | string | |
User-Agent | string |
Request Body
Name | Type | Description |
---|---|---|
id | string | 1 |
jsonrpc | string | 2.0 |
method | string | web.ServerInfo |
params | string |
Last updated