{ "info": { "_postman_id": "d2ecb854-ec81-425a-9531-d6179eb1ecea", "name": "Orius", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "32142370" }, "item": [ { "name": "Administrativo", "item": [ { "name": "Usuário", "item": [ { "name": "Login", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"BearerToken\", response.data.token);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"login\" : \"Kenio\",\r\n \"senha_api\": \"123123\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario/authenticate", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario", "authenticate" ] } }, "response": [] }, { "name": "All", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario" ] } }, "response": [] }, { "name": "Register", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"usuarioId\", response.data.usuario_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n\r\n \"trocarsenha\": \"S\",\r\n \"login\": \"{{login_aleatorio}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"nome_completo\": \"{{$randomFullName}}\",\r\n \"funcao\": \"Programador\",\r\n \"email\": \"{{$randomEmail}}\",\r\n \"cpf\": \"{{cpf_aleatorio}}\",\r\n \"senha_api\": \"123123\"\r\n}\r\n\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario" ] } }, "response": [] }, { "name": "Update", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"trocarsenha\": \"S\",\r\n \"login\": \"kenio\",\r\n \"situacao\": \"A\",\r\n \"nome_completo\": \"KENIO FODÃO DE SOUZA FODASTICO\",\r\n \"funcao\": \"Programador\",\r\n \"email\": \"graciele@outlook.com\",\r\n \"cpf\": \"89823702187\",\r\n \"senha_api\": \"123123\"\r\n}\r\n\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario/123527", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario", "123527" ] } }, "response": [] }, { "name": "Me", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario/me", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario", "me" ] } }, "response": [] }, { "name": "E-mail", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario/email?email=kenio@outlook.com", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario", "email" ], "query": [ { "key": "email", "value": "kenio@outlook.com" } ] } }, "response": [] }, { "name": "Login", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario/login?login=kenio", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario", "login" ], "query": [ { "key": "login", "value": "kenio" } ] } }, "response": [] }, { "name": "CPF", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario/cpf?cpf=833.845.451-68", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario", "cpf" ], "query": [ { "key": "cpf", "value": "833.845.451-68" } ] } }, "response": [] }, { "name": "Delete", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_usuario/{{usuarioId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_usuario", "{{usuarioId}}" ] } }, "response": [] } ] }, { "name": "Caixa", "item": [ { "name": "All", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_item", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_item" ] } }, "response": [] }, { "name": "Create", "event": [ { "listen": "prerequest", "script": { "exec": [ "\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"caixaItemId\", response.data.caixa_item_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"especie_pagamento\": \"D\",\r\n \"caixa_servico_id\": 2,\r\n \"usuario_servico_id\": 123456,\r\n \"usuario_caixa_id\": 123456,\r\n \"descricao\": \"{{$randomProductName}}\",\r\n \"data_pagamento\": \"2025-07-07 00:00:00.000\", \r\n \"situacao\": \"4\",\r\n \"tipo_documento\": \"C\",\r\n \"tipo_transacao\": \"C\",\r\n \"valor_servico\": {{$randomPrice}},\r\n \"valor_pago\": {{$randomPrice}},\r\n \"observacao\": \"{{$randomJobDescriptor}}\",\r\n \"hora_pagamento\": \"12:58\",\r\n \"tipo_servico\": \"25\",\r\n \"registrado\": \"3\"\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_item", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_item" ] } }, "response": [] }, { "name": "Update", "event": [ { "listen": "prerequest", "script": { "exec": [ "\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"caixaItemId\", response.data.caixa_item_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"especie_pagamento\": \"D\",\r\n \"usuario_servico_id\": 123456,\r\n \"usuario_caixa_id\": 123456,\r\n \"descricao\": \"{{$randomProductName}}\",\r\n \"data_pagamento\": \"2025-07-07 00:00:00.000\", \r\n \"situacao\": \"4\",\r\n \"tipo_documento\": \"C\",\r\n \"tipo_transacao\": \"C\",\r\n \"valor_servico\": {{$randomPrice}},\r\n \"valor_pago\": {{$randomPrice}},\r\n \"observacao\": \"{{$randomJobDescriptor}}\",\r\n \"hora_pagamento\": \"12:58\",\r\n \"tipo_servico\": \"25\",\r\n \"registrado\": \"3\"\r\n}\r\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_item/{{caixaItemId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_item", "{{caixaItemId}}" ] } }, "response": [] }, { "name": "Get", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "username", "value": "keven@softwiki.com.br", "type": "text" }, { "key": "password", "value": "123", "type": "text" } ] }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_item/{{caixaItemId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_item", "{{caixaItemId}}" ] } }, "response": [] }, { "name": "Delete", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "username", "value": "keven@softwiki.com.br", "type": "text" }, { "key": "password", "value": "123", "type": "text" } ] }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_item/{{caixaItemId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_item", "{{caixaItemId}}" ] } }, "response": [] } ] }, { "name": "Caixa Servico", "item": [ { "name": "All", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_servico", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_servico" ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_servico/6", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_servico", "6" ] } }, "response": [] }, { "name": "GET Descrição", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_servico/descricao?descricao=teste", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_servico", "descricao" ], "query": [ { "key": "descricao", "value": "teste" } ] } }, "response": [] }, { "name": "SAVE", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"caixaServicoId\", response.data.caixa_servico_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"tipo_transacao\": \"C\",\r\n\t\"sistema_id\": 9,\r\n\t\"situacao\": \"A\",\r\n\t\"interno_sistema\": \"S\",\r\n\t\"descricao\": \"{{$randomFullName}}\",\r\n\t\"emitir_relatorio\": \"S\",\r\n\t\"tipo_conta_carneleao\": \"\",\r\n\t\"centro_de_custa_id\": null,\r\n\t\"repetir_descricao\": \"N\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_servico", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_servico" ] } }, "response": [] }, { "name": "UPDATE", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n\t\"caixa_servico_id\": 10034,\r\n \"tipo_transacao\": \"C\",\r\n\t\"sistema_id\": 9,\r\n\t\"situacao\": \"A\",\r\n\t\"interno_sistema\": \"S\",\r\n\t\"descricao\": \"{{$randomFullName}}\",\r\n\t\"emitir_relatorio\": \"S\",\r\n\t\"tipo_conta_carneleao\": \"\",\r\n\t\"centro_de_custa_id\": null,\r\n\t\"repetir_descricao\": \"N\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_servico/10045", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_servico", "10045" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/c_caixa_servico/{{caixaServicoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "c_caixa_servico", "{{caixaServicoId}}" ] } }, "response": [] } ] }, { "name": "Reconhecimento Tipo", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_reconhecimentotipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_reconhecimentotipo" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tBeconhecimentoTipoId\", response.data.tb_reconhecimentotipo_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"tb_reconhecimentotipo_id\": 0,\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"D\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_reconhecimentotipo/", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_reconhecimentotipo", "" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_reconhecimentotipo/descricao?descricao=verdadeiro", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_reconhecimentotipo", "descricao" ], "query": [ { "key": "descricao", "value": "verdadeiro" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_reconhecimentotipo/3", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_reconhecimentotipo", "3" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"A\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_reconhecimentotipo/{{tBeconhecimentoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_reconhecimentotipo", "{{tBeconhecimentoTipoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"tb_reconhecimentotipo_id\": 4,\r\n \"descricao\": \"KENÃO FODÃO\",\r\n \"situacao\": \"A\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_reconhecimentotipo/{{tBeconhecimentoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_reconhecimentotipo", "{{tBeconhecimentoTipoId}}" ] } }, "response": [] } ] }, { "name": "Profissão", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_profissao", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_profissao" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tbProfissaoId\", response.data.tb_profissao_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"cod_cbo\": \"{{codCob}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_profissao", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_profissao" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_profissao/descricao?descricao=técnica em informática", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_profissao", "descricao" ], "query": [ { "key": "descricao", "value": "técnica em informática" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_profissao/25", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_profissao", "25" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"cod_cbo\": \"{{codCob}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_profissao/{{tbProfissaoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_profissao", "{{tbProfissaoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_profissao/{{tbProfissaoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_profissao", "{{tbProfissaoId}}" ] } }, "response": [] } ] }, { "name": "Regime Comunhão", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimecomunhao", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimecomunhao" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tbRegimeComunhaoId\", response.data.tb_regimecomunhao_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"{{$randomCommonFileName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"tb_regimebens_id\": {{regime}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimecomunhao", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimecomunhao" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimecomunhao/descricao?descricao=separacão total de bens", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimecomunhao", "descricao" ], "query": [ { "key": "descricao", "value": "separacão total de bens" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimecomunhao/{{tbRegimeComunhaoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimecomunhao", "{{tbRegimeComunhaoId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"{{$randomCommonFileName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"tb_regimebens_id\": {{regime}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimecomunhao/{{tbRegimeComunhaoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimecomunhao", "{{tbRegimeComunhaoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimecomunhao/{{tbRegimeComunhaoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimecomunhao", "{{tbRegimeComunhaoId}}" ] } }, "response": [] } ] }, { "name": "Regime Bens", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimebens", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimebens" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tbRegimeBensId\", response.data.tb_regimebens_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimebens", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimebens" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimebens/descricao?descricao=Julio Will", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimebens", "descricao" ], "query": [ { "key": "descricao", "value": "Julio Will" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimebens/{{tbRegimeBensId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimebens", "{{tbRegimeBensId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimebens/{{tbRegimeBensId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimebens", "{{tbRegimeBensId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_regimebens/{{tbRegimeBensId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_regimebens", "{{tbRegimeBensId}}" ] } }, "response": [] } ] }, { "name": "CENSEC", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"censecId\", response.data.censec_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec/descricao?descricao=RCTO - Testamentos", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec", "descricao" ], "query": [ { "key": "descricao", "value": "RCTO - Testamentos" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec/{{censecId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec", "{{censecId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec/{{censecId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec", "{{censecId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec/{{censecId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec", "{{censecId}}" ] } }, "response": [] } ] }, { "name": "CENSEC - Qualidade", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_qualidade" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"censecQualidadeId\", response.data.censec_qualidade_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"aceita_cnpj\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_qualidade" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/descricao?descricao=OUTORGANTE", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_qualidade", "descricao" ], "query": [ { "key": "descricao", "value": "OUTORGANTE" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/{{censecQualidadeId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_qualidade", "{{censecQualidadeId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"aceita_cnpj\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/{{censecQualidadeId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_qualidade", "{{censecQualidadeId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/{{censecQualidadeId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_qualidade", "{{censecQualidadeId}}" ] } }, "response": [] } ] }, { "name": "CENSEC - Bairro", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_bairro" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tbBairroId\", response.data.tb_bairro_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_bairro" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/descricao?descricao=BAIRRO PRIMAVERA II", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_bairro", "descricao" ], "query": [ { "key": "descricao", "value": "BAIRRO PRIMAVERA II" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/{{tbBairroId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_bairro", "{{tbBairroId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/{{tbBairroId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_bairro", "{{tbBairroId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/{{tbBairroId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_bairro", "{{tbBairroId}}" ] } }, "response": [] } ] }, { "name": "CENSEC - Natureza Litigio", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_naturezalitigio", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_naturezalitigio" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"censecNaturezaLitigioId\", response.data.censec_naturezalitigio_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_naturezalitigio", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_naturezalitigio" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_naturezalitigio/descricao?descricao=Telefonia", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_naturezalitigio", "descricao" ], "query": [ { "key": "descricao", "value": "Telefonia" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_naturezalitigio/{{censecNaturezaLitigioId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_naturezalitigio", "{{censecNaturezaLitigioId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_naturezalitigio/{{censecNaturezaLitigioId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_naturezalitigio", "{{censecNaturezaLitigioId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_censec_naturezalitigio/{{censecNaturezaLitigioId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_naturezalitigio", "{{censecNaturezaLitigioId}}" ] } }, "response": [] } ] }, { "name": "Modelo Grupo", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_txmodelogrupo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_txmodelogrupo" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tbTxmodelogrupoId\", response.data.tb_txmodelogrupo_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"situacao_id\": {{$randomInt}},\r\n \"onr_tipo_logradouro_id\": {{$randomInt}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_txmodelogrupo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_txmodelogrupo" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_txmodelogrupo/descricao?descricao=eu", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_txmodelogrupo", "descricao" ], "query": [ { "key": "descricao", "value": "eu" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_txmodelogrupo/{{tbTxmodelogrupoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_txmodelogrupo", "{{tbTxmodelogrupoId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_txmodelogrupo/{{tbTxmodelogrupoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_txmodelogrupo", "{{tbTxmodelogrupoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_txmodelogrupo/{{tbTxmodelogrupoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_txmodelogrupo", "{{tbTxmodelogrupoId}}" ] } }, "response": [] } ] }, { "name": "Estado civil", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_estadocivil", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_estadocivil" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tBestadoCivilId\", response.data.tb_estadocivil_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"tipo\": {{$randomInt}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_estadocivil", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_estadocivil" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_estadocivil/descricao?descricao=Separado(a)", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_estadocivil", "descricao" ], "query": [ { "key": "descricao", "value": "Separado(a)" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_estadocivil/{{tBestadoCivilId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_estadocivil", "{{tBestadoCivilId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"tipo\": {{$randomInt}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_estadocivil/{{tBestadoCivilId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_estadocivil", "{{tBestadoCivilId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_estadocivil/{{tBestadoCivilId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_estadocivil", "{{tBestadoCivilId}}" ] } }, "response": [] } ] }, { "name": "Tipo logradouro", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_tipologradouro" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"gTbTipoLogradouroId\", response.data.tb_tipologradouro_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"situacao_id\": {{$randomInt}},\r\n \"onr_tipo_logradouro_id\": {{onrTipoLogradouroId}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_tipologradouro" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "urlencoded", "urlencoded": [] }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro/descricao?descricao=Sítios", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_tipologradouro", "descricao" ], "query": [ { "key": "descricao", "value": "Sítios" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro/{{gTbTipoLogradouroId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_tipologradouro", "{{gTbTipoLogradouroId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"situacao_id\": {{$randomInt}},\r\n \"onr_tipo_logradouro_id\": {{onrTipoLogradouroId}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro/{{gTbTipoLogradouroId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_tipologradouro", "{{gTbTipoLogradouroId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro/{{gTbTipoLogradouroId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_tipologradouro", "{{gTbTipoLogradouroId}}" ] } }, "response": [] } ] }, { "name": "Medida tipo", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_medida_tipo" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"medidaTipoId\", response.data.medida_tipo_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"sigla\": \"{{login_aleatorio}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_medida_tipo" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/descricao?descricao=Braça", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_medida_tipo", "descricao" ], "query": [ { "key": "descricao", "value": "Braça" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/{{medidaTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_medida_tipo", "{{medidaTipoId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"sigla\": \"{{login_aleatorio}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/{{medidaTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_medida_tipo", "{{medidaTipoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/{{medidaTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_medida_tipo", "{{medidaTipoId}}" ] } }, "response": [] } ] }, { "name": "Minutas", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_minuta", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_minuta" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"minutaId\", response.data.minuta_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"ato_tipo_id\": {{AtoTipoId}},\r\n \"natureza_id\": {{AtoTipoId}},\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3Mgc3RhbmRhcmQgZHVtbXkgdGV4dCBldmVyIHNpbmNlIHRoZSAxNTAwcywgd2hlbiBhbiB1bmtub3duIHByaW50ZXIgdG9vayBhIGdhbGxleSBvZiB0eXBlIGFuZCBzY3JhbWJsZWQgaXQgdG8gbWFrZSBhIHR5cGUgc3BlY2ltZW4gYm9vay4gSXQgaGFzIHN1cnZpdmVkIG5vdCBvbmx5IGZpdmUgY2VudHVyaWVzLCBidXQgYWxzbyB0aGUgbGVhcCBpbnRvIGVsZWN0cm9uaWMgdHlwZXNldHRpbmcsIHJlbWFpbmluZyBlc3NlbnRpYWxseSB1bmNoYW5nZWQuIEl0IHdhcyBwb3B1bGFyaXNlZCBpbiB0aGUgMTk2MHMgd2l0aCB0aGUgcmVsZWFzZSBvZiBMZXRyYXNldCBzaGVldHMgY29udGFpbmluZyBMb3JlbSBJcHN1bSBwYXNzYWdlcywgYW5kIG1vcmUgcmVjZW50bHkgd2l0aCBkZXNrdG9wIHB1Ymxpc2hpbmcgc29mdHdhcmUgbGlrZSBBbGR1cyBQYWdlTWFrZXIgaW5jbHVkaW5nIHZlcnNpb25zIG9mIExvcmVtIElwc3VtLg==\",\r\n \"protegida\": \"{{useEmail}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_minuta", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_minuta" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_minuta/descricao?descricao=PROCURAÇÃO AD JUDICIA", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_minuta", "descricao" ], "query": [ { "key": "descricao", "value": "PROCURAÇÃO AD JUDICIA" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_minuta/{{minutaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_minuta", "{{minutaId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"sigla\": \"{{login_aleatorio}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_minuta/{{minutaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_minuta", "{{minutaId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_minuta/{{minutaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_minuta", "{{minutaId}}" ] } }, "response": [] } ] }, { "name": "Documento tipo", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_documentotipo" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tBdocumentotipoId\", response.data.tb_documentotipo_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3Mgc3RhbmRhcmQgZHVtbXkgdGV4dCBldmVyIHNpbmNlIHRoZSAxNTAwcywgd2hlbiBhbiB1bmtub3duIHByaW50ZXIgdG9vayBhIGdhbGxleSBvZiB0eXBlIGFuZCBzY3JhbWJsZWQgaXQgdG8gbWFrZSBhIHR5cGUgc3BlY2ltZW4gYm9vay4gSXQgaGFzIHN1cnZpdmVkIG5vdCBvbmx5IGZpdmUgY2VudHVyaWVzLCBidXQgYWxzbyB0aGUgbGVhcCBpbnRvIGVsZWN0cm9uaWMgdHlwZXNldHRpbmcsIHJlbWFpbmluZyBlc3NlbnRpYWxseSB1bmNoYW5nZWQuIEl0IHdhcyBwb3B1bGFyaXNlZCBpbiB0aGUgMTk2MHMgd2l0aCB0aGUgcmVsZWFzZSBvZiBMZXRyYXNldCBzaGVldHMgY29udGFpbmluZyBMb3JlbSBJcHN1bSBwYXNzYWdlcywgYW5kIG1vcmUgcmVjZW50bHkgd2l0aCBkZXNrdG9wIHB1Ymxpc2hpbmcgc29mdHdhcmUgbGlrZSBBbGR1cyBQYWdlTWFrZXIgaW5jbHVkaW5nIHZlcnNpb25zIG9mIExvcmVtIElwc3VtLg==\",\r\n \"situacao\": \"{{status}}\",\r\n \"possui_numeracao\": \"{{useEmail}}\",\r\n \"orgao_padrao\": \"SSPGO\",\r\n \"descricao_simplificada\": \"CNH\",\r\n \"tipo\": \"{{$randomFullName}}\",\r\n \"descricao_sinter\": \"{{$randomFullName}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_documentotipo" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/descricao?descricao=E-TÍTULO", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_documentotipo", "descricao" ], "query": [ { "key": "descricao", "value": "E-TÍTULO" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/{{tBdocumentotipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_documentotipo", "{{tBdocumentotipoId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3Mgc3RhbmRhcmQgZHVtbXkgdGV4dCBldmVyIHNpbmNlIHRoZSAxNTAwcywgd2hlbiBhbiB1bmtub3duIHByaW50ZXIgdG9vayBhIGdhbGxleSBvZiB0eXBlIGFuZCBzY3JhbWJsZWQgaXQgdG8gbWFrZSBhIHR5cGUgc3BlY2ltZW4gYm9vay4gSXQgaGFzIHN1cnZpdmVkIG5vdCBvbmx5IGZpdmUgY2VudHVyaWVzLCBidXQgYWxzbyB0aGUgbGVhcCBpbnRvIGVsZWN0cm9uaWMgdHlwZXNldHRpbmcsIHJlbWFpbmluZyBlc3NlbnRpYWxseSB1bmNoYW5nZWQuIEl0IHdhcyBwb3B1bGFyaXNlZCBpbiB0aGUgMTk2MHMgd2l0aCB0aGUgcmVsZWFzZSBvZiBMZXRyYXNldCBzaGVldHMgY29udGFpbmluZyBMb3JlbSBJcHN1bSBwYXNzYWdlcywgYW5kIG1vcmUgcmVjZW50bHkgd2l0aCBkZXNrdG9wIHB1Ymxpc2hpbmcgc29mdHdhcmUgbGlrZSBBbGR1cyBQYWdlTWFrZXIgaW5jbHVkaW5nIHZlcnNpb25zIG9mIExvcmVtIElwc3VtLg==\",\r\n \"situacao\": \"{{status}}\",\r\n \"possui_numeracao\": \"{{useEmail}}\",\r\n \"orgao_padrao\": \"SSPGO\",\r\n \"descricao_simplificada\": \"CNH\",\r\n \"tipo\": \"{{$randomFullName}}\",\r\n \"descricao_sinter\": \"{{$randomFullName}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/{{tBdocumentotipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_documentotipo", "{{tBdocumentotipoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/{{tBdocumentotipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_tb_documentotipo", "{{tBdocumentotipoId}}" ] } }, "response": [] } ] }, { "name": "Natureza", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_natureza", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_natureza" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"naturezaId\", response.data.natureza_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"pedir_numero_imovel\": \"{{useEmail}}\",\r\n \"controle_frenteverso\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_natureza", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_natureza" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_natureza/descricao?descricao=ÓBITO", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_natureza", "descricao" ], "query": [ { "key": "descricao", "value": "ÓBITO" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_natureza/{{naturezaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_natureza", "{{naturezaId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"pedir_numero_imovel\": \"{{useEmail}}\",\r\n \"controle_frenteverso\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_natureza/{{naturezaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_natureza", "{{naturezaId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_natureza/{{naturezaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_natureza", "{{naturezaId}}" ] } }, "response": [] } ] }, { "name": "Cidades", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_cidade", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_cidade" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"cidadeId\", response.data.cidade_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"uf\": \"{{estadoUF}}\",\r\n \"cidade_nome\": \"{{$randomFullName}}\",\r\n \"codigo_ibge\": \"{{onrTipoLogradouroId}}\",\r\n \"codigo_gyn\": \"{{onrTipoLogradouroId}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_cidade", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_cidade" ] } }, "response": [] }, { "name": "GET NOME", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_cidade/nome?cidade_nome=TUPIRAMA", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_cidade", "nome" ], "query": [ { "key": "cidade_nome", "value": "TUPIRAMA" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_cidade/{{cidadeId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_cidade", "{{cidadeId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"uf\": \"{{estadoUF}}\",\r\n \"cidade_nome\": \"{{$randomFullName}}\",\r\n \"codigo_ibge\": \"{{onrTipoLogradouroId}}\",\r\n \"codigo_gyn\": \"{{onrTipoLogradouroId}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_cidade/{{cidadeId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_cidade", "{{cidadeId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_cidade/{{cidadeId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_cidade", "{{cidadeId}}" ] } }, "response": [] } ] }, { "name": "Tipo Serviço", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_tipo" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"servicoTipoId\", response.data.servico_tipo_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"valor\": {{valorMonetario}},\r\n \"tipo_item\": \"{{tipoItem}}\",\r\n \"requer_autorizacao\": \"{{useEmail}}\",\r\n \"requer_biometria\": \"{{useEmail}}\",\r\n \"tipo_pessoa\": \"{{tipoPessoa}}\",\r\n \"tb_reconhecimentotipo_id\": {{reconhecimentoTipoid}},\r\n \"tipo_permissao_cpf\": \"{{useEmail}}\",\r\n \"requer_abonador\": \"{{useEmail}}\",\r\n \"requer_representante\": \"{{useEmail}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"requer_cpf\": \"{{useEmail}}\",\r\n \"servico_padrao\": \"{{useEmail}}\",\r\n \"maximo_pessoa\": 3,\r\n \"alterar_valor\": \"{{useEmail}}\",\r\n \"servico_caixa_id\": 0,\r\n \"lancar_taxa\": \"{{useEmail}}\",\r\n \"lancar_fundesp\": \"{{useEmail}}\",\r\n \"liberar_desconto\": \"{{useEmail}}\",\r\n \"fundesp_automatica\": \"{{useEmail}}\",\r\n \"lancar_valor_documento\": \"{{useEmail}}\",\r\n \"valor_fixo\": \"{{useEmail}}\",\r\n \"emolumento_id\": null,\r\n \"ato_praticado\": \"{{useEmail}}\",\r\n \"selar\": \"{{useEmail}}\",\r\n \"frenteverso\": \"{{useEmail}}\",\r\n \"pagina_acrescida\": \"{{useEmail}}\",\r\n \"emolumento_obrigatorio\": {{valorMonetario}},\r\n \"apresentante_selo\": \"{{useEmail}}\",\r\n \"renovacao_cartao\": \"{{useEmail}}\",\r\n \"etiqueta_unica\": \"{{useEmail}}\",\r\n \"transferencia_veiculo\": \"{{useEmail}}\",\r\n \"usar_a4\": \"{{useEmail}}\",\r\n \"averbacao\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_tipo" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/descricao?descricao=CERTIDÃO", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_tipo", "descricao" ], "query": [ { "key": "descricao", "value": "CERTIDÃO" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/{{servicoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_tipo", "{{servicoTipoId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"valor\": {{valorMonetario}},\r\n \"tipo_item\": \"{{tipoItem}}\",\r\n \"requer_autorizacao\": \"{{useEmail}}\",\r\n \"requer_biometria\": \"{{useEmail}}\",\r\n \"tipo_pessoa\": \"{{tipoPessoa}}\",\r\n \"tb_reconhecimentotipo_id\": {{reconhecimentoTipoid}},\r\n \"tipo_permissao_cpf\": \"{{useEmail}}\",\r\n \"requer_abonador\": \"{{useEmail}}\",\r\n \"requer_representante\": \"{{useEmail}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"requer_cpf\": \"{{useEmail}}\",\r\n \"servico_padrao\": \"{{useEmail}}\",\r\n \"maximo_pessoa\": 3,\r\n \"alterar_valor\": \"{{useEmail}}\",\r\n \"servico_caixa_id\": 0,\r\n \"lancar_taxa\": \"{{useEmail}}\",\r\n \"lancar_fundesp\": \"{{useEmail}}\",\r\n \"liberar_desconto\": \"{{useEmail}}\",\r\n \"fundesp_automatica\": \"{{useEmail}}\",\r\n \"lancar_valor_documento\": \"{{useEmail}}\",\r\n \"valor_fixo\": \"{{useEmail}}\",\r\n \"emolumento_id\": null,\r\n \"ato_praticado\": \"{{useEmail}}\",\r\n \"selar\": \"{{useEmail}}\",\r\n \"frenteverso\": \"{{useEmail}}\",\r\n \"pagina_acrescida\": \"{{useEmail}}\",\r\n \"emolumento_obrigatorio\": {{valorMonetario}},\r\n \"apresentante_selo\": \"{{useEmail}}\",\r\n \"renovacao_cartao\": \"{{useEmail}}\",\r\n \"etiqueta_unica\": \"{{useEmail}}\",\r\n \"transferencia_veiculo\": \"{{useEmail}}\",\r\n \"usar_a4\": \"{{useEmail}}\",\r\n \"averbacao\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/{{servicoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_tipo", "{{servicoTipoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/{{servicoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_tipo", "{{servicoTipoId}}" ] } }, "response": [] } ] }, { "name": "Serviço etiqueta", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_etiqueta" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"servicoEtiquetaId\", response.data.servico_etiqueta_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"etiqueta_modelo_id\": {{etiquetaModeloId}},\r\n \"servico_tipo_id\": {{servicoTipoid}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_etiqueta" ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta/{{servicoEtiquetaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_etiqueta", "{{servicoEtiquetaId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"etiqueta_modelo_id\": {{etiquetaModeloId}},\r\n \"servico_tipo_id\": {{servicoTipoid}}\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta/{{servicoEtiquetaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_etiqueta", "{{servicoEtiquetaId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta/{{servicoEtiquetaId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_servico_etiqueta", "{{servicoEtiquetaId}}" ] } }, "response": [] } ] }, { "name": "Marcação tipo", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_marcacao_tipo" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"marcacaoTipoId\", response.data.marcacao_tipo_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"nome\": \"{{$randomFullName}}\",\r\n \"grupo\": \"{{grupo}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"grupo_tipo\": \"{{grupoTipo}}\",\r\n \"tipo_qualificacao\": \"{{tipoQualificacao}}\",\r\n \"condicao_sql\": \"{{condicaoSqlList}}\",\r\n \"separador_1\": \"{{separador}}\",\r\n \"separador_2\": \"{{separador}}\",\r\n \"separador_3\": \"{{separador}}\",\r\n \"tipo_valor\": \"{{tipoValor}}\",\r\n \"atualizar\": \"{{useEmail}}\",\r\n \"protegida\": \"{{useEmail}}\",\r\n \"ativar_separador\": \"{{useEmail}}\",\r\n \"sql_completo\": \"{{$randomFullName}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_marcacao_tipo" ] } }, "response": [] }, { "name": "GET DESCRIÇÃO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/descricao?descricao=Livro Protocolo", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_marcacao_tipo", "descricao" ], "query": [ { "key": "descricao", "value": "Livro Protocolo" } ] } }, "response": [] }, { "name": "GET GRUPO", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/grupo?grupo=MODELO_ETIQUETA&sistema_id=2&situacao=A", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_marcacao_tipo", "grupo" ], "query": [ { "key": "grupo", "value": "MODELO_ETIQUETA" }, { "key": "sistema_id", "value": "2" }, { "key": "situacao", "value": "A" } ] } }, "response": [] }, { "name": "GET ID", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/{{marcacaoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_marcacao_tipo", "{{marcacaoTipoId}}" ] } }, "response": [] }, { "name": "PUT", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"nome\": \"{{$randomFullName}}\",\r\n \"grupo\": \"{{grupo}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"grupo_tipo\": \"{{grupoTipo}}\",\r\n \"tipo_qualificacao\": \"{{tipoQualificacao}}\",\r\n \"condicao_sql\": \"{{condicaoSqlList}}\",\r\n \"separador_1\": \"{{separador}}\",\r\n \"separador_2\": \"{{separador}}\",\r\n \"separador_3\": \"{{separador}}\",\r\n \"tipo_valor\": \"{{tipoValor}}\",\r\n \"atualizar\": \"{{useEmail}}\",\r\n \"protegida\": \"{{useEmail}}\",\r\n \"ativar_separador\": \"{{useEmail}}\",\r\n \"sql_completo\": \"{{$randomFullName}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/{{marcacaoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_marcacao_tipo", "{{marcacaoTipoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/{{marcacaoTipoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_marcacao_tipo", "{{marcacaoTipoId}}" ] } }, "response": [] } ] }, { "name": "Estados", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_uf", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_uf" ] } }, "response": [] } ] }, { "name": "Emolumentos", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {}, "requests": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/g_emolumento/1", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "g_emolumento", "1" ] } }, "response": [] } ] }, { "name": "Andamento Serviço", "item": [ { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_andamentoservico", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_andamentoservico" ] } }, "response": [] }, { "name": "POST", "event": [ { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "// Salvando em variáveis da *collection*\r", "pm.collectionVariables.set(\"tbAndamentoServicoId\", response.data.tb_andamentoservico_id);\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"tb_andamentoservico_id\": 0,\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"tipo\": \"{{type}}\",\r\n \"usa_email\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_andamentoservico/", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_andamentoservico", "" ] } }, "response": [] }, { "name": "UPDATE", "event": [ { "listen": "prerequest", "script": { "exec": [ "\r", "" ], "type": "text/javascript", "packages": {} } }, { "listen": "test", "script": { "exec": [ "const response = pm.response.json();\r", "\r", "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"tipo\": \"{{type}}\",\r\n \"usa_email\": \"{{useEmail}}\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_andamentoservico/{{tbAndamentoServicoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_andamentoservico", "{{tbAndamentoServicoId}}" ] } }, "response": [] }, { "name": "GET", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "username", "value": "keven@softwiki.com.br", "type": "text" }, { "key": "password", "value": "123", "type": "text" } ] }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_andamentoservico/{{tbAndamentoServicoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_andamentoservico", "{{tbAndamentoServicoId}}" ] } }, "response": [] }, { "name": "DELETE", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Status code é 201 ou 200\", function () {\r", " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", "});\r", "\r", "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", "});\r", "\r", "pm.test(\"Mensagem indica sucesso\", function () {\r", " const jsonData = pm.response.json();\r", " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", "});\r", "" ], "type": "text/javascript", "packages": {} } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{BearerToken}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "username", "value": "keven@softwiki.com.br", "type": "text" }, { "key": "password", "value": "123", "type": "text" } ] }, "url": { "raw": "{{BaseUrlV1}}administrativo/t_tb_andamentoservico/{{tbAndamentoServicoId}}", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_tb_andamentoservico", "{{tbAndamentoServicoId}}" ] } }, "response": [] } ] } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "packages": {}, "requests": {}, "exec": [ "// Lista de valores possíveis\r", "const statusList = [\"A\", \"I\"];\r", "\r", "// Escolhe um valor aleatório\r", "const randomStatus = statusList[Math.floor(Math.random() * statusList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"status\", randomStatus);\r", "\r", "\r", "// Lista de valores possíveis\r", "const typeList = [\"G\", \"C\"];\r", "\r", "// Escolhe um valor aleatório\r", "const randomTypes = typeList[Math.floor(Math.random() * typeList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"type\", randomTypes);\r", "\r", "\r", "\r", "\r", "// Lista de valores possíveis\r", "const emailUseList = [\"S\", \"N\"];\r", "\r", "// Escolhe um valor aleatório\r", "const randomUseEmail = emailUseList[Math.floor(Math.random() * emailUseList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"useEmail\", randomUseEmail);\r", "\r", "\r", "\r", "\r", "// Lista de valores possíveis\r", "const tipoPessoaList = [\"F\", \"J\"];\r", "\r", "// Escolhe um valor aleatório\r", "const randomTipoPessoaList = tipoPessoaList[Math.floor(Math.random() * tipoPessoaList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"tipoPessoa\", randomTipoPessoaList);\r", "\r", "\r", "\r", "\r", "// Lista de valores possíveis\r", "const reconhecimentoTipoList = [1,2,3,4,5];\r", "\r", "// Escolhe um valor aleatório\r", "const randomReconhecimentoTipoList = reconhecimentoTipoList[Math.floor(Math.random() * reconhecimentoTipoList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"reconhecimentoTipoid\", randomReconhecimentoTipoList);\r", "\r", "\r", "\r", "\r", "// Lista de valores possíveis\r", "const tipoItemList = [\"A\", \"C\", \"G\", \"R\"];\r", "\r", "// Escolhe um valor aleatório\r", "const randomTipoItemList = tipoItemList[Math.floor(Math.random() * tipoItemList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"tipoItem\", randomTipoItemList);\r", "\r", "\r", "\r", "\r", "// Lista de valores possíveis\r", "const cboList = [\"-2\", \"15\", \"3\", \"34\"];\r", "\r", "// Escolhe um valor aleatório\r", "const randomCbo = cboList[Math.floor(Math.random() * cboList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"codCob\", randomCbo);\r", "\r", "\r", "\r", "// Função para gerar números aleatórios entre 0 e 9\r", "function randomDigit() {\r", " return Math.floor(Math.random() * 10);\r", "}\r", "\r", "// Função para calcular o dígito verificador do CPF\r", "function calculateCPFVerifier(digits) {\r", " let sum = 0;\r", " for (let i = 0; i < digits.length; i++) {\r", " sum += digits[i] * (digits.length + 1 - i);\r", " }\r", " let remainder = sum % 11;\r", " return remainder < 2 ? 0 : 11 - remainder;\r", "}\r", "\r", "// Função para gerar um CPF aleatório válido\r", "function generateCPF() {\r", " let digits = [];\r", " // Gera os 9 primeiros dígitos\r", " for (let i = 0; i < 9; i++) {\r", " digits.push(randomDigit());\r", " }\r", "\r", " // Calcula o primeiro dígito verificador\r", " digits.push(calculateCPFVerifier(digits));\r", "\r", " // Calcula o segundo dígito verificador\r", " digits.push(calculateCPFVerifier(digits));\r", "\r", " return digits.join('');\r", "}\r", "\r", "// Gera o CPF\r", "let cpf = generateCPF();\r", "\r", "// Salva o CPF em uma variável de ambiente do Postman\r", "pm.environment.set(\"cpf_aleatorio\", cpf);\r", "\r", "// Log para debug\r", "//console.log(\"CPF gerado:\", cpf);\r", "\r", "\r", "\r", "// Função para gerar um caractere aleatório\r", "function randomChar() {\r", " const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';\r", " return chars.charAt(Math.floor(Math.random() * chars.length));\r", "}\r", "\r", "// Função para gerar login com tamanho definido\r", "function generateLogin(length = 8) {\r", " let login = '';\r", " for (let i = 0; i < length; i++) {\r", " login += randomChar();\r", " }\r", " return login;\r", "}\r", "\r", "// Gera o login aleatório\r", "let loginAleatorio = generateLogin(10); // por exemplo, login com 10 caracteres\r", "\r", "// Salva em variável de ambiente do Postman\r", "pm.environment.set(\"login_aleatorio\", loginAleatorio);\r", "\r", "// Log para debug\r", "//console.log(\"Login gerado:\", loginAleatorio);\r", "\r", "\r", "// Lista de valores possíveis\r", "const regimeList = [1 ,2 , 3, 4];\r", "\r", "// Escolhe um valor aleatório\r", "const randomRegime = regimeList[Math.floor(Math.random() * regimeList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"regime\", randomRegime);\r", "\r", "\r", "\r", "// Lista de valores possíveis\r", "const sistemaIdList = [1, 2, 5, 7, 12, 13];\r", "\r", "// Escolhe um valor aleatório\r", "const randomSistemaID = sistemaIdList[Math.floor(Math.random() * sistemaIdList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"sistemaId\", randomSistemaID);\r", "\r", "\r", "\r", "\r", "// Lista de valores possíveis\r", "const onrTipoLogradouroList = [311, 310, 1, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 307, 306, 305, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 309, 308];\r", "\r", "// Escolhe um valor aleatório\r", "const randOnrTipoLogradouroId = onrTipoLogradouroList[Math.floor(Math.random() * onrTipoLogradouroList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"onrTipoLogradouroId\", randOnrTipoLogradouroId);\r", "\r", "\r", "// Lista de valores possíveis\r", "const atoTipoId = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];\r", "\r", "// Escolhe um valor aleatório\r", "const randAtoTipoId = atoTipoId[Math.floor(Math.random() * atoTipoId.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"AtoTipoId\", randAtoTipoId);\r", "\r", "\r", "// Lista de UFs dos estados brasileiros\r", "const estadosUF = [\r", " \"AC\", \"AL\", \"AP\", \"AM\", \"BA\", \"CE\", \"DF\", \"ES\",\r", " \"GO\", \"MA\", \"MT\", \"MS\", \"MG\", \"PA\", \"PB\", \"PR\",\r", " \"PE\", \"PI\", \"RJ\", \"RN\", \"RS\", \"RO\", \"RR\", \"SC\",\r", " \"SP\", \"SE\", \"TO\"\r", "];\r", "\r", "// Escolhe uma UF aleatória\r", "const randEstadoUF = estadosUF[Math.floor(Math.random() * estadosUF.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"estadoUF\", randEstadoUF);\r", "\r", "\r", "// Lista de grupos\r", "const grupoList = [\"QUALIFICACAO\", \"GLOBAL\", \"FINALIZACAO\", \"MODELO_ETIQUETA\", \"MARCACAO_CARIMBO\", \"PESSOA\", \"ETIQUETA_DADOS\", \"ETIQUETA_MARCACAO\", \"DOCUMENTO\", \"CARIMBO\"];\r", "\r", "// Escolhe uma UF aleatória\r", "const randGrupoList = grupoList[Math.floor(Math.random() * grupoList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"grupo\", randGrupoList);\r", "\r", "\r", "\r", "// Lista de grupos tipos\r", "const grupoTipoList = [\"V\", \"M\", \"Q\"];\r", "\r", "// Escolhe uma UF aleatória\r", "const randGrupoTipoList = grupoTipoList[Math.floor(Math.random() * grupoTipoList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"grupoTipo\", randGrupoTipoList);\r", "\r", "\r", "\r", "\r", "// Lista de tipo qualificação\r", "const tipoQualificacaoList = [\"TD\", \"ST\", \"IM\", \"PJ\", \"PS\", \"PC\"];\r", "\r", "// Escolhe uma UF aleatória\r", "const randTipoQualificacaoList = tipoQualificacaoList[Math.floor(Math.random() * tipoQualificacaoList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"tipoQualificacao\", randTipoQualificacaoList);\r", "\r", "\r", "\r", "\r", "// Lista de tipo condição sql\r", "const condicaoSqlList = [\"T=Traslado*L=Livro*\", \"S=, já falecido*N=*\", \"S=, já falecida*N=*\", \"R=Rural*L=Lote*C=Condomínio\", \"R=Rural*L=Lote*C=Condomínio\", \"N=Não*S=Sim*\", \"AV=AV*M=M*R=R* =Reg nº*\", \"M=Matrícula*T=Transcrição*A=Reg. Auxiliar\"];\r", "\r", "// Escolhe uma UF aleatória\r", "const randCondicaoSqlList = condicaoSqlList[Math.floor(Math.random() * condicaoSqlList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"condicaoSqlList\", randCondicaoSqlList);\r", "\r", "\r", "\r", "\r", "// Lista de separador\r", "const separadorList = [\",\", \";\", \":\", \"e\", \"; e\"];\r", "\r", "// Escolhe uma UF aleatória\r", "const randSeparadorList = separadorList[Math.floor(Math.random() * separadorList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"separador\", randSeparadorList);\r", "\r", "\r", "\r", "\r", "// Lista de tipo valor\r", "const tipoValorList = [\"L\", \"F\", \"T\", \"C\", \"R\"];\r", "\r", "// Escolhe uma UF aleatória\r", "const randTipoValorList = tipoValorList[Math.floor(Math.random() * tipoValorList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"tipoValor\", randTipoValorList);\r", "\r", "\r", "\r", "\r", "// Gera um número aleatório entre 10 e 500 (pode ajustar os limites)\r", "let randomMoney = (Math.random() * (500 - 10) + 10).toFixed(2);\r", "\r", "// Salva na variável de ambiente/coleção \"valorMonetario\"\r", "pm.environment.set(\"valorMonetario\", randomMoney);\r", "\r", "\r", "\r", "// Gera número aleatório entre 3 e 101\r", "let randomNumber = Math.floor(Math.random() * (101 - 3 + 1)) + 3;\r", "\r", "// Armazena em variável do ambiente\r", "pm.environment.set(\"randomNumber\", randomNumber);\r", "\r", "\r", "\r", "// Lista de tipo valor\r", "const etiquetaModeloIdList = [1066,1112,1144,1160,49,71];\r", "\r", "// Escolhe uma UF aleatória\r", "const randEtiquetaModeloIdList = etiquetaModeloIdList[Math.floor(Math.random() * etiquetaModeloIdList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"etiquetaModeloId\", randEtiquetaModeloIdList);\r", "\r", "\r", "\r", "// Lista de tipo valor\r", "const servicoTipoIdList = [3,51,57,74,98,95,72];\r", "\r", "// Escolhe uma UF aleatória\r", "const randServicoTipoIdList = servicoTipoIdList[Math.floor(Math.random() * servicoTipoIdList.length)];\r", "\r", "// Armazena como variável da collection\r", "pm.collectionVariables.set(\"servicoTipoid\", randServicoTipoIdList);" ] } }, { "listen": "test", "script": { "type": "text/javascript", "packages": {}, "requests": {}, "exec": [ "" ] } } ], "variable": [ { "key": "BaseUrlV1", "value": "http://localhost:8000/api/v1/" }, { "key": "BearerToken", "value": "" }, { "key": "caixaItemId", "value": "" }, { "key": "caixaServicoId", "value": "" }, { "key": "description", "value": "" }, { "key": "tBeconhecimentoTipoId", "value": "" }, { "key": "status", "value": "" }, { "key": "type", "value": "" }, { "key": "useEmail", "value": "" }, { "key": "tbAndamentoServicoId", "value": "" }, { "key": "codCob", "value": "" }, { "key": "tbProfissaoId", "value": "" }, { "key": "usuarioId", "value": "" }, { "key": "cpf_aleatorio", "value": "" }, { "key": "login_aleatorio", "value": "" }, { "key": "regime", "value": "" }, { "key": "tbRegimeComunhaoId", "value": "" }, { "key": "tbTxmodelogrupoId", "value": "" }, { "key": "sistemaId", "value": "" }, { "key": "tbRegimeBensId", "value": "" }, { "key": "censecId", "value": "" }, { "key": "censecNaturezaLitigioId", "value": "" }, { "key": "censecQualidadeId", "value": "" }, { "key": "tbBairroId", "value": "" }, { "key": "gTbTipoLogradouroId", "value": "" }, { "key": "onrTipoLogradouroId", "value": "" }, { "key": "tBestadoCivilid", "value": "" }, { "key": "tBestadoCivilId", "value": "" }, { "key": "medidaTipoId", "value": "" }, { "key": "AtoTipoId", "value": "" }, { "key": "minutaId", "value": "" }, { "key": "tBdocumentotipoId", "value": "" }, { "key": "naturezaId", "value": "" }, { "key": "estadoUF", "value": "" }, { "key": "cidadeId", "value": "" }, { "key": "tipoItem", "value": "" }, { "key": "valorMonetario", "value": "" }, { "key": "tipoPessoa", "value": "" }, { "key": "reconhecimentoTipoid", "value": "" }, { "key": "servicoTipoId", "value": "" }, { "key": "grupo", "value": "" }, { "key": "tipoQualificacao", "value": "" }, { "key": "condicaoSqlList", "value": "" }, { "key": "separador", "value": "" }, { "key": "grupoTipo", "value": "" }, { "key": "tipoValor", "value": "" }, { "key": "marcacaoTipoId", "value": "" }, { "key": "servicoEtiquetaId", "value": "" }, { "key": "randomNumber", "value": "" }, { "key": "etiquetaModeloId", "value": "" }, { "key": "servicoTipoid", "value": "" } ] }