From b449227d0735eeaddeb34e365118db04b7bc8aaf Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Wed, 1 Oct 2025 17:02:16 -0300 Subject: [PATCH] [MVPTN-16] feat(CRUD): Gerado CRUD completo para as seguintes tabelas: t_servico_tipo, g_marcacao_tipo, t_servico_etiqueta --- Orius.postman_collection.json | 4100 ++++++++++++++++++++++++++------- packages/v1/api.py | 9 +- 2 files changed, 3334 insertions(+), 775 deletions(-) diff --git a/Orius.postman_collection.json b/Orius.postman_collection.json index 39be31e..899d6eb 100644 --- a/Orius.postman_collection.json +++ b/Orius.postman_collection.json @@ -22,7 +22,8 @@ "" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } }, { @@ -49,7 +50,8 @@ "});" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -68,7 +70,7 @@ "header": [], "body": { "mode": "raw", - "raw": "{\r\n \"login\" : \"Kenio\",\r\n \"senha_api\": \"123123\"\r\n}", + "raw": "{\r\n \"login\" : \"Kenio0\",\r\n \"senha_api\": \"123123\"\r\n}", "options": { "raw": { "language": "json" @@ -3791,758 +3793,6 @@ } ] }, - { - "name": "CENSEC - Qualidade", - "item": [ - { - "name": "GET", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "t_censec_qualidade" - ] - } - }, - "response": [] - }, - { - "name": "POST", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "const response = pm.response.json();\r", - "\r", - "// Salvando em variáveis da *collection*\r", - "pm.collectionVariables.set(\"censecQualidadeId\", response.data.censec_qualidade_id);\r", - "\r", - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - }, - { - "listen": "prerequest", - "script": { - "exec": [ - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"aceita_cnpj\": \"{{useEmail}}\"\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "t_censec_qualidade" - ] - } - }, - "response": [] - }, - { - "name": "GET DESCRIÇÃO", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "body": { - "mode": "urlencoded", - "urlencoded": [] - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/descricao?descricao=OUTORGANTE", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "t_censec_qualidade", - "descricao" - ], - "query": [ - { - "key": "descricao", - "value": "OUTORGANTE" - } - ] - } - }, - "response": [] - }, - { - "name": "GET ID", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/{{censecQualidadeId}}", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "t_censec_qualidade", - "{{censecQualidadeId}}" - ] - } - }, - "response": [] - }, - { - "name": "PUT", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"aceita_cnpj\": \"{{useEmail}}\"\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/{{censecQualidadeId}}", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "t_censec_qualidade", - "{{censecQualidadeId}}" - ] - } - }, - "response": [] - }, - { - "name": "DELETE", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/t_censec_qualidade/{{censecQualidadeId}}", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "t_censec_qualidade", - "{{censecQualidadeId}}" - ] - } - }, - "response": [] - } - ] - }, - { - "name": "CENSEC - Bairro", - "item": [ - { - "name": "GET", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "g_tb_bairro" - ] - } - }, - "response": [] - }, - { - "name": "POST", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "const response = pm.response.json();\r", - "\r", - "// Salvando em variáveis da *collection*\r", - "pm.collectionVariables.set(\"tbBairroId\", response.data.tb_bairro_id);\r", - "\r", - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - }, - { - "listen": "prerequest", - "script": { - "exec": [ - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}}\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "g_tb_bairro" - ] - } - }, - "response": [] - }, - { - "name": "GET DESCRIÇÃO", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "protocolProfileBehavior": { - "disableBodyPruning": true - }, - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "body": { - "mode": "urlencoded", - "urlencoded": [] - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/descricao?descricao=BAIRRO PRIMAVERA II", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "g_tb_bairro", - "descricao" - ], - "query": [ - { - "key": "descricao", - "value": "BAIRRO PRIMAVERA II" - } - ] - } - }, - "response": [] - }, - { - "name": "GET ID", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/{{tbBairroId}}", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "g_tb_bairro", - "{{tbBairroId}}" - ] - } - }, - "response": [] - }, - { - "name": "PUT", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "PUT", - "header": [], - "body": { - "mode": "raw", - "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}}\r\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/{{tbBairroId}}", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "g_tb_bairro", - "{{tbBairroId}}" - ] - } - }, - "response": [] - }, - { - "name": "DELETE", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code é 201 ou 200\", function () {\r", - " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", - "});\r", - "\r", - "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", - "});\r", - "\r", - "pm.test(\"Mensagem indica sucesso\", function () {\r", - " const jsonData = pm.response.json();\r", - " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", - "});\r", - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{BearerToken}}", - "type": "string" - } - ] - }, - "method": "DELETE", - "header": [], - "body": { - "mode": "raw", - "raw": "", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{BaseUrlV1}}administrativo/g_tb_bairro/{{tbBairroId}}", - "host": [ - "{{BaseUrlV1}}administrativo" - ], - "path": [ - "g_tb_bairro", - "{{tbBairroId}}" - ] - } - }, - "response": [] - } - ] - }, { "name": "CENSEC - Bairro", "item": [ @@ -6213,7 +5463,8 @@ "" ], "type": "text/javascript", - "packages": {} + "packages": {}, + "requests": {} } } ], @@ -6238,7 +5489,7 @@ "urlencoded": [] }, "url": { - "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro/descricao?descricao=eu", + "raw": "{{BaseUrlV1}}administrativo/g_tb_tipologradouro/descricao?descricao=Sítios", "host": [ "{{BaseUrlV1}}administrativo" ], @@ -6249,7 +5500,7 @@ "query": [ { "key": "descricao", - "value": "eu" + "value": "Sítios" } ] } @@ -6435,6 +5686,3061 @@ } ] }, + { + "name": "Medida tipo", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_medida_tipo" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"medidaTipoId\", response.data.medida_tipo_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"sigla\": \"{{login_aleatorio}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_medida_tipo" + ] + } + }, + "response": [] + }, + { + "name": "GET DESCRIÇÃO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/descricao?descricao=Braça", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_medida_tipo", + "descricao" + ], + "query": [ + { + "key": "descricao", + "value": "Braça" + } + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/{{medidaTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_medida_tipo", + "{{medidaTipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"sigla\": \"{{login_aleatorio}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/{{medidaTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_medida_tipo", + "{{medidaTipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_medida_tipo/{{medidaTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_medida_tipo", + "{{medidaTipoId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Minutas", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_minuta", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_minuta" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"minutaId\", response.data.minuta_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"ato_tipo_id\": {{AtoTipoId}},\r\n \"natureza_id\": {{AtoTipoId}},\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3Mgc3RhbmRhcmQgZHVtbXkgdGV4dCBldmVyIHNpbmNlIHRoZSAxNTAwcywgd2hlbiBhbiB1bmtub3duIHByaW50ZXIgdG9vayBhIGdhbGxleSBvZiB0eXBlIGFuZCBzY3JhbWJsZWQgaXQgdG8gbWFrZSBhIHR5cGUgc3BlY2ltZW4gYm9vay4gSXQgaGFzIHN1cnZpdmVkIG5vdCBvbmx5IGZpdmUgY2VudHVyaWVzLCBidXQgYWxzbyB0aGUgbGVhcCBpbnRvIGVsZWN0cm9uaWMgdHlwZXNldHRpbmcsIHJlbWFpbmluZyBlc3NlbnRpYWxseSB1bmNoYW5nZWQuIEl0IHdhcyBwb3B1bGFyaXNlZCBpbiB0aGUgMTk2MHMgd2l0aCB0aGUgcmVsZWFzZSBvZiBMZXRyYXNldCBzaGVldHMgY29udGFpbmluZyBMb3JlbSBJcHN1bSBwYXNzYWdlcywgYW5kIG1vcmUgcmVjZW50bHkgd2l0aCBkZXNrdG9wIHB1Ymxpc2hpbmcgc29mdHdhcmUgbGlrZSBBbGR1cyBQYWdlTWFrZXIgaW5jbHVkaW5nIHZlcnNpb25zIG9mIExvcmVtIElwc3VtLg==\",\r\n \"protegida\": \"{{useEmail}}\",\r\n \"situacao\": \"{{status}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_minuta", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_minuta" + ] + } + }, + "response": [] + }, + { + "name": "GET DESCRIÇÃO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_minuta/descricao?descricao=PROCURAÇÃO AD JUDICIA", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_minuta", + "descricao" + ], + "query": [ + { + "key": "descricao", + "value": "PROCURAÇÃO AD JUDICIA" + } + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_minuta/{{minutaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_minuta", + "{{minutaId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"sigla\": \"{{login_aleatorio}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_minuta/{{minutaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_minuta", + "{{minutaId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_minuta/{{minutaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_minuta", + "{{minutaId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Documento tipo", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_tb_documentotipo" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"tBdocumentotipoId\", response.data.tb_documentotipo_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3Mgc3RhbmRhcmQgZHVtbXkgdGV4dCBldmVyIHNpbmNlIHRoZSAxNTAwcywgd2hlbiBhbiB1bmtub3duIHByaW50ZXIgdG9vayBhIGdhbGxleSBvZiB0eXBlIGFuZCBzY3JhbWJsZWQgaXQgdG8gbWFrZSBhIHR5cGUgc3BlY2ltZW4gYm9vay4gSXQgaGFzIHN1cnZpdmVkIG5vdCBvbmx5IGZpdmUgY2VudHVyaWVzLCBidXQgYWxzbyB0aGUgbGVhcCBpbnRvIGVsZWN0cm9uaWMgdHlwZXNldHRpbmcsIHJlbWFpbmluZyBlc3NlbnRpYWxseSB1bmNoYW5nZWQuIEl0IHdhcyBwb3B1bGFyaXNlZCBpbiB0aGUgMTk2MHMgd2l0aCB0aGUgcmVsZWFzZSBvZiBMZXRyYXNldCBzaGVldHMgY29udGFpbmluZyBMb3JlbSBJcHN1bSBwYXNzYWdlcywgYW5kIG1vcmUgcmVjZW50bHkgd2l0aCBkZXNrdG9wIHB1Ymxpc2hpbmcgc29mdHdhcmUgbGlrZSBBbGR1cyBQYWdlTWFrZXIgaW5jbHVkaW5nIHZlcnNpb25zIG9mIExvcmVtIElwc3VtLg==\",\r\n \"situacao\": \"{{status}}\",\r\n \"possui_numeracao\": \"{{useEmail}}\",\r\n \"orgao_padrao\": \"SSPGO\",\r\n \"descricao_simplificada\": \"CNH\",\r\n \"tipo\": \"{{$randomFullName}}\",\r\n \"descricao_sinter\": \"{{$randomFullName}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_tb_documentotipo" + ] + } + }, + "response": [] + }, + { + "name": "GET DESCRIÇÃO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/descricao?descricao=E-TÍTULO", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_tb_documentotipo", + "descricao" + ], + "query": [ + { + "key": "descricao", + "value": "E-TÍTULO" + } + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/{{tBdocumentotipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_tb_documentotipo", + "{{tBdocumentotipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"texto\": \"TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3Mgc3RhbmRhcmQgZHVtbXkgdGV4dCBldmVyIHNpbmNlIHRoZSAxNTAwcywgd2hlbiBhbiB1bmtub3duIHByaW50ZXIgdG9vayBhIGdhbGxleSBvZiB0eXBlIGFuZCBzY3JhbWJsZWQgaXQgdG8gbWFrZSBhIHR5cGUgc3BlY2ltZW4gYm9vay4gSXQgaGFzIHN1cnZpdmVkIG5vdCBvbmx5IGZpdmUgY2VudHVyaWVzLCBidXQgYWxzbyB0aGUgbGVhcCBpbnRvIGVsZWN0cm9uaWMgdHlwZXNldHRpbmcsIHJlbWFpbmluZyBlc3NlbnRpYWxseSB1bmNoYW5nZWQuIEl0IHdhcyBwb3B1bGFyaXNlZCBpbiB0aGUgMTk2MHMgd2l0aCB0aGUgcmVsZWFzZSBvZiBMZXRyYXNldCBzaGVldHMgY29udGFpbmluZyBMb3JlbSBJcHN1bSBwYXNzYWdlcywgYW5kIG1vcmUgcmVjZW50bHkgd2l0aCBkZXNrdG9wIHB1Ymxpc2hpbmcgc29mdHdhcmUgbGlrZSBBbGR1cyBQYWdlTWFrZXIgaW5jbHVkaW5nIHZlcnNpb25zIG9mIExvcmVtIElwc3VtLg==\",\r\n \"situacao\": \"{{status}}\",\r\n \"possui_numeracao\": \"{{useEmail}}\",\r\n \"orgao_padrao\": \"SSPGO\",\r\n \"descricao_simplificada\": \"CNH\",\r\n \"tipo\": \"{{$randomFullName}}\",\r\n \"descricao_sinter\": \"{{$randomFullName}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/{{tBdocumentotipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_tb_documentotipo", + "{{tBdocumentotipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_tb_documentotipo/{{tBdocumentotipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_tb_documentotipo", + "{{tBdocumentotipoId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Natureza", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_natureza", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_natureza" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"naturezaId\", response.data.natureza_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"pedir_numero_imovel\": \"{{useEmail}}\",\r\n \"controle_frenteverso\": \"{{useEmail}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_natureza", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_natureza" + ] + } + }, + "response": [] + }, + { + "name": "GET DESCRIÇÃO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_natureza/descricao?descricao=ÓBITO", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_natureza", + "descricao" + ], + "query": [ + { + "key": "descricao", + "value": "ÓBITO" + } + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_natureza/{{naturezaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_natureza", + "{{naturezaId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"pedir_numero_imovel\": \"{{useEmail}}\",\r\n \"controle_frenteverso\": \"{{useEmail}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_natureza/{{naturezaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_natureza", + "{{naturezaId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_natureza/{{naturezaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_natureza", + "{{naturezaId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Cidades", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_cidade", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_cidade" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"cidadeId\", response.data.cidade_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"uf\": \"{{estadoUF}}\",\r\n \"cidade_nome\": \"{{$randomFullName}}\",\r\n \"codigo_ibge\": \"{{onrTipoLogradouroId}}\",\r\n \"codigo_gyn\": \"{{onrTipoLogradouroId}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_cidade", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_cidade" + ] + } + }, + "response": [] + }, + { + "name": "GET NOME", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_cidade/nome?cidade_nome=TUPIRAMA", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_cidade", + "nome" + ], + "query": [ + { + "key": "cidade_nome", + "value": "TUPIRAMA" + } + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_cidade/{{cidadeId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_cidade", + "{{cidadeId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"uf\": \"{{estadoUF}}\",\r\n \"cidade_nome\": \"{{$randomFullName}}\",\r\n \"codigo_ibge\": \"{{onrTipoLogradouroId}}\",\r\n \"codigo_gyn\": \"{{onrTipoLogradouroId}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_cidade/{{cidadeId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_cidade", + "{{cidadeId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_cidade/{{cidadeId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_cidade", + "{{cidadeId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Tipo Serviço", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_tipo" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"servicoTipoId\", response.data.servico_tipo_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"valor\": {{valorMonetario}},\r\n \"tipo_item\": \"{{tipoItem}}\",\r\n \"requer_autorizacao\": \"{{useEmail}}\",\r\n \"requer_biometria\": \"{{useEmail}}\",\r\n \"tipo_pessoa\": \"{{tipoPessoa}}\",\r\n \"tb_reconhecimentotipo_id\": {{reconhecimentoTipoid}},\r\n \"tipo_permissao_cpf\": \"{{useEmail}}\",\r\n \"requer_abonador\": \"{{useEmail}}\",\r\n \"requer_representante\": \"{{useEmail}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"requer_cpf\": \"{{useEmail}}\",\r\n \"servico_padrao\": \"{{useEmail}}\",\r\n \"maximo_pessoa\": 3,\r\n \"alterar_valor\": \"{{useEmail}}\",\r\n \"servico_caixa_id\": 0,\r\n \"lancar_taxa\": \"{{useEmail}}\",\r\n \"lancar_fundesp\": \"{{useEmail}}\",\r\n \"liberar_desconto\": \"{{useEmail}}\",\r\n \"fundesp_automatica\": \"{{useEmail}}\",\r\n \"lancar_valor_documento\": \"{{useEmail}}\",\r\n \"valor_fixo\": \"{{useEmail}}\",\r\n \"emolumento_id\": null,\r\n \"ato_praticado\": \"{{useEmail}}\",\r\n \"selar\": \"{{useEmail}}\",\r\n \"frenteverso\": \"{{useEmail}}\",\r\n \"pagina_acrescida\": \"{{useEmail}}\",\r\n \"emolumento_obrigatorio\": {{valorMonetario}},\r\n \"apresentante_selo\": \"{{useEmail}}\",\r\n \"renovacao_cartao\": \"{{useEmail}}\",\r\n \"etiqueta_unica\": \"{{useEmail}}\",\r\n \"transferencia_veiculo\": \"{{useEmail}}\",\r\n \"usar_a4\": \"{{useEmail}}\",\r\n \"averbacao\": \"{{useEmail}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_tipo" + ] + } + }, + "response": [] + }, + { + "name": "GET DESCRIÇÃO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/descricao?descricao=CERTIDÃO", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_tipo", + "descricao" + ], + "query": [ + { + "key": "descricao", + "value": "CERTIDÃO" + } + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/{{servicoTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_tipo", + "{{servicoTipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"valor\": {{valorMonetario}},\r\n \"tipo_item\": \"{{tipoItem}}\",\r\n \"requer_autorizacao\": \"{{useEmail}}\",\r\n \"requer_biometria\": \"{{useEmail}}\",\r\n \"tipo_pessoa\": \"{{tipoPessoa}}\",\r\n \"tb_reconhecimentotipo_id\": {{reconhecimentoTipoid}},\r\n \"tipo_permissao_cpf\": \"{{useEmail}}\",\r\n \"requer_abonador\": \"{{useEmail}}\",\r\n \"requer_representante\": \"{{useEmail}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"requer_cpf\": \"{{useEmail}}\",\r\n \"servico_padrao\": \"{{useEmail}}\",\r\n \"maximo_pessoa\": 3,\r\n \"alterar_valor\": \"{{useEmail}}\",\r\n \"servico_caixa_id\": 0,\r\n \"lancar_taxa\": \"{{useEmail}}\",\r\n \"lancar_fundesp\": \"{{useEmail}}\",\r\n \"liberar_desconto\": \"{{useEmail}}\",\r\n \"fundesp_automatica\": \"{{useEmail}}\",\r\n \"lancar_valor_documento\": \"{{useEmail}}\",\r\n \"valor_fixo\": \"{{useEmail}}\",\r\n \"emolumento_id\": null,\r\n \"ato_praticado\": \"{{useEmail}}\",\r\n \"selar\": \"{{useEmail}}\",\r\n \"frenteverso\": \"{{useEmail}}\",\r\n \"pagina_acrescida\": \"{{useEmail}}\",\r\n \"emolumento_obrigatorio\": {{valorMonetario}},\r\n \"apresentante_selo\": \"{{useEmail}}\",\r\n \"renovacao_cartao\": \"{{useEmail}}\",\r\n \"etiqueta_unica\": \"{{useEmail}}\",\r\n \"transferencia_veiculo\": \"{{useEmail}}\",\r\n \"usar_a4\": \"{{useEmail}}\",\r\n \"averbacao\": \"{{useEmail}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/{{servicoTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_tipo", + "{{servicoTipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_tipo/{{servicoTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_tipo", + "{{servicoTipoId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Serviço etiqueta", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_etiqueta" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"servicoEtiquetaId\", response.data.servico_etiqueta_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"etiqueta_modelo_id\": {{etiquetaModeloId}},\r\n \"servico_tipo_id\": {{servicoTipoid}}\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_etiqueta" + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta/{{servicoEtiquetaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_etiqueta", + "{{servicoEtiquetaId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"etiqueta_modelo_id\": {{etiquetaModeloId}},\r\n \"servico_tipo_id\": {{servicoTipoid}}\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta/{{servicoEtiquetaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_etiqueta", + "{{servicoEtiquetaId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/t_servico_etiqueta/{{servicoEtiquetaId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "t_servico_etiqueta", + "{{servicoEtiquetaId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Marcação tipo", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_marcacao_tipo" + ] + } + }, + "response": [] + }, + { + "name": "POST", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "const response = pm.response.json();\r", + "\r", + "// Salvando em variáveis da *collection*\r", + "pm.collectionVariables.set(\"marcacaoTipoId\", response.data.marcacao_tipo_id);\r", + "\r", + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"nome\": \"{{$randomFullName}}\",\r\n \"grupo\": \"{{grupo}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"grupo_tipo\": \"{{grupoTipo}}\",\r\n \"tipo_qualificacao\": \"{{tipoQualificacao}}\",\r\n \"condicao_sql\": \"{{condicaoSqlList}}\",\r\n \"separador_1\": \"{{separador}}\",\r\n \"separador_2\": \"{{separador}}\",\r\n \"separador_3\": \"{{separador}}\",\r\n \"tipo_valor\": \"{{tipoValor}}\",\r\n \"atualizar\": \"{{useEmail}}\",\r\n \"protegida\": \"{{useEmail}}\",\r\n \"ativar_separador\": \"{{useEmail}}\",\r\n \"sql_completo\": \"{{$randomFullName}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_marcacao_tipo" + ] + } + }, + "response": [] + }, + { + "name": "GET DESCRIÇÃO", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "" + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/descricao?descricao=Livro Protocolo", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_marcacao_tipo", + "descricao" + ], + "query": [ + { + "key": "descricao", + "value": "Livro Protocolo" + } + ] + } + }, + "response": [] + }, + { + "name": "GET ID", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/{{marcacaoTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_marcacao_tipo", + "{{marcacaoTipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "PUT", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"descricao\": \"{{$randomFullName}}\",\r\n \"nome\": \"{{$randomFullName}}\",\r\n \"grupo\": \"{{grupo}}\",\r\n \"situacao\": \"{{status}}\",\r\n \"sistema_id\": {{sistemaId}},\r\n \"grupo_tipo\": \"{{grupoTipo}}\",\r\n \"tipo_qualificacao\": \"{{tipoQualificacao}}\",\r\n \"condicao_sql\": \"{{condicaoSqlList}}\",\r\n \"separador_1\": \"{{separador}}\",\r\n \"separador_2\": \"{{separador}}\",\r\n \"separador_3\": \"{{separador}}\",\r\n \"tipo_valor\": \"{{tipoValor}}\",\r\n \"atualizar\": \"{{useEmail}}\",\r\n \"protegida\": \"{{useEmail}}\",\r\n \"ativar_separador\": \"{{useEmail}}\",\r\n \"sql_completo\": \"{{$randomFullName}}\"\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/{{marcacaoTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_marcacao_tipo", + "{{marcacaoTipoId}}" + ] + } + }, + "response": [] + }, + { + "name": "DELETE", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_marcacao_tipo/{{marcacaoTipoId}}", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_marcacao_tipo", + "{{marcacaoTipoId}}" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Estados", + "item": [ + { + "name": "GET", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code é 201 ou 200\", function () {\r", + " pm.expect(pm.response.code).to.be.oneOf([200, 201]);\r", + "});\r", + "\r", + "pm.test(\"Resposta contém ID ou confirmação\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData).to.have.any.keys(\"id\", \"message\", \"status\");\r", + "});\r", + "\r", + "pm.test(\"Mensagem indica sucesso\", function () {\r", + " const jsonData = pm.response.json();\r", + " pm.expect(jsonData.message || \"\").to.match(/sucesso|criado|registrado/i);\r", + "});\r", + "" + ], + "type": "text/javascript", + "packages": {}, + "requests": {} + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{BearerToken}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{BaseUrlV1}}administrativo/g_uf", + "host": [ + "{{BaseUrlV1}}administrativo" + ], + "path": [ + "g_uf" + ] + } + }, + "response": [] + } + ] + }, { "name": "Andamento Serviço", "item": [ @@ -6792,6 +9098,7 @@ "script": { "type": "text/javascript", "packages": {}, + "requests": {}, "exec": [ "// Lista de valores possíveis\r", "const statusList = [\"A\", \"I\"];\r", @@ -6813,6 +9120,8 @@ "pm.collectionVariables.set(\"type\", randomTypes);\r", "\r", "\r", + "\r", + "\r", "// Lista de valores possíveis\r", "const emailUseList = [\"S\", \"N\"];\r", "\r", @@ -6826,6 +9135,42 @@ "\r", "\r", "// Lista de valores possíveis\r", + "const tipoPessoaList = [\"F\", \"J\"];\r", + "\r", + "// Escolhe um valor aleatório\r", + "const randomTipoPessoaList = tipoPessoaList[Math.floor(Math.random() * tipoPessoaList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"tipoPessoa\", randomTipoPessoaList);\r", + "\r", + "\r", + "\r", + "\r", + "// Lista de valores possíveis\r", + "const reconhecimentoTipoList = [1,2,3,4,5];\r", + "\r", + "// Escolhe um valor aleatório\r", + "const randomReconhecimentoTipoList = reconhecimentoTipoList[Math.floor(Math.random() * reconhecimentoTipoList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"reconhecimentoTipoid\", randomReconhecimentoTipoList);\r", + "\r", + "\r", + "\r", + "\r", + "// Lista de valores possíveis\r", + "const tipoItemList = [\"A\", \"C\", \"G\", \"R\"];\r", + "\r", + "// Escolhe um valor aleatório\r", + "const randomTipoItemList = tipoItemList[Math.floor(Math.random() * tipoItemList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"tipoItem\", randomTipoItemList);\r", + "\r", + "\r", + "\r", + "\r", + "// Lista de valores possíveis\r", "const cboList = [\"-2\", \"15\", \"3\", \"34\"];\r", "\r", "// Escolhe um valor aleatório\r", @@ -6934,7 +9279,140 @@ "const randOnrTipoLogradouroId = onrTipoLogradouroList[Math.floor(Math.random() * onrTipoLogradouroList.length)];\r", "\r", "// Armazena como variável da collection\r", - "pm.collectionVariables.set(\"onrTipoLogradouroId\", randOnrTipoLogradouroId);" + "pm.collectionVariables.set(\"onrTipoLogradouroId\", randOnrTipoLogradouroId);\r", + "\r", + "\r", + "// Lista de valores possíveis\r", + "const atoTipoId = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20];\r", + "\r", + "// Escolhe um valor aleatório\r", + "const randAtoTipoId = atoTipoId[Math.floor(Math.random() * atoTipoId.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"AtoTipoId\", randAtoTipoId);\r", + "\r", + "\r", + "// Lista de UFs dos estados brasileiros\r", + "const estadosUF = [\r", + " \"AC\", \"AL\", \"AP\", \"AM\", \"BA\", \"CE\", \"DF\", \"ES\",\r", + " \"GO\", \"MA\", \"MT\", \"MS\", \"MG\", \"PA\", \"PB\", \"PR\",\r", + " \"PE\", \"PI\", \"RJ\", \"RN\", \"RS\", \"RO\", \"RR\", \"SC\",\r", + " \"SP\", \"SE\", \"TO\"\r", + "];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randEstadoUF = estadosUF[Math.floor(Math.random() * estadosUF.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"estadoUF\", randEstadoUF);\r", + "\r", + "\r", + "// Lista de grupos\r", + "const grupoList = [\"QUALIFICACAO\", \"GLOBAL\", \"FINALIZACAO\", \"MODELO_ETIQUETA\", \"MARCACAO_CARIMBO\", \"PESSOA\", \"ETIQUETA_DADOS\", \"ETIQUETA_MARCACAO\", \"DOCUMENTO\", \"CARIMBO\"];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randGrupoList = grupoList[Math.floor(Math.random() * grupoList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"grupo\", randGrupoList);\r", + "\r", + "\r", + "\r", + "// Lista de grupos tipos\r", + "const grupoTipoList = [\"V\", \"M\", \"Q\"];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randGrupoTipoList = grupoTipoList[Math.floor(Math.random() * grupoTipoList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"grupoTipo\", randGrupoTipoList);\r", + "\r", + "\r", + "\r", + "\r", + "// Lista de tipo qualificação\r", + "const tipoQualificacaoList = [\"TD\", \"ST\", \"IM\", \"PJ\", \"PS\", \"PC\"];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randTipoQualificacaoList = tipoQualificacaoList[Math.floor(Math.random() * tipoQualificacaoList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"tipoQualificacao\", randTipoQualificacaoList);\r", + "\r", + "\r", + "\r", + "\r", + "// Lista de tipo condição sql\r", + "const condicaoSqlList = [\"T=Traslado*L=Livro*\", \"S=, já falecido*N=*\", \"S=, já falecida*N=*\", \"R=Rural*L=Lote*C=Condomínio\", \"R=Rural*L=Lote*C=Condomínio\", \"N=Não*S=Sim*\", \"AV=AV*M=M*R=R* =Reg nº*\", \"M=Matrícula*T=Transcrição*A=Reg. Auxiliar\"];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randCondicaoSqlList = condicaoSqlList[Math.floor(Math.random() * condicaoSqlList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"condicaoSqlList\", randCondicaoSqlList);\r", + "\r", + "\r", + "\r", + "\r", + "// Lista de separador\r", + "const separadorList = [\",\", \";\", \":\", \"e\", \"; e\"];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randSeparadorList = separadorList[Math.floor(Math.random() * separadorList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"separador\", randSeparadorList);\r", + "\r", + "\r", + "\r", + "\r", + "// Lista de tipo valor\r", + "const tipoValorList = [\"L\", \"F\", \"T\", \"C\", \"R\"];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randTipoValorList = tipoValorList[Math.floor(Math.random() * tipoValorList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"tipoValor\", randTipoValorList);\r", + "\r", + "\r", + "\r", + "\r", + "// Gera um número aleatório entre 10 e 500 (pode ajustar os limites)\r", + "let randomMoney = (Math.random() * (500 - 10) + 10).toFixed(2);\r", + "\r", + "// Salva na variável de ambiente/coleção \"valorMonetario\"\r", + "pm.environment.set(\"valorMonetario\", randomMoney);\r", + "\r", + "\r", + "\r", + "// Gera número aleatório entre 3 e 101\r", + "let randomNumber = Math.floor(Math.random() * (101 - 3 + 1)) + 3;\r", + "\r", + "// Armazena em variável do ambiente\r", + "pm.environment.set(\"randomNumber\", randomNumber);\r", + "\r", + "\r", + "\r", + "// Lista de tipo valor\r", + "const etiquetaModeloIdList = [1066,1112,1144,1160,49,71];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randEtiquetaModeloIdList = etiquetaModeloIdList[Math.floor(Math.random() * etiquetaModeloIdList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"etiquetaModeloId\", randEtiquetaModeloIdList);\r", + "\r", + "\r", + "\r", + "// Lista de tipo valor\r", + "const servicoTipoIdList = [3,51,57,74,98,95,72];\r", + "\r", + "// Escolhe uma UF aleatória\r", + "const randServicoTipoIdList = servicoTipoIdList[Math.floor(Math.random() * servicoTipoIdList.length)];\r", + "\r", + "// Armazena como variável da collection\r", + "pm.collectionVariables.set(\"servicoTipoid\", randServicoTipoIdList);" ] } }, @@ -6943,6 +9421,7 @@ "script": { "type": "text/javascript", "packages": {}, + "requests": {}, "exec": [ "" ] @@ -7042,14 +9521,6 @@ "key": "censecQualidadeId", "value": "" }, - { - "key": "censecQualidadeId", - "value": "" - }, - { - "key": "tbBairroId", - "value": "" - }, { "key": "tbBairroId", "value": "" @@ -7064,12 +9535,103 @@ }, { "key": "tBestadoCivilid", - "value": "", - "type": "default" + "value": "" }, { "key": "tBestadoCivilId", "value": "" + }, + { + "key": "medidaTipoId", + "value": "" + }, + { + "key": "AtoTipoId", + "value": "" + }, + { + "key": "minutaId", + "value": "" + }, + { + "key": "tBdocumentotipoId", + "value": "" + }, + { + "key": "naturezaId", + "value": "" + }, + { + "key": "estadoUF", + "value": "" + }, + { + "key": "cidadeId", + "value": "" + }, + { + "key": "tipoItem", + "value": "" + }, + { + "key": "valorMonetario", + "value": "" + }, + { + "key": "tipoPessoa", + "value": "" + }, + { + "key": "reconhecimentoTipoid", + "value": "" + }, + { + "key": "servicoTipoId", + "value": "" + }, + { + "key": "grupo", + "value": "" + }, + { + "key": "tipoQualificacao", + "value": "" + }, + { + "key": "condicaoSqlList", + "value": "" + }, + { + "key": "separador", + "value": "" + }, + { + "key": "grupoTipo", + "value": "" + }, + { + "key": "tipoValor", + "value": "" + }, + { + "key": "marcacaoTipoId", + "value": "" + }, + { + "key": "servicoEtiquetaId", + "value": "" + }, + { + "key": "randomNumber", + "value": "" + }, + { + "key": "etiquetaModeloId", + "value": "" + }, + { + "key": "servicoTipoid", + "value": "" } ] } \ No newline at end of file diff --git a/packages/v1/api.py b/packages/v1/api.py index d187659..be092af 100644 --- a/packages/v1/api.py +++ b/packages/v1/api.py @@ -20,6 +20,9 @@ from packages.v1.administrativo.endpoints import t_minuta_endpoint from packages.v1.administrativo.endpoints import g_tb_bairro_endpoint from packages.v1.administrativo.endpoints import g_tb_tipologradouro_endpoint from packages.v1.administrativo.endpoints import g_cidade_endpoint +from packages.v1.administrativo.endpoints import t_servico_tipo_endpoint +from packages.v1.administrativo.endpoints import g_marcacao_tipo_endpoint +from packages.v1.administrativo.endpoints import t_servico_etiqueta_endpoint from packages.v1.administrativo.endpoints import g_uf_endpoint # Cria uma instância do APIRouter que vai agregar todas as rotas da API @@ -114,13 +117,7 @@ api_router.include_router( g_tb_tipologradouro_endpoint.router, prefix="/administrativo/g_tb_tipologradouro", tags=["Tipo logradouro"] ) - # Inclui as rotas de g_cidade api_router.include_router( g_cidade_endpoint.router, prefix="/administrativo/g_cidade", tags=["Cidades"] -) - -# Inclui as rotas de g_uf -api_router.include_router( - g_uf_endpoint.router, prefix="/administrativo/g_uf", tags=["Estados"] ) \ No newline at end of file