Remove TimeTable - MarcoLagalla/marette_backend GitHub Wiki

Name Remove TimeTable
Description Delete the timetable for the given restaurant
URL api/v1/webapp/restaurant/<int:id>/opening/delete
Allowed methods POST
Authorizations IsBusiness

Params:

Name type Description
<int:id> integer Restaurant ID

POST


Remove the timetable object for the restaurant. This action deletes all related objects (TimeInterval, OpeningDays) 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** ⚠️