GoodSection


Modelo GoodSection

{
    "id": 1,
    "name": "Celebra Navidad",
    "type": "custom",
    "enabled": false,
    "in_order": 1,
    "is_featured": false,
    "created_at": "2022-08-31 18:10:57",
    "updated_at": "2023-12-07 20:05:05",
    "company_id": 116
}
Atributo Tipo Descripción
id int -
name string -
type string -
enabled bool -
in_order int -
is_featured bool -
created_at datetime\|null -
updated_at datetime\|null -
company_id int -

Insertar GoodSection

Método URI Cabeceras
POST /companies/{companyId}/good-sections Authorization
{
    "name": "required|string|max:64",
    "type": "string|in:custom",
    "in_order": "integer|min:0",
    "enabled": "boolean",
    "is_featured": "boolean",
    "good_ids": [
        "integer|min:1"
    ]
}

Listar GoodSection

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/good-sections N/A

Mostrar GoodSection

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/good-sections/{goodSectionId} N/A

Actualizar GoodSection

Método URI Cabeceras
PATCH /companies/{companyId}/good-sections/{goodSectionId} Authorization
{
    "name": "string|max:64",
    "type": "string|in:custom",
    "in_order": "integer|min:0",
    "is_featured": "boolean",
    "enabled": "boolean",
    "good_ids": [
        "integer|min:1"
    ]
}

Eliminar GoodSection

Método URI Cabeceras
DELETE /companies/{companyId}/good-sections/{goodSectionId} Authorization

Enlaces de GoodSection