Add TimeTable - MarcoLagalla/marette_backend GitHub Wiki
| Name | Add TimeTable |
|---|---|
| Description | Create a timetable for opening days |
| URL | api/v1/webapp/restaurant/<int:id>/opening/add |
| Allowed methods | POST |
| Authorizations | IsBusiness |
| Name | type | Description |
|---|---|---|
<int:id> |
integer | Restaurant ID |
Create a timetable object for the restaurant. No additional parameters needed.
| Status | Description |
|---|---|
HTTP_201_CREATED |
created |
HTTP_204_NO_CONTENT |
timetable already exists |
HTTP_404_NOT_FOUND |
restaurant or token not found |
HTTP_401_UNAUTHORIZED |
wrong token |