{ "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": {} } }, { "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": {} } } ], "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=RCTO - Testamentos", "host": [ "{{BaseUrlV1}}administrativo" ], "path": [ "t_censec_qualidade", "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_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 - 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}", "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": "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": {}, "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", "// 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 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);" ] } }, { "listen": "test", "script": { "type": "text/javascript", "packages": {}, "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": "", "type": "default" } ] }