AdminType


Tipo de Administrador. Esta entidad contiene valores de configuración de interfaz.

Modelo AdminType

{
    "id": 1,
    "name": "cocinero",
    "default_key": "orders",
    "content": [
        {
            "key": "orders",
            "value": true
        }
    ],
    "created_at": "2020-08-09 17:15:37",
    "updated_at": "2020-08-09 17:15:37",
    "roles": [
        {
            "id": 1,
            "role": "can_assign_company_providers",
            "created_at": "2020-10-01 21:44:53",
            "updated_at": "2020-10-01 21:44:53",
            "admin_type_id": 1
        },
        {
            "id": 2,
            "role": "can_assign_company_providers",
            "created_at": "2020-10-01 21:44:58",
            "updated_at": "2020-10-01 21:44:58",
            "admin_type_id": 1
        }
    ]
}

Insertar AdminType

Método URI Cabeceras
POST /companies/{companyId}/admin-types Authorization
{
    "name": "required|string|max:32",
    "default_key": "required|string|max:32",
    "content": [
        {
            "key": "required|string|max:32",
            "value": "required",
            "default_key": "string|max:32",
            "content": [
                {
                    "key": "string|max:32",
                    "value": ""
                }
            ]
        }
    ]
}

Listar AdminType

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

Método URI Cabeceras
GET /companies/{companyId}/admin-types Authorization

Mostrar AdminType

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/admin-types/{adminTypeId} Authorization

Actualizar AdminType

Método URI Cabeceras
PATCH /companies/{companyId}/admin-types/{adminTypeId} Authorization
{
    "name": "string|max:32",
    "default_key": "string|max:32",
    "content": [
        {
            "key": "string|max:32",
            "value": "",
            "default_key": "string|max:32",
            "content": [
                {
                    "key": "string|max:32",
                    "value": ""
                }
            ]
        }
    ]
}

Vincular AdminType

Vincular Role

Método URI Cabeceras
PUT /companies/{companyId}/admin-types/{adminTypeId}/roles Authorization
[
    "string|in:can_view_reports_module,can_view_reports_module_general,can_view_orders_module,can_view_orders_module_all_tabs,can_view_payments_module,can_view_map_module,can_view_providers_module,can_view_settings_module,can_view_branches_module,can_view_admins_module,can_view_clients_module,can_view_banners_module,can_view_notifications_module,can_view_coupons_module,can_view_promos_module,can_view_goods_module,can_view_properties_module,can_view_categories_module,can_assign_company_providers,can_manage_platform_texts"
]

Desvincular AdminType

Desvincular Role

Método URI Cabeceras
DELETE /companies/{companyId}/admin-types/{adminTypeId}/roles Authorization
[
    "string|in:can_view_reports_module,can_view_reports_module_general,can_view_orders_module,can_view_orders_module_all_tabs,can_view_payments_module,can_view_map_module,can_view_providers_module,can_view_settings_module,can_view_branches_module,can_view_admins_module,can_view_clients_module,can_view_banners_module,can_view_notifications_module,can_view_coupons_module,can_view_promos_module,can_view_goods_module,can_view_properties_module,can_view_categories_module,can_assign_company_providers,can_manage_platform_texts"
]

Eliminar AdminType

Método URI Cabeceras
DELETE /companies/{companyId}/admin-types/{adminTypeId} Authorization

Enlaces de AdminType