storage developers api documentaion
 FILES
Post
Delete
List
Get
 BUCKETS
Post
Delete
List
Get

POST Post New File
https://{REGION-CODE}.storage.ze.io/api/public/files/file-uploading.api.php
Request
Form ParametersTypeDescription
tokenId
required
textAccess token of this project
bucketApiId
required
text 
fileToUpload
required

stream 
Response
200: OK
{Status:”OK”,”fileId”}  


DELETE Delete File
https://{REGION-CODE}.storage.ze.io/api/public/files/file-deleting.api.php
Request
Form ParametersTypeDescription
tokenId
required
textAccess token of this project
fileId
required

text 
Response
200: OK
{Status:”OK”,”fileId”}  


LIST Get File List
https://{REGION-CODE}.storage.ze.io/api/public/files/file-list.api.php
Request
Form ParametersTypeDescription
tokenId
required
textAccess token of this project
Response
200: OK

{

status:”OK”,

fileList:


   [

     {

       "fileId": "xxx",

       "fileName": "xxx.xx",

       "fileSize": "xxx",

       "fileMimeType": "xxx/xxx",

       "insertDate": "yyyy-mm-dd hh:mm:ss",

       "buckeApitId":"xxx" ,

       "projectId": "xxx"

     },

     ...

   ]

}


 
 



GET Get File
https://{REGION-CODE}.storage.ze.io/api/public/files/file-get.api.php
Request
Form ParametersTypeDescription
tokenId
required
textAccess token of this project
fileId
required

text 
Response
200: OK
File Binary Stream




POST Create New Bucket
https://storage.ze.io/api/public/buckets/bucket-updating.api.php
Request
Form ParametersTypeDescription
Token
required
textAccess token of this project
bucketApitId
optional
textRequired only when updating
bucketName
required
text 
regionId
required
int 
Response
200: OK
{Status:”OK”,”bucketApiId”,"bucketName","projectId","regionId"}  


POST Delete Bucket
https://storage.ze.io/api/public/buckets/bucket-deleting.api.php
Request
Form ParametersTypeDescription
Token
required
textAccess token of this project
bucketApiId
required
text 
Response
200: OK
{Status:”OK”,”bucketApiId”,"projectId"}  


POST Get Bucket List
https://storage.ze.io/api/public/buckets/bucket-list.api.php
Request
Form ParametersTypeDescription
Token
required
textAccess token of this project
bucketApiId
required
text 
Response
200: OK

{

status:”OK”,

list:


   [

     {

       "bucketApiId": "xxx",

       "projectId": "xxx.xx",

       "bucketName": "xxx",

       "regionId":xxx

     },

     ...

   ]

}


 
 





POST Get Bucket
https://storage.ze.io/api/public/buckets/bucket-get.api.php
Request
Form ParametersTypeDescription
Token
required
textAccess token of this project
bucketApiId
required
text 
Response
200: OK
{Status:”OK”,”bucketApiId”,"projectId","bucketName","regionId"}  

ze.io