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 |
Name | type | Description |
---|---|---|
<int:id> |
integer | Restaurant ID |
Remove the timetable object for the restaurant. This action deletes all related objects (TimeInterval, OpeningDays) with CASCADE behavior.
Status | Description |
---|---|
HTTP_200_OK |
deleted |
HTTP_404_NOT_FOUND |
restaurant or token not found |
HTTP_401_UNAUTHORIZED |
wrong token |