| Name |
Add MenuEntry |
| Description |
Add a new MenuEntry |
| URL |
api/v1/webapp/restaurant/<int:id>/menus/<int:m_id>/entry/add |
| Allowed methods |
POST |
| Authorizations |
IsAuthenticated, IsBusiness, IsOwner |
| Name |
Type |
Description |
<int:id> |
int |
Restaurant ID |
<int:m_id> |
int |
Menu ID |
| Field |
Type |
Required |
Unique |
Comments |
name |
string |
yes |
no |
|
num_products |
string |
no |
no |
The maximum number of choices for this Entry, default=1 |
products |
list |
no |
no |
List of Product id |
{
"name": "Menu del giorno",
"num_products" : 1,
"products": [2,5,7] <-- IDS of existing Products for this restaurant
}
| Status |
Description |
HTTP_201_CREATED |
Product added |
HTTP_404_NOT_FOUND |
Restaurant/Token not found |
HTTP_401_UNAUTHORIZED |
Wrong Token for this restaruant |
HTTP_400_BAD_REQUEST |
Error in parameters |