{"info":{"_postman_id":"bd2e2fed-dd78-44ca-ba60-0b439fce913b","name":"API HRDATA","description":"<html><head></head><body><p>Esta API se encarga de obtener los records de los relojes que exportan para Control Horario u otros sistemas mediante un json.</p>\n<p>La API Contiene 2 endpoints una de lectura y la otra es de eliminacion, ambos endpoint tienen los mismos parametros con las mismas validaciones.</p>\n<p>Se agrego un token de seguridad: En el Header agregar en el campo Key \"Authorization\" y en value el codigo proporcionado por el implementador.</p>\n<p>\"From\" y \"To\"(Obligatorio): Desde hasta son las fechas principales para traer los records en un periodo especifico.</p>\n<p>devID (Opcional): el id del dispositivo en el caso de no necesitar filtrar por esta variable dejar en comillas vacio. Ver ejemplos.</p>\n<p>empID (Opcional) es el Legajo del Empleado en el caso de no necesitar filtrar por esta variable dejar en comillas vacio. Ver ejemplos</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"30630521","collectionId":"bd2e2fed-dd78-44ca-ba60-0b439fce913b","publishedId":"2s9YRB1Wjy","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-19T18:46:41.000Z"},"item":[{"name":"getRecord","event":[{"listen":"test","script":{"id":"5e2dcb29-a8b9-4ab2-82b8-82bbf3d5848a","exec":[""],"type":"text/javascript"}}],"id":"2acb2c41-4068-4ed5-9650-7a9f8d2d5918","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2023-09-23 00:01\",\n    \"to\": \"2023-09-30 15:10\",\n    \"devId\": \"\",\n    \"empId\": \"\"\n}"},"url":"{{baseurl}}/rec","description":"<p>Endpoint para consulta de registros de HRProcess Accesos</p>\n<ul>\n<li><code>from</code>: {string} Formato DATE (Y-m-d). <strong>requerido</strong>.</li>\n<li><code>to</code>: {string} Formato DATE (Y-m-d). <strong>requerido</strong></li>\n<li><code>devId</code>: {string} Formato: texto. Maxlength :5</li>\n<li><code>empId</code>: {Long} Formato: numerico.</li>\n</ul>\n","urlObject":{"path":["rec"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[{"id":"178d320d-8517-4aa4-a97a-f02ccd81e411","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-12-01 00:01\",\n    \"to\": \"2022-12-30 23:59\",\n    \"devId\": \"23\",\n    \"empId\": \"851\"\n}"},"url":"{{baseurl}}/rec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 23 Oct 2023 14:10:44 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"date\": \"2022-12-02 20:55\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-05 04:58\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-06 04:57\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-07 04:54\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-12 12:56\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-13 12:56\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-19 20:57\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-21 20:57\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-22 20:57\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-23 20:52\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-27 04:56\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        },\n        {\n            \"date\": \"2022-12-30 04:59\",\n            \"devId\": \"23\",\n            \"empId\": 851,\n            \"code\": 991\n        }\n    ],\n    \"message\": \"\",\n    \"count\": 12\n}"},{"id":"325961c3-4d88-4872-9574-faea287cf55b","name":"200 OK count>200000","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-01-01 00:00\",\n    \"to\": \"2022-12-30 23:59\",\n    \"devId\": \"\",\n    \"empId\": \"\"\n}"},"url":"{{baseurl}}/rec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 23 Oct 2023 14:02:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [],\n    \"message\": \"Se han encontrado más de 200000 registros. Consulta Anulada\",\n    \"count\": 497270\n}"},{"id":"1bde375e-cf0a-4384-893d-1c595b883d92","name":"400 Bad Request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-01-01 00:00\",\n    \"to\": \"2022-12-30 23:59\",\n    \"devId\": \"\",\n    \"empId\": \"-1\"\n}"},"url":"{{baseurl}}/rec"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"32"},{"key":"Date","value":"Mon, 23 Oct 2023 14:04:38 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"El legajo tiene que ser positivo"},{"id":"58bd1f58-fd16-4d5f-8ac0-9081389c46ac","name":"400 Bad Request  devId max 5 length","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-12-01 00:00\",\n    \"to\": \"2022-12-30 23:59\",\n    \"devId\": \"123456\",\n    \"empId\": \"\"\n}"},"url":"{{baseurl}}/rec"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"48"},{"key":"Date","value":"Mon, 23 Oct 2023 14:12:13 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"deviceID tiene un registro superior al permitido"},{"id":"4373ca98-6d35-4f37-b622-acf3234328c1","name":"400 Bad Request from>to","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-12-31 00:00\",\n    \"to\": \"2022-12-30 23:59\",\n    \"devId\": \"\",\n    \"empId\": \"\"\n}"},"url":"{{baseurl}}/rec"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"55"},{"key":"Date","value":"Mon, 23 Oct 2023 14:23:33 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"La fecha 'from' no puede ser posterior a la fecha 'to'."},{"id":"36f79b57-c77e-41a0-a2dd-1b3f95e24186","name":"400 Bad Request: Date Validation Failed for 'From' and 'To' Dates","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-54-31\",\n    \"to\": \"2022-12-30\",\n    \"devId\": \"\",\n    \"empId\": \"\"\n}"},"url":"{{baseurl}}/rec"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"60"},{"key":"Date","value":"Mon, 23 Oct 2023 14:28:17 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Fecha en formato incorrecto. Se esperaba 'yyyy-MM-dd HH:mm'."}],"_postman_id":"2acb2c41-4068-4ed5-9650-7a9f8d2d5918"},{"name":"deleteRecord","event":[{"listen":"test","script":{"id":"5e2dcb29-a8b9-4ab2-82b8-82bbf3d5848a","exec":[""],"type":"text/javascript"}}],"id":"fa667505-f789-4402-8aba-7713a3c00548","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-12-30\",\n    \"to\": \"2022-12-30\",\n    \"devId\": \"\",\n    \"empId\": \"\"\n}"},"url":"{{baseurl}}/del","description":"<p>Endpoint para eliminacion de registros.</p>\n<ul>\n<li><code>from</code>: {string} Formato DATE (Y-m-d). <strong>requerido</strong>.</li>\n<li><code>to</code>: {string} Formato DATE (Y-m-d). <strong>requerido</strong></li>\n<li><code>devId</code>: {string} Formato: numerico. Maxlength :5</li>\n<li><code>empId</code>: {Long} Formato: numerico.</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{token}}"}]},"isInherited":true,"source":{"_postman_id":"bd2e2fed-dd78-44ca-ba60-0b439fce913b","id":"bd2e2fed-dd78-44ca-ba60-0b439fce913b","name":"API HRDATA","type":"collection"}},"urlObject":{"path":["del"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[{"id":"4dc9744f-5000-4f1c-b53c-a58e19191662","name":"200 OK","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\": \"2022-12-30 00:00\",\n    \"to\": \"2022-12-30 23:59\",\n    \"devId\": \"25\",\n    \"empId\": \"413\"\n}"},"url":"{{baseurl}}/del"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"26"},{"key":"Date","value":"Mon, 23 Oct 2023 15:11:29 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":" Se eliminaron 1 Registros"}],"_postman_id":"fa667505-f789-4402-8aba-7713a3c00548"}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"Authorization"},{"key":"value","value":"{{token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"00b59595-5e2d-485b-8725-1ab3525c4cf1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"56e01606-60c6-487e-a69a-325317bd3e71","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://farming-simulator.pstmn.io","disabled":true}]}