To Use Storage Services

Below are the API set developer can use our Storage Services (Upload any type of file and consume the same).

Step -1 : To Create Job

Below are the API used to create a Job to upload any type of file, response of which further be use to uploads file in our decentralised storage network.

Create Job For Storage

POST https://testnet.rtservices.pandoproject.org/apis/proServer

This api will allocate server where we upload file with session key.

Request Body

NameTypeDescription

purposeCode*

3

This purpose code -3 set for Storage services.

securityKey

public

public,key,domain(if we paas domain then domain field should be mandatory)

domain

String

only paas when security is domain based

Step 2 : To Upload File

Response from Last api (Create job ) now we need to make upload url with the help of Below Api.

*Url :- Server url recieved from 1st Api(Step-1).

Upload file to specific server url

POST Server Url/fileupload

we need to Replace url field with url recievd from Create job api

Request Body

NameTypeDescription

sessionKey*

63a93a73-bafa-4dc2-884e-8247bc6fdcd4

Recived from Create job for pro

files*

File which we want to Upload

All detail will get with positive response

Step 3 : To Download File

Below are the API used to download file, on assigned storage domain on response of above API.

*fileId :- Recieved from upload File Api(Step-2).

*sessionKey :-Recieved from Create job Api(Step-1).

*server url :- Recieved from Create job Api

Download or Consume File from Server

GET serverurl/filedownload?fileId=&sessionKey=

serverurl/filedownload?fileId=&sessionKey=

Request Body

NameTypeDescription

fileId*

fileid

File id which is recieved from Upload server api

sessionKey*

String

Session key recived from Create job Api

Reach to us on discord if you require help

Last updated

Contact Us:

On Discord

© Copyright 2022 Pandolab Pte Ltd. All rights reserved.