Edit Menu - MarcoLagalla/marette_backend GitHub Wiki

Name Edit Menu
Description Edit an existing Menu
URL api/v1/webapp/restaurant/<int:id>/menus/<int:m_id>/edit
Allowed methods POST
Authorizations IsAuthenticated, IsBusiness, IsOwner

Params

Name Type Description
<int:id> integer Restaurant ID
<int:m_id> integer Menu ID

POST

Field Type Required Unique Comments
name string yes no
description string no no
price decimal yes no default=0
iva integer yes no Range [0-100]%, default=22%
entries list no no List of MenuEntry id

Return codes

Status Description
HTTP_200_OK Product updated
HTTP_404_NOT_FOUND Restaurant/Token not found
HTTP_401_UNAUTHORIZED Wrong Token for this restaruant
HTTP_400_BAD_REQUEST Error in parameters
⚠️ **GitHub.com Fallback** ⚠️