URL : /images/info/
Method : POST
CURL Command
curl --location --request POST 'http://localhost:3000/images/info' \
--form 'file=@/path/to/file.png'Code : 200 OK
{
"success": true,
"data": {
"type": "PNG",
"size": 1024,
"width": 100,
"height": 100
}
}Code : 404 NOT FOUND
{
"success": false,
"message": "File is blank or not an image"
}URL : /images/resize/
Method : POST
CURL Command
curl --location --request POST 'http://localhost:3000/images/resize' \
--form 'file=@/path/to/file.png' \
--form 'width=150' \
--form 'height=150'Code : 200 OK
Response : Resized image
Code : 404 NOT FOUND
{
"success": false,
"message": "File is blank or not an image"
}