Advertisement
marcelopaixaoresende

Untitled

Jan 2nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Criação de entrada
  2. POST /api/v1.0/workforce-entry
  3. CORPO:
  4. {
  5. "personId": 1,
  6. "dateTime": "2017-12-29T20:37:00.000Z",
  7. "direction": "IN",
  8. "workforceSystemId": 1,
  9. "type": "WORK_PERIOD"
  10. }
  11.  
  12. Criação de saída
  13. POST /api/v1.0/workforce-entry
  14. CORPO:
  15. {
  16. "personId": 1,
  17. "dateTime": "2017-12-29T20:40:00.000Z",
  18. "direction": "OUT",
  19. "workforceSystemId": 1,
  20. "type": "WORK_PERIOD"
  21. }
  22.  
  23. Busca por pessoa e período
  24. GET /api/v1.0/workforce-entry?personId=1&startDate=2017-12-01T20:46:10Z&endDate=2018-12-30T20:46:10Z
  25. CORPO: vazio
  26. RESPOSTA:
  27. {
  28. "endpoint": "http://localhost:8080/api/v1.0/workforce-entry",
  29. "query": {
  30. "personId": 1,
  31. "startDate": 1513889170,
  32. "endDate": 1514666770
  33. },
  34. "data": [
  35. {
  36. "id": 9,
  37. "personId": 1,
  38. "personDeviceIdentifier": "director",
  39. "dateTime": "2017-12-29T18:40:00-0200",
  40. "direction": "OUT",
  41. "workforceSystemId": 1,
  42. "workforceSystemName": "SISTEMA_PONTO",
  43. "type": "WORK_PERIOD"
  44. },
  45. {
  46. "id": 8,
  47. "personId": 1,
  48. "personDeviceIdentifier": "director",
  49. "dateTime": "2017-12-29T18:37:00-0200",
  50. "direction": "IN",
  51. "workforceSystemId": 1,
  52. "workforceSystemName": "SISTEMA_PONTO",
  53. "type": "WORK_PERIOD"
  54. }
  55. ]
  56. }
  57.  
  58. DELEÇÃO DE ENTRADA
  59. DELETE /api/v1.0/workforce-entry/{id}
  60. CORPO: vazio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement