Delete MenuEntry - MarcoLagalla/marette_backend GitHub Wiki

Name MenuEntry Delete
Description Display MenuEntry information
URL _restaurant/<int:id>/menus/<int:m_id>/entry/<int:me_id>/delete
Allowed methods POST
Authorizations IsAuthenticated, IsBusiness, IsOwner

POST

Parameter Type Description
<int:id> int valid restaurant id
<int:m_id> int valid Menu ID
<int:me_id> int valid MenuEntry id

Remove the selected MenuEntry from the database. (Checks if the user that make the request is the owner and is authorized)

Return codes

Status Description
HTTP_200_OK deleted
HTTP_404_NOT_FOUND product or restaurant not found
HTTP_401_UNAUTHORIZED action not authorized
⚠️ **GitHub.com Fallback** ⚠️