cmsn_store
v1.0.0
Published
image process and store
Downloads
3
Readme
cmsn-store
api 문서 양식 https://github.com/jamescooke/restapidocs/tree/master/examples
API
URL : /api/v1/thumbs
Description : 링크를 읽어들여 썸네일을 저장하고, 저장된 썸네일 이미지에 대한 링크를 반환한다.
Method : POST
Auth required : NO
Data constraints
{
"url": "[url to make thumb image]",
}
Data example
{
"url": "https://pbs.twimg.com/media/FdaM1OxaEAYW91U?format=jpg&name=medium"
}
Success Response
Code : 200 OK
Content example
{
"location": "https://storage.googleapis.com/cm-sn.art/2022-09-25T11%3A07%3A33-FdaM1OxaEAYW91U.webp"
}
Error Response
Condition : If url is empty
Code : 400 BAD REQUEST
{
"message": "[error message]"
}
Condition : server error
Code : 500
{
"message": "Server Error",
"error": "[error object]"
}