Delete Gallery Image - MarcoLagalla/marette_backend GitHub Wiki

Name Delete Gallery Image
Description Delete new Image in gallery
URL restaurant/<int:id>/components/galleria/images/<int:i_id>/delete
Allowed methods POST
Authorizations GET (IsBusiness, IsOwner)

POST

Delete the selected image from db. Only the logged owner can make this request.

Params

Name Type Description
<int:id> integer Target restaurant ID
<int:i_id> integer Image ID

Return codes

Status Description
HTTP_200_OK ok
HTTP_404_NOT_FOUND restaurant with this ID not found
HTTP_400_BAD_REQUEST wrong parameters
HTTP_401_UNAUTHORIZED action not authorized
⚠️ **GitHub.com Fallback** ⚠️