Novedades
Crear novedad
POST /api/web/novedades
Body:
Name
Type
Desc
descripcion
string
minLength: 2
prioridad
string
'alta', 'media', 'baja'
fotoUrl
string
url
fecha
fecha
---
puestosId
Number
---
Response:
{
"estado": true,
"datos": {
"fecha": "2011-10-01T05:00:00.000Z",
"fotoUrl": "",
"fueAtendida": false,
"id": 1,
"descripcion": "INCREMENTO DE LAS ANOMALÍAS VISUALES, FATIGA MENTAL Y VISUAL, DOLOR DE CABEZA",
"prioridad": "media",
"puestosId": 1,
"fechaActualizacion": "2011-10-01T05:00:00.000Z",
"fechaCreacion": "2011-10-01T05:00:00.000Z"
},
"codigoEstado": 200
}Actualizar novedad
PUT /api/web/novedades/:novedadesId
Params:
Name
Type
Desc
novedadesId
Number
---
Body:
Name
Type
Desc
descripcion
string
minLength: 2
prioridad
string
'alta', 'media', 'baja'
fotoUrl
string
url
fecha
fecha
---
puestosId
Number
---
Request:
Response:
Eliminar novedad
DELETE /api/web/novedades/:novedadesId
Params:
Name
Type
Desc
novedadesId
Number
---
Response:
Obtener un novedad
GET /api/web/novedades/:novedadesId
Params:
Name
Type
Desc
novedadesId
Number
---
Response:
Obtener novedades por establecimiento
GET /api/web/novedades/establecimientos/:establecimientosId
Params:
Name
Type
Desc
establecimientosId
Number
---
Response:
Obtener novedades por area
GET /api/web/novedades/areas/:areasId
Params:
Name
Type
Desc
areasId
Number
---
Response:
Obtener novedades por puesto
GET /api/web/novedades/puestos/:puestosId
Params:
Name
Type
Desc
puestosId
Number
---
Response:
Last updated