-
Get/ `./:content_name
- Response a content
-
Success Response : Header with Code 200
-
Fail Response : Header with Code 404
http://address:port/contents/"Input the content_name"
Stream A image data
-
Get/
./capsule-id/:capsuleId
- Response information of contents from a capsule has capsule_id
-
Success Response : Header with Code 200
-
Fail Response : Header with Code 404
http://address:port/contents/capsule-id/"Input the capsule_id"
[
{
content_id: 48,
content_name: "1592163019288.jpg",
capsule_id: 25,
url: "http://118.44.168.218:7070/contents/1592163019288.jpg",
extension: ".jpg",
size: 150094
},
{
...
}
]
-
Post/
./:content_name
- Post contents
-
Success Response : Header with Code 200
-
Fail Response : Header with Code 404
@multipart
file: list of files
{
"success": true
}
-
Delete/
./:content_name
- Delete a content
-
Success Response : Header with Code 200
-
Fail Response : Header with Code 404
http://address:port/contents/"Input the content_id"
{
"success": true
}