Name |
Add Menu |
Description |
Add a new Menu |
URL |
api/v1/webapp/restaurant/<int:id> /menus/add |
Allowed methods |
POST |
Authorizations |
IsAuthenticated, IsBusiness, IsOwner |
Field |
Type |
Required |
Unique |
Comments |
name |
string |
yes |
no |
|
description |
string |
no |
no |
|
price |
decimal |
yes |
no |
default=0 |
iva |
integer |
yes |
no |
Range [0-100]%, default=22% |
{
"name": "Menu del giorno",
"price" : 12,
"iva": 22
}
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 |