POST /auth
{
"user": "", -> REQUERIDO
"pass": "" -> REQUERIDO
}
Test:
{
"user": "hola@pablogaray.com.ar",
"pass": "123456"
}
GET /pacientes
/pacientes.php?page=$numeroPagina
/pacientes.php?id=$pacienteId
POST /pacientes
{
"dni": "", -> REQUERIDO
"nombre": "", -> REQUERIDO
"apellido": "",
"genero": "",
"fechaNacimiento": "",
"direccion": "",
"tel": "",
"email": "", -> REQUERIDO
"token": "" -> REQUERIDO
}
PUT /pacientes
{
"pacienteId": "", -> REQUERIDO
"dni": "",
"nombre": "",
"apellido": "",
"genero": "",
"fechaNacimiento": "",
"direccion": "",
"tel": "",
"email": "",
"token": "" -> REQUERIDO
}
DELETE /pacientes (body)
{
"pacienteId": "", -> REQUERIDO
"token": "" -> REQUERIDO
}
DELETE /pacientes (headers)
{
"Paciente-Id": "", -> REQUERIDO
"Token": "" -> REQUERIDO
}