MenuItem
Estructura de Datos
| Atributo |
Tipo |
Descripción |
id |
int |
|
menu_category_id |
int |
|
branch_good_id |
int |
|
is_enabled |
bool |
|
in_order |
int |
|
created_at |
datetime\|null |
|
updated_at |
datetime\|null |
|
branchGood |
BranchGood |
|
category |
MenuCategory |
|
{
"id": 1,
"menu_category_id": 1,
"branch_good_id": 324816,
"is_enabled": true,
"in_order": 1,
"created_at": "2026-04-13T17:38:21.000000Z",
"updated_at": "2026-04-13T17:38:21.000000Z"
}
Endpoints
Acciones de MenuItem
Index
| Método |
URI |
Cabeceras |
| GET |
/companies/{companyId}/menu-categories/{menuCategory}/items |
N/A |
Show
| Método |
URI |
Cabeceras |
| GET |
/companies/{companyId}/menu-items/{menuItem} |
N/A |
Store
| Método |
URI |
Cabeceras |
| POST |
/companies/{companyId}/menu-categories/{menuCategory}/items |
Authorization |
{
"branch_good_id": "required|integer|exists:branch_goods,id",
"is_enabled": "boolean"
}
Update
| Método |
URI |
Cabeceras |
| PATCH |
/companies/{companyId}/menu-items/{menuItem} |
Authorization |
{
"is_enabled": "boolean"
}
Destroy
| Método |
URI |
Cabeceras |
| DELETE |
/companies/{companyId}/menu-items/{menuItem} |
Authorization |
Order
| Método |
URI |
Cabeceras |
| PATCH |
/companies/{companyId}/menu-items/{menuItem}/order |
Authorization |
{
"new_order": "required|integer|min:1"
}
Relaciones