Add Gallery Image - MarcoLagalla/marette_backend GitHub Wiki

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

POST

Upload a new Image for the Restaurant gallery. Only the logged owner can make this request.

Params

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

Fields

Name Type Required Unique Description
image File yes no
name str yes no
description str no no

Return codes

Status Description
HTTP_201_CREATED created
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** ⚠️