Delete Menu - MarcoLagalla/marette_backend GitHub Wiki

Name Menu Delete
Description Delete the specified menu
URL _restaurant/<int:id>/menus/<int:m_id>/delete
Allowed methods POST
Authorizations IsAuthenticated, IsBusiness, IsOwner

POST

Parameter Type Description
id int valid restaurant id
m_id int valid menu id

Remove the selected Menu 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 menu or restaurant not found
HTTP_401_UNAUTHORIZED action not authorized
⚠️ **GitHub.com Fallback** ⚠️