BranchCategory


Representa a una Categoría para un Comercio (Branch). Útil para Marketplaces. Esto permite agrupar Branches de forma manual.

Modelo BranchCategory

{
    "id": 1,
    "name": "Restaurantes",
    "image_url": "http://127.0.0.1:8000/storage/static/default/product_category_logo.png",
    "image_landscape_url": "http://127.0.0.1:8000/storage/static/default/product_category_logo.png",
    "created_at": "2020-04-02 15:21:46",
    "updated_at": "2020-04-02 15:21:46",
    "branch_category_id": null,
    "in_order": 65535
}

Insertar BranchCategory

Método URI Cabeceras
POST /companies/{companyId}/branch-categories Authorization
{
    "name": "required|string|max:64",
    "branch_category_id": "integer",
    "in_order": "integer|min:1"
}

Listar BranchCategory

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

Método URI Cabeceras
GET /companies/{companyId}/branch-categories N/A

Listar BranchCategory de Branch

{info} Soporta: Paginación Filters

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/branch-categories N/A

Listar BranchCategory de BranchGroup

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

Método URI Cabeceras
GET /companies/{companyId}/branch-groups/{branchGroupId}/branch-categories N/A

Mostrar BranchCategory

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branch-categories/{branchCategoryId} N/A

Actualizar BranchCategory

Método URI Cabeceras
PATCH /companies/{companyId}/branch-categories/{branchCategoryId} Authorization
{
    "name": "string|max:64",
    "in_order": "integer|min:1"
}

Actualizar BranchGroup

Método URI Cabeceras
PATCH /companies/{companyId}/branch-categories/{branchCategoryId}/branch-groups/{branchGroupId} Authorization
{
    "in_order": "integer|min:1"
}

Vincular BranchCategory

Vincular BranchGroup

Método URI Cabeceras
PUT /companies/{companyId}/branch-categories/{branchCategoryId}/branch-groups/{branchGroupId} Authorization
{
    "in_order": "integer|min:1"
}

Desvincular BranchCategory

Desvincular BranchGroup

Método URI Cabeceras
DELETE /companies/{companyId}/branch-categories/{branchCategoryId}/branch-groups/{branchGroupId} Authorization

Eliminar BranchCategory

Método URI Cabeceras
DELETE /companies/{companyId}/branch-categories/{branchCategoryId} Authorization

Acciones de BranchCategory

Upload

Método URI Cabeceras
POST /companies/{companyId}/branch-categories/{branchCategoryId}/upload-image Authorization
{
    "image": "required|image|mimes:jpeg,png,bmp|max:8192|dimensions:min_width=600,ratio=1/1"
}

Upload

Método URI Cabeceras
POST /companies/{companyId}/branch-categories/{branchCategoryId}/upload-image-landscape Authorization
{
    "image": "required|image|mimes:jpeg,png,bmp|max:8192|dimensions:min_width=600,min_height=600"
}

Attach Compat

Método URI Cabeceras
PUT /companies/{companyId}/branch-categories/{branchCategoryId}/branches/{branchId} Authorization

Detach Compat

Método URI Cabeceras
DELETE /companies/{companyId}/branch-categories/{branchCategoryId}/branches/{branchId} Authorization

Enlaces de BranchCategory