As a Server, | I want to handle deleting one/many images
saraheisa opened this issue · comments
AC:
- Create a
DELETE /images
path to receive images names as a JSON - Images should be removed from hard disk
- return a response that looks like this:
{
"success": 5,
"notFound": 1,
"successImages": [
"1.jpg",
"3.jpg",
"4.png",
"5.jpg",
"6.jpg"
],
"notFoundImages": [
"2"
]
}
Where:
success
: Number of successfully deleted images
notFound
: Number of failed to delete images
successImages
: An array with successfully deleted images names
notFoundImages
: An array with failed to delete images names