Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonathangaldino/3804f1a0117f693961b6b771b60c90d6 to your computer and use it in GitHub Desktop.
Save jonathangaldino/3804f1a0117f693961b6b771b60c90d6 to your computer and use it in GitHub Desktop.
Private Pension API - Insomnia
{"_type":"export","__export_format":4,"__export_date":"2023-09-20T01:55:46.976Z","__export_source":"insomnia.desktop.app:v2023.5.8","resources":[{"_id":"req_4157bf9d4f644c5788b108f5b93f9c79","parentId":"wrk_4ba7024e90064faaa8c8de293311e71b","modified":1695009408996,"created":1694867799799,"url":"http://localhost:3000/customers","name":"Create customer","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"cpf\": \"45645644600\",\n\t\"nome\": \"José da Silva\",\n\t\"email\": \"[email protected]\",\n\t\"dataDeNascimento\": \"2010-08-24T12:00:00.000Z\",\n\t\"genero\": \"Masculino\",\n\t\"rendaMensal\": 2899.5\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1694867799799,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_4ba7024e90064faaa8c8de293311e71b","parentId":null,"modified":1694867797977,"created":1694867797977,"name":"Private Pension API","description":"","scope":"collection","_type":"workspace"},{"_id":"req_1fdd598233c94537bd97f5fc0162c946","parentId":"wrk_4ba7024e90064faaa8c8de293311e71b","modified":1694989748759,"created":1694922129895,"url":"http://localhost:3000/products","name":"Create product","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"nome\": \"Brasilprev Longo Prazo\",\n\t\"susep\": \"15414900840201817\",\n\t\"expiracaoDeVenda\": \"2023-07-19T12:00:00.000Z\",\n\t\"valorMinimoAporteInicial\": 1000.0,\n\t\"valorMinimoAporteExtra\": 100.0,\n\t\"idadeDeEntrada\": 18,\n\t\"idadeDeSaida\": 60,\n\t\"carenciaInicialDeResgate\": 60,\n\t\"carenciaEntreResgates\": 30\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1694453513486.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_6ad970f89d844629b9fade8904aa157f","parentId":"wrk_4ba7024e90064faaa8c8de293311e71b","modified":1694989781842,"created":1694965501209,"url":"http://localhost:3000/plans","name":"Hire a plan","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"idCliente\": \"{% response 'body', 'req_4157bf9d4f644c5788b108f5b93f9c79', 'b64::JC5pZA==::46b', 'never', 60 %}\",\n\t\"idProduto\": \"{% response 'body', 'req_1fdd598233c94537bd97f5fc0162c946', 'b64::JC5pZA==::46b', 'never', 60 %}\",\n\t\"aporte\": 2000.0,\n\t\"dataDaContratacao\": \"2023-07-14T12:00:00.000Z\",\n\t\"idadeDeAposentadoria\": 60\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1694246370330.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_64f4b417b6c6406ca3af379b127d5f52","parentId":"wrk_4ba7024e90064faaa8c8de293311e71b","modified":1694984408761,"created":1694984219595,"url":"http://localhost:3000/plans-investment","name":"Invest on a plan","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"idCliente\": \"{% response 'body', 'req_4157bf9d4f644c5788b108f5b93f9c79', 'b64::JC5pZA==::46b', 'never', 60 %}\",\n\t\"idPlano\": \"{% response 'body', 'req_6ad970f89d844629b9fade8904aa157f', 'b64::JC5pZA==::46b', 'never', 60 %}\",\n\t\"valorAporte\": 2000.0\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1694142798752.125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_43d7797df6c14509b3b15ac8bbdd1750","parentId":"wrk_4ba7024e90064faaa8c8de293311e71b","modified":1694994111957,"created":1694987331857,"url":"http://localhost:3000/claims","name":"Claim","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"idPlano\": \"{% response 'body', 'req_6ad970f89d844629b9fade8904aa157f', 'b64::JC5pZA==::46b', 'never', 60 %}\",\n\t\"valorResgate\": 50.0\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"},{"name":"User-Agent","value":"insomnia/2023.5.8"}],"authentication":{},"metaSortKey":-1694091012963.0625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_5c8906babc695ee29a8962def8460a8536587cbd","parentId":"wrk_4ba7024e90064faaa8c8de293311e71b","modified":1694867797980,"created":1694867797980,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1694867797980,"_type":"environment"},{"_id":"jar_5c8906babc695ee29a8962def8460a8536587cbd","parentId":"wrk_4ba7024e90064faaa8c8de293311e71b","modified":1694867797981,"created":1694867797981,"name":"Default Jar","cookies":[],"_type":"cookie_jar"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment