Servicios
Modificar un servicio
PUT
/servicio/editar/:id
Request Body
Name
Type
Description
id
number
nombre
string
dias
array
[
{
id: number,
horarios: [{
desde: time,
hasta: time,
entrada_desde: time,
entrada_hasta: time,
profesores: [ 1, 2, 3]
}]
} ]
Crear un servicio
POST
/servicio/crear
Request Body
Name
Type
Description
dias
array
[
{
id:number,
horarios: [
{
desde:time,
hasta:time,
entrada_desde: time, entrada_hasta: time, profesores: [1, 2, 3]
}]
}
]
nombre
string
Borrar un servicio
POST
/servicio/borrar
Request Body
Name
Type
Description
id
number
Buscar un servicio
GET
/servicio/find/:id
Path Parameters
Name
Type
Description
string
{
"id":1,
"nombre":"50%",
"registra_entrada":1,
"creditos_minimos":1,
"created_at":"2019-02-20 16:12:06",
"updated_at":"2019-02-20 16:12:06",
"deleted_at":null,
"horarios":[
{
"id":1,
"id_servicio":1,
"dia":1,
"desde":"17:00:00",
"hasta":"18:00:00",
"entrada_desde":"16:45:00",
"entrada_hasta":"17:15:00",
"created_at":"2019-02-20 16:12:06",
"updated_at":"2019-02-20 16:12:06",
"profesores":[
{
"id":1,
"nombre":"Camron",
"apellido":"Sporer",
"telefono":"+1.351.888.0542",
"email":"jammie.crooks@stoltenberg.info",
"domicilio":"5695 Mills Isle Suite 707\nOrntown, NJ 86372",
"fijo":100,
"fecha_cobro_dia":1,
"cantidad_dias_cobro":0,
"deleted_at":null,
"created_at":"2019-02-20 16:12:05",
"updated_at":"2019-02-20 16:12:05",
"pivot":{
"id_horario":1,
"id_profesor":1
}
}
]
}
]
}
Traerse todos los servicios
GET
https://api.cakes.com/servicio/all
Path Parameters
Name
Type
Description
string
{
"id":1,
"nombre":"50%",
"registra_entrada":1,
"creditos_minimos":1,
"created_at":"2019-02-20 16:12:06",
"updated_at":"2019-02-20 16:12:06",
"deleted_at":null,
"horarios":[
{
"id":1,
"id_servicio":1,
"dia":1,
"desde":"17:00:00",
"hasta":"18:00:00",
"entrada_desde":"16:45:00",
"entrada_hasta":"17:15:00",
"created_at":"2019-02-20 16:12:06",
"updated_at":"2019-02-20 16:12:06",
"profesores":[
{
"id":1,
"nombre":"Camron",
"apellido":"Sporer",
"telefono":"+1.351.888.0542",
"email":"jammie.crooks@stoltenberg.info",
"domicilio":"5695 Mills Isle Suite 707\nOrntown, NJ 86372",
"fijo":100,
"fecha_cobro_dia":1,
"cantidad_dias_cobro":0,
"deleted_at":null,
"created_at":"2019-02-20 16:12:05",
"updated_at":"2019-02-20 16:12:05",
"pivot":{
"id_horario":1,
"id_profesor":1
}
}
]
}
]
}
Last updated