BranchSection
Modelo BranchSection
{
"id": 3,
"name": "System-Managed Section",
"type": "categories",
"enabled": false,
"in_order": 65535,
"created_at": "2020-09-17 00:53:20",
"updated_at": "2025-11-18 21:14:36",
"payload": null,
"day_time_blocks": []
}
| Atributo |
Tipo |
Descripción |
id |
int |
- |
name |
string |
- |
type |
string |
- |
enabled |
bool |
- |
in_order |
int |
- |
created_at |
datetime\|null |
- |
updated_at |
datetime\|null |
- |
day_time_blocks |
array |
- |
Insertar BranchSection
| Método |
URI |
Cabeceras |
| POST |
/companies/{companyId}/branch-sections |
Authorization |
{
"name": "required_if:type,custom|string|max:64",
"type": "required|string|in:custom,categories,featured,nearby",
"enabled": "boolean",
"in_order": "integer",
"payload": "",
"day_time_blocks": [
{
"day_sunday": "nullable|boolean",
"day_monday": "nullable|boolean",
"day_tuesday": "nullable|boolean",
"day_wednesday": "nullable|boolean",
"day_thursday": "nullable|boolean",
"day_friday": "nullable|boolean",
"day_saturday": "nullable|boolean",
"hour_beg": {
"nullable": true,
"string": true,
"regex": "/^([0-1][0-9]|2[0-3]):[0-5][0-9]$/"
},
"hour_end": {
"nullable": true,
"string": true,
"regex": "/^([0-1][0-9]|2[0-3]):[0-5][0-9]$/"
}
}
]
}
Listar BranchSection
{info} Soporta:
Paginación
Filters
Carga dinámica
| Método |
URI |
Cabeceras |
| GET |
/companies/{companyId}/branch-sections |
Authorization |
Mostrar BranchSection
{info} Soporta:
Carga dinámica
| Método |
URI |
Cabeceras |
| GET |
/companies/{companyId}/branch-sections/{branchSectionId} |
Authorization |
Actualizar BranchSection
| Método |
URI |
Cabeceras |
| PATCH |
/companies/{companyId}/branch-sections/{branchSectionId} |
Authorization |
{
"name": "string|max:64",
"type": "string|in:custom,categories,featured,nearby",
"enabled": "boolean",
"in_order": "integer",
"payload": "",
"day_time_blocks": [
{
"day_sunday": "nullable|boolean",
"day_monday": "nullable|boolean",
"day_tuesday": "nullable|boolean",
"day_wednesday": "nullable|boolean",
"day_thursday": "nullable|boolean",
"day_friday": "nullable|boolean",
"day_saturday": "nullable|boolean",
"hour_beg": {
"nullable": true,
"string": true,
"regex": "/^([0-1][0-9]|2[0-3]):[0-5][0-9]$/"
},
"hour_end": {
"nullable": true,
"string": true,
"regex": "/^([0-1][0-9]|2[0-3]):[0-5][0-9]$/"
}
}
]
}
Eliminar BranchSection
| Método |
URI |
Cabeceras |
| DELETE |
/companies/{companyId}/branch-sections/{branchSectionId} |
Authorization |
Enlaces de BranchSection