| Name |
Activate Component |
| Description |
Activate the panel component for the restaurant |
| URL |
restaurant/<int:id>/components/<str:type>/activate |
| Allowed methods |
POST |
| Authorizations |
GET (IsBusiness, IsOwner) |
Activate the selected panel (set show=True) for the selected restaurant.
Only the logged owner can make this request.
| Name |
Type |
Description |
<int:id> |
integer |
Target restaurant ID |
<str:type> |
RESTAURANT_COMPONENTS |
valid panel name |
| Status |
Description |
HTTP_200_OK |
panel activated |
HTTP_404_NOT_FOUND |
restaurant with this ID not found |
HTTP_400_BAD_REQUEST |
wrong parameters |
HTTP_401_UNAUTHORIZED |
action not authorized |