POST /bucket
{
"bucketName" string
}
{
"code": 200
"message": "Successfully created"
}
{
"code" int
"message" error message
}
GET /buckets
None
[
{
"name" string
"creationDate" time.Time
}
]
{
"code" int
"message" error_message
}
DELETE /bucket/remove
Query: title string
{
"code" int
"message" "Successfully removed"
}
{
"code" int
"message" error_message
}
POST /upload
{
"bucketName" string
"fileName" string
"filePath" string
"contentType" string
}
{
"code": 200
"message": "Successfully uploaded <filename> of size <int> "
}
{
"code" int
"message" error message
}
POST /download
{
"bucketName" string
"fileName" string
"destinationPath" string
}
{
"code": 200
"message": "Successfully downloaded in <destinationPath>"
}
{
"code" int
"message" error message
}
GET /file
{
"bucketName" string
"fileName" string
}
{
"code": 200
"message": "<download link>"
}
{
"code" int
"message" error message
}
POST /file/remove
{
"bucketName" string
"fileName" string
}
{
"code": 200
"message": "Successfully removed"
}
{
"code" int
"message" error
}