Representa un Grupo de Requisitos o Habilidades para los Goods de tipo Servicio o Providers.
{
"id" : "long",
"name" : "string",
"created_at": "date",
"updated_at": "date"
}
Obtiene una lista de ServiceSkillGroup ordenados alfabéticamente (orden natural).
Método | URI | Cabeceras |
---|---|---|
GET | /service-skill-groups |
Authorization |
{
"with_skills": "boolean"
}
{info}
with_skills
se utiliza para incluir los ServiceSkill asociados ordenados alfabéticamente (orden natural).
{success} Respuesta satisfactoria.
Código 200
ServiceSkillGroup[]
[
{
"id" : 1,
"name" : "Testing Group",
"created_at": "2019-08-27 16:12:41",
"updated_at": "2019-08-27 16:12:41"
},
{
"id" : 2,
"name" : "Another Example",
"created_at": "2019-08-27 20:03:16",
"updated_at": "2019-08-27 20:03:16"
}
]
Código 200
ServiceSkillGroup[]
Parámetro with_skills = true
[
{
"id" : 8,
"name" : "Nuevo",
"created_at": "2019-08-28 14:36:19",
"updated_at": "2019-08-28 14:36:19",
"skills" : []
},
{
"id" : 1,
"name" : "Testing Group",
"created_at": "2019-08-27 16:12:41",
"updated_at": "2019-08-27 16:12:41",
"skills" : [
{
"id" : 1,
"name" : "skill",
"created_at": "2019-08-27 16:41:59",
"updated_at": "2019-08-27 16:41:59"
}
]
},
{
"id" : 2,
"name" : "Testint Group",
"created_at": "2019-08-27 20:03:16",
"updated_at": "2019-08-27 20:03:16",
"skills" : []
}
]
ServiceSkill[]
Guarda un nuevo registro en el servidor.
Método | URI | Cabeceras |
---|---|---|
POST | /service-skill-groups |
Authorization |
{
"name": "required|string|max:64"
}
{info}
name
no permite valores repetidos.
{success} Respuesta satisfactoria.
Código 201
ServiceSkillGroup
{
"id" : 5,
"name" : "Estilista",
"created_at": "2019-08-27 20:17:53",
"updated_at": "2019-08-27 20:17:53"
}
Devuelve el registro especificado.
Método | URI | Cabeceras |
---|---|---|
GET | /service-skill-groups/{serviceSkillGroupId} |
Authorization |
{
"with_skills": "boolean"
}
{info}
with_skills
se utiliza para incluir los ServiceSkill asociados.
{success} Respuesta satisfactoria.
Código 200
ServiceSkillGroup
{
"id" : 5,
"name" : "Estilista",
"created_at": "2019-08-27 20:17:53",
"updated_at": "2019-08-27 20:17:53"
}
Código 200
ServiceSkillGroup
Parámetro with_skills = true
{
"id" : 1,
"name" : "Testing Group",
"created_at": "2019-08-27 16:12:41",
"updated_at": "2019-08-27 16:12:41",
"skills" : [
{
"id" : 1,
"name" : "skill",
"created_at": "2019-08-27 16:41:59",
"updated_at": "2019-08-27 16:41:59"
}
]
}
ServiceSkill[]
Actualiza los datos del registro especificado.
Método | URI | Cabeceras |
---|---|---|
PATCH | /service-skill-groups/{serviceSkillGroupId} |
Authorization |
{
"name": "required|string|max:64"
}
{success} Respuesta satisfactoria.
Código 200
ServiceSkillGroup
{
"id" : 5,
"name" : "Super Estilista",
"created_at": "2019-08-27 20:17:53",
"updated_at": "2019-08-27 21:06:50"
}
Elimina el registro especificado.
Método | URI | Cabeceras |
---|---|---|
DELETE | /service-skill-groups/{serviceSkillGroupId} |
Authorization |
Ninguno
{success} Respuesta satisfactoria.
Código 200
ServiceSkillGroup
{
"id" : 5,
"name" : "Estilista",
"created_at": "2019-08-27 20:17:53",
"updated_at": "2019-08-27 20:17:53"
}
{danger} Respuesta de error
Código 428
Motivo Existen servicios asociados a algún ServiceSkill dentro del grupo.
{
"message": "attached_goods"
}
Código 428
Motivo Existen propiedades asociadas a algún ServiceSkill dentro del grupo.
{
"message": "attached_properties"
}