Remove OpeningDay - MarcoLagalla/marette_backend GitHub Wiki

Name Remove Opening Day
Description Delete this opening day from its timetable
URL api/v1/webapp/restaurant/<int:id>/opening/day/<int:d_id>/delete
Allowed methods POST
Authorizations IsBusiness

Params:

Name type Description
<int:id> integer Restaurant ID
<int:d_id> integer Restaurant ID

POST


Remove the opening day object for the restaurant. This action deletes all related objects (TimeInterval) with CASCADE behavior.

Return codes

Status Description
HTTP_200_OK deleted
HTTP_404_NOT_FOUND restaurant or token not found
HTTP_401_UNAUTHORIZED wrong token
⚠️ **GitHub.com Fallback** ⚠️