Name |
Edit Home Component |
Description |
Allows modifications on restuarant HOME |
URL |
restaurant/<int:id> /components/home/edit |
Allowed methods |
POST |
Authorizations |
GET (IsBusiness, IsOwner) |
Edit HOME Components information for the given restaurant.
Only the logged owner can make this request.
Name |
Type |
Description |
<int:id> |
integer |
Target restaurant ID |
Name |
Type |
Required |
Unique |
Description |
image |
File |
no |
no |
Banner for HOME |
description |
text |
no |
no |
|
show |
bool |
no |
no |
default=False |
Status |
Description |
HTTP_200_OK |
updated |
HTTP_404_NOT_FOUND |
restaurant with this ID not found |
HTTP_400_BAD_REQUEST |
wrong parameters |
HTTP_401_UNAUTHORIZED |
action not authorized |