Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Criação de entrada
- POST /api/v1.0/workforce-entry
- CORPO:
- {
- "personId": 1,
- "dateTime": "2017-12-29T20:37:00.000Z",
- "direction": "IN",
- "workforceSystemId": 1,
- "type": "WORK_PERIOD"
- }
- Criação de saída
- POST /api/v1.0/workforce-entry
- CORPO:
- {
- "personId": 1,
- "dateTime": "2017-12-29T20:40:00.000Z",
- "direction": "OUT",
- "workforceSystemId": 1,
- "type": "WORK_PERIOD"
- }
- Busca por pessoa e período
- GET /api/v1.0/workforce-entry?personId=1&startDate=2017-12-01T20:46:10Z&endDate=2018-12-30T20:46:10Z
- CORPO: vazio
- RESPOSTA:
- {
- "endpoint": "http://localhost:8080/api/v1.0/workforce-entry",
- "query": {
- "personId": 1,
- "startDate": 1513889170,
- "endDate": 1514666770
- },
- "data": [
- {
- "id": 9,
- "personId": 1,
- "personDeviceIdentifier": "director",
- "dateTime": "2017-12-29T18:40:00-0200",
- "direction": "OUT",
- "workforceSystemId": 1,
- "workforceSystemName": "SISTEMA_PONTO",
- "type": "WORK_PERIOD"
- },
- {
- "id": 8,
- "personId": 1,
- "personDeviceIdentifier": "director",
- "dateTime": "2017-12-29T18:37:00-0200",
- "direction": "IN",
- "workforceSystemId": 1,
- "workforceSystemName": "SISTEMA_PONTO",
- "type": "WORK_PERIOD"
- }
- ]
- }
- DELEÇÃO DE ENTRADA
- DELETE /api/v1.0/workforce-entry/{id}
- CORPO: vazio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement