a dockerized micro-service for adding, updating, retrieving and deleting files
-
Method - POST
-
Sample Request
{
"file": "mark.png"
}
- Sample Response
{
"status": true,
"message": "File Uploaded"
}
-
Method - GET
-
Sample Response
{
"status": true,
"message": "Files Found",
"files": [
{
"id": "5e6288bc8c7fec6308a1d499",
"file": "s3://falcon-bucket/files/mark.png"
},
{
"id": "5e6288bc8c7fec6308a1d498",
"file": "s3://falcon-bucket/files/essien.gif"
},
{
"id": "5e6288bc8c7fec6308a1d497",
"file": "s3://falcon-bucket/files/seyi.jpg"
},
{
"id": "5e6288bc8c7fec6308a1d496",
"file": "s3://falcon-bucket/files/john.gif"
},
{
"id": "5e6288bc8c7fec6308a1d495",
"file": "s3://falcon-bucket/files/doe.jpeg"
}
]
}
-
Method - GET
-
Sample Response
{
"status": true,
"message": "File Found",
"file": {
"id": "5e6288bc8c7fec6308a1d499",
"file": "s3://falcon-bucket/files/mark.png"
}
}
-
Method - PUT
-
HEADER
-
Sample Request
{
"id": "5e6288bc8c7fec6308a1d499",
"file": "s3://falcon-bucket/files/mark.png"
}
- Sample Response
{
"status": true,
"message": "File Updated"
}
-
Method - DELETE
-
HEADER
-
Sample Request
{
"id": "5e6288bc8c7fec6308a1d499"
}
- Sample Response
{
"status": true,
"message": "File Deleted"
}