{"info":{"_postman_id":"627c8ea9-3cdb-4a6f-b2da-4361f154383b","name":"Infovist Integration API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Inspection","item":[{"name":"Show","id":"1b018e65-f775-4b76-8ae8-07be093cd0d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf90640","description":"Buscar inspeção via integração entre APIs por número do protocolo"},"response":[{"id":"0b7ead04-c9c0-4d12-ac73-2b46dda3cbfb","name":"Show - 200 - OK","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf90640"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"Date","value":"Thu, 30 Jan 2020 12:35:49 GMT"},{"key":"ETag","value":"\"898c824871067189ba27beb99c2579864ad7ca28\""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"protocol\": \"7bf90640\",\n        \"statuses\": [\n            {\n                \"value\": \"Aguardando Envio\",\n                \"created_at\": \"2020-01-29 18:22:42\"\n            },\n            {\n                \"value\": \"Enviado\",\n                \"created_at\": \"2020-01-29 18:22:43\"\n            }\n        ]\n    },\n    \"status_code\": 200\n}"},{"id":"c5096790-a402-4c91-a10c-bd646f504dd1","name":"Show - 422 - Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"157980532mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf90640"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:35:01 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"api_token\": [\n            \"Chave da API deve ter no mínimo 14 caracteres.\"\n        ]\n    },\n    \"status_code\": 422\n}"},{"id":"f02aa102-4aff-4cc1-a717-e6b91c034ab3","name":"Show - 422 (2) - Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"1579805332mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf90640"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:35:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"api_token\": [\n            \"O Chave da API selecionado é inválido.\"\n        ]\n    },\n    \"status_code\": 422\n}"},{"id":"fb4075f6-5dba-43b8-8e4b-318ba0a78f29","name":"Show - 404","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf9040"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:34:32 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Requisição inválida.\",\n    \"status_code\": 404\n}"}],"_postman_id":"1b018e65-f775-4b76-8ae8-07be093cd0d0"},{"name":"Create","id":"79f8f262-2d89-4042-bb48-d71a0d60dc7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"customer\":\"John Doe\",\n\t\"cellphone\":\"44999999999\",\n\t\"plate\": \"AAA1234\",\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_homolg}}/v1/inspection","description":"Criar nova inspeção via integração entre APIs"},"response":[{"id":"8c290510-a053-4ce5-8e66-effff2199df0","name":"Create - 422 (2) - Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"customer\":\"John Doe\",\n\t\"cellphone\":\"4499999999\",\n\t\"plate\": \"AAA234\",\n\t\"api_token\": \"15798052323hiF\"\n}"},"url":"{{url_localhost}}/v1/inspection"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:33:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"plate\": [\n            \"Placa deve ter no mínimo 7 caracteres.\"\n        ],\n        \"cellphone\": [\n            \"Celular deve ter entre 11 e 11 dígitos.\"\n        ],\n        \"api_token\": [\n            \"O Chave da API selecionado é inválido.\"\n        ]\n    },\n    \"status_code\": 422\n}"},{"id":"9106fe8e-b463-452d-98de-f80142a14960","name":"Create - 422 - Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\n}"},"url":"{{url_localhost}}/v1/inspection"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:32:40 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"customer\": [\n            \"O campo nome do cliente é obrigatório.\"\n        ],\n        \"plate\": [\n            \"O campo placa é obrigatório.\"\n        ],\n        \"cellphone\": [\n            \"O campo celular é obrigatório.\"\n        ],\n        \"api_token\": [\n            \"O campo Chave da API é obrigatório.\"\n        ]\n    },\n    \"status_code\": 422\n}"},{"id":"9875bf2b-0693-4a64-b3d8-c73e189c8afd","name":"Create - 200 - OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"customer\":\"John Doe\",\n\t\"cellphone\":\"44999999999\",\n\t\"plate\": \"AAA1234\",\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"Date","value":"Thu, 30 Jan 2020 12:31:59 GMT"},{"key":"ETag","value":"\"84d86a51743f851bacaf3efb243150f733db8aca\""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"protocol\": \"815b77a0\"\n    },\n    \"status_code\": 200\n}"}],"_postman_id":"79f8f262-2d89-4042-bb48-d71a0d60dc7e"}],"id":"0c8a9f30-967b-49c5-87e7-03ecbc4ce453","description":"### As URLs para utilização são:\n\n### Em Homologação:\n`homolog-api.infovist.com.br`\n\n### Em Produção:\n`api.infovist.com.br`","_postman_id":"0c8a9f30-967b-49c5-87e7-03ecbc4ce453"},{"name":"Inspection Playground","item":[{"name":"Show","id":"54004589-7051-45a0-a588-482b1950a533","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"15791067083163\"\n}"},"url":"{{url_homolog}}/playground/inspection/pgchvssbGt","description":"Buscar inspeção via integração entre APIs por número do protocolo"},"response":[{"id":"0ed9405f-8936-46f3-9732-431113372c1b","name":"Show - 422 (2) - Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"1579805332mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf90640"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:35:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"api_token\": [\n            \"O Chave da API selecionado é inválido.\"\n        ]\n    },\n    \"status_code\": 422\n}"},{"id":"31ee9d14-bfc2-4915-b28d-2dfb2849e115","name":"Show - 404","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf9040"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:34:32 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Requisição inválida.\",\n    \"status_code\": 404\n}"},{"id":"5b0eb3ab-2343-4b76-9f04-289edaf2bf7a","name":"Show - 200 - OK","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf90640"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"Date","value":"Thu, 30 Jan 2020 12:35:49 GMT"},{"key":"ETag","value":"\"898c824871067189ba27beb99c2579864ad7ca28\""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"protocol\": \"7bf90640\",\n        \"statuses\": [\n            {\n                \"value\": \"Aguardando Envio\",\n                \"created_at\": \"2020-01-29 18:22:42\"\n            },\n            {\n                \"value\": \"Enviado\",\n                \"created_at\": \"2020-01-29 18:22:43\"\n            }\n        ]\n    },\n    \"status_code\": 200\n}"},{"id":"7107adb7-8ce4-4da0-a68a-d010510805ce","name":"Show - 422 - Error","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"api_token\": \"157980532mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection/7bf90640"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:35:01 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"api_token\": [\n            \"Chave da API deve ter no mínimo 14 caracteres.\"\n        ]\n    },\n    \"status_code\": 422\n}"}],"_postman_id":"54004589-7051-45a0-a588-482b1950a533"},{"name":"Create","id":"f6933e00-0636-405b-8c1f-0006cd6bf0a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"customer\":\"John Doe\",\n\t\"cellphone\":\"44999190322\",\n\t\"plate\": \"AAA1234\",\n\t\"api_token\": \"15791067083163\"\n}"},"url":"{{url_homolog}}/playground/inspection","description":"Criar nova inspeção via integração entre APIs"},"response":[{"id":"23b22bde-3bea-48e2-bcd7-cdfd8c99c772","name":"Create - 422 - Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\n}"},"url":"{{url_localhost}}/v1/inspection"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:32:40 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"customer\": [\n            \"O campo nome do cliente é obrigatório.\"\n        ],\n        \"plate\": [\n            \"O campo placa é obrigatório.\"\n        ],\n        \"cellphone\": [\n            \"O campo celular é obrigatório.\"\n        ],\n        \"api_token\": [\n            \"O campo Chave da API é obrigatório.\"\n        ]\n    },\n    \"status_code\": 422\n}"},{"id":"3136aadf-2be6-4487-aa9a-7c7e3807ca32","name":"Create - 422 (2) - Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"customer\":\"John Doe\",\n\t\"cellphone\":\"4499999999\",\n\t\"plate\": \"AAA234\",\n\t\"api_token\": \"15798052323hiF\"\n}"},"url":"{{url_localhost}}/v1/inspection"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Thu, 30 Jan 2020 12:33:30 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The given data was invalid.\",\n    \"errors\": {\n        \"plate\": [\n            \"Placa deve ter no mínimo 7 caracteres.\"\n        ],\n        \"cellphone\": [\n            \"Celular deve ter entre 11 e 11 dígitos.\"\n        ],\n        \"api_token\": [\n            \"O Chave da API selecionado é inválido.\"\n        ]\n    },\n    \"status_code\": 422\n}"},{"id":"83bb8679-d93a-431d-b332-f283bde80c29","name":"Create - 200 - OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"customer\":\"John Doe\",\n\t\"cellphone\":\"44999999999\",\n\t\"plate\": \"AAA1234\",\n\t\"api_token\": \"1579805232mhiF\"\n}"},"url":"{{url_localhost}}/v1/inspection"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.15.12"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/7.2.26"},{"key":"Cache-Control","value":"private, must-revalidate"},{"key":"Date","value":"Thu, 30 Jan 2020 12:31:59 GMT"},{"key":"ETag","value":"\"84d86a51743f851bacaf3efb243150f733db8aca\""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"protocol\": \"815b77a0\"\n    },\n    \"status_code\": 200\n}"}],"_postman_id":"f6933e00-0636-405b-8c1f-0006cd6bf0a2"}],"id":"287197a8-aaa6-46ca-a085-fcf823f13144","_postman_id":"287197a8-aaa6-46ca-a085-fcf823f13144"}]}