Profesor

Traer todos los profesores

GET /profesor/all

Path Parameters

Name
Type
Description

string

[
    {
        "id": 1,
        "nombre": "Celine",
        "apellido": "Lakin",
        "telefono": "1-491-406-7039 x76602",
        "email": "zbernier@hotmail.com",
        "domicilio": "124 Walker Forest\nBerthahaven, OR 43479",
        "fijo": 100,
        "fecha_cobro_dia": 1,
        "cantidad_dias_cobro": 0,
        "deleted_at": null,
        "created_at": "2018-11-25 15:08:58",
        "updated_at": "2018-11-25 15:08:58"
    }
]

Traer profesor

GET /profesor/find/:id

Path Parameters

Name
Type
Description

string

  {
        "id": 1,
        "nombre": "Celine",
        "apellido": "Lakin",
        "telefono": "1-491-406-7039 x76602",
        "email": "zbernier@hotmail.com",
        "domicilio": "124 Walker Forest\nBerthahaven, OR 43479",
        "fijo": 100,
        "fecha_cobro_dia": 1,
        "cantidad_dias_cobro": 0,
        "deleted_at": null,
        "created_at": "2018-11-25 15:08:58",
        "updated_at": "2018-11-25 15:08:58"
    }

Eliminar profesor

POST /profesor/borrar

Path Parameters

Name
Type
Description

id

number

Modificar Profesor

PUT /profesor/editar/:id

Request Body

Name
Type
Description

id

number

fijo

number

nombre

string

apellido

string

telefono

string

email

string

domicilio

string

fecha_cobro_dia

number

cantidad_dias_cobro

number

Crear Profesor

POST https://api.cakes.com/profesor/crear

Dar de alta un profesor.

Request Body

Name
Type
Description

fijo

number

apellido

string

telefono

string

email

string

domicilio

string

fecha_cobro_dia

number

cantidad_dias_cobro

number

nombre

string

{
    "name": "Cake's name",
    "recipe": "Cake's recipe name",
    "cake": "Binary cake"
}

Last updated