forked from KenzieCommerce-G19/kenzieCommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsomnia
More file actions
1 lines (1 loc) · 16 KB
/
insomnia
File metadata and controls
1 lines (1 loc) · 16 KB
1
{"_type":"export","__export_format":4,"__export_date":"2023-06-30T16:59:19.929Z","__export_source":"insomnia.desktop.app:v2023.2.2","resources":[{"_id":"req_20d7d1adf37e4454bbe90ff50ec2decd","parentId":"fld_d3086c8549ac4ac7accfceb03bd5d872","modified":1688142560660,"created":1688142513805,"url":"{{ _.baseURL }}/api/products/","name":"Buscar todos os produtos","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1688142513805,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_d3086c8549ac4ac7accfceb03bd5d872","parentId":"wrk_19c104826343448193f4b25999a70829","modified":1688142512415,"created":1688142431626,"name":"Sem autorização","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1688142431626,"_type":"request_group"},{"_id":"wrk_19c104826343448193f4b25999a70829","parentId":null,"modified":1688137651419,"created":1688137651419,"name":"M5 - KenzieCommerce","description":"","scope":"collection","_type":"workspace"},{"_id":"req_21961771c17c43fb97425a8b70a12f7d","parentId":"fld_d3086c8549ac4ac7accfceb03bd5d872","modified":1688142578402,"created":1688142575092,"url":"{{ _.baseURL }}/api/products/1","name":"Buscar um produto específico","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1688142513792.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_8afa50c1f365483ba7b9a5927ea51236","parentId":"fld_d3086c8549ac4ac7accfceb03bd5d872","modified":1688142531037,"created":1688137653491,"url":"{{ _.baseURL }}/api/users/","name":"Criar usuário sem endereço","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"username\": \"alexandre2\",\n\t\"email\": \"alexandre2@mail.com\",\n\t\"password\": \"1234\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1688142513780,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_cda9033185cb4e298f183720389032a2","parentId":"fld_d3086c8549ac4ac7accfceb03bd5d872","modified":1688142533227,"created":1688141494911,"url":"{{ _.baseURL }}/api/users/","name":"Criar usuário com endereço","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"username\": \"alexandre2\",\n\t\"email\": \"alexandre2@mail.com\",\n\t\"password\": \"1234\",\n\t\"address\": {\n\t\t\"district\": \"Bairro teste\",\n\t\t\"street\": \"Rua teste\",\n\t\t\"cep\": \"00000-000\",\n\t\t\"number\": \"99\"\n\t}\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1688142513767.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_bc0f581abd77472d88bf336da4535825","parentId":"fld_d3086c8549ac4ac7accfceb03bd5d872","modified":1688142600115,"created":1688137764861,"url":"{{ _.baseURL }}/api/users/login/","name":"Login - rota que gera o token","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"username\": \"alexandre2\",\n\t\"password\": \"1234\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1688142513755,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_493c0e63db71494895ddb219f51aacff","parentId":"fld_d3086c8549ac4ac7accfceb03bd5d872","modified":1688143116651,"created":1688138251224,"url":"{{ _.baseURL }}/api/token/refresh/","name":"EXTRA: Login com Refresh Token","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"refresh\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY4ODc0MzA0NiwiaWF0IjoxNjg4MTM4MjQ2LCJqdGkiOiJjODZjYmY5MDI3OGM0NDk4YjYzZDA5OWUyM2E4N2JkZCIsInVzZXJfaWQiOjJ9.gzTb-o4XFWbLvZo7CUHN5nfPbbxKt3qvP74g93ERazk\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1688142513705,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_12a58b64dcff4d26b794cc9946f7f571","parentId":"fld_602124fe61c24e548fce1b6a8bf6de05","modified":1688142902370,"created":1688141690984,"url":"{{ _.baseURL }}/api/users/1/","name":"Atualizar usuário para vendedor","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"is_seller\": true\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688137653366,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_602124fe61c24e548fce1b6a8bf6de05","parentId":"wrk_19c104826343448193f4b25999a70829","modified":1688142339802,"created":1688141473641,"name":"Usuário","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1688141934436,"_type":"request_group"},{"_id":"req_261f87a2ff9c47a38f5dcf1d853c7a6d","parentId":"fld_602124fe61c24e548fce1b6a8bf6de05","modified":1688142904555,"created":1688142053073,"url":"{{ _.baseURL }}/api/cart/1/","name":"Atualizar carrinho","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"products\": [{\n\t\"name\": \"PC DA NASA\",\n\t\"quantity\": 100,\n\t\"price\": \"42.000,00\",\n\t\"category\": \"Eletrônicos\"\n},{\n\t\"name\": \"PC DA NASA2\",\n\t\"quantity\": 100,\n\t\"price\": \"42.000,00\",\n\t\"category\": \"Eletrônicos\"\n},{\n\t\"name\": \"PC DA NASA3\",\n\t\"quantity\": 100,\n\t\"price\": \"42.000,00\",\n\t\"category\": \"Eletrônicos\"\n}]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688137653353.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_55114fe8703649e0b0a5829b82322312","parentId":"fld_602124fe61c24e548fce1b6a8bf6de05","modified":1688144177420,"created":1688143134935,"url":"{{ _.baseURL }}/api/orders/1/","name":"Fazer um pedido","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"status\": \"PEDIDO REALIZADO\",\n\t\"products\": [{\n\t\"name\": \"PC DA NASA\",\n\t\"price\": \"42.000,00\",\n\t\"category\": \"Eletrônicos\"\n},{\n\t\"name\": \"PC DA NASA2\",\n\t\"price\": \"42.000,00\",\n\t\"category\": \"Eletrônicos\"\n},{\n\t\"name\": \"PC DA NASA3\",\n\t\"price\": \"42.000,00\",\n\t\"category\": \"Eletrônicos\"\n}]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688137653347.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_2d1abc50c4024a009292e7fdb0ed52a9","parentId":"fld_602124fe61c24e548fce1b6a8bf6de05","modified":1688143769140,"created":1688143481771,"url":"{{ _.baseURL }}/api/orders/","name":"Buscar seus pedidos","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688137653331.625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_04ebcea4b9784193aa4e7b311385f21a","parentId":"fld_602124fe61c24e548fce1b6a8bf6de05","modified":1688143490936,"created":1688141914691,"url":"{{ _.baseURL }}/api/users/1","name":"EXTRA: buscar suas informações","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688137653316,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c1670ee214f5476a99d878675d897850","parentId":"fld_a6239492f8164ba9b903896c73e5d290","modified":1688143928447,"created":1688143539775,"url":"{{ _.baseURL }}/api/orders/","name":"Buscar seus pedidos como vendedor","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688141893561.3125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_a6239492f8164ba9b903896c73e5d290","parentId":"wrk_19c104826343448193f4b25999a70829","modified":1688142405724,"created":1688141981443,"name":"Vendedor","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1688141922671.75,"_type":"request_group"},{"_id":"req_5c775fe7115245f4936f2d5c84886c06","parentId":"fld_a6239492f8164ba9b903896c73e5d290","modified":1688143553775,"created":1688142176241,"url":"{{ _.baseURL }}/api/products/","name":"Adicionar produto","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"PC DA NASA\",\n\t\"quantity\": 10,\n\t\"price\": \"40.000,00\",\n\t\"category\": \"Eletrônicos\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688141752221.4688,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_a02a05e4311a4415ba8583647b124832","parentId":"fld_a6239492f8164ba9b903896c73e5d290","modified":1688142759397,"created":1688142714698,"url":"{{ _.baseURL }}/api/products/","name":"Atualizar quantidade do produto","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"quantity\": 23\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688141610881.625,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_88568dd5055f4c70b3c99fe98d11fa02","parentId":"fld_a6239492f8164ba9b903896c73e5d290","modified":1688143980823,"created":1688143949470,"url":"{{ _.baseURL }}/api/orders/","name":"Atualizar status do pedido","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"status\": \"EM ANDAMENTO\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688141328201.9375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_710fb649314b41c7913dac141b4791de","parentId":"fld_a6239492f8164ba9b903896c73e5d290","modified":1688143534918,"created":1688142741369,"url":"{{ _.baseURL }}/api/products/api/orders/1/","name":"EXTRA: Atualizar o produto inteiro","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"name\": \"PC DA NASA2\",\n\t\"quantity\": 100,\n\t\"price\": \"42.000,00\",\n\t\"category\": \"Eletrônicos\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688141045522.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_fc3db4ed39e24d2293780a7f9ccfe3b1","parentId":"fld_3ec9bb539a7e4ed9b50d392ee7dc7e1a","modified":1688141889504,"created":1688141767698,"url":"{{ _.baseURL }}/api/users/","name":"EXTRA: buscar usuários","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"{% response 'body', 'req_bc0f581abd77472d88bf336da4535825', 'b64::JC5hY2Nlc3M=::46b', 'never', 60 %}"},"metaSortKey":-1688137653341,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_3ec9bb539a7e4ed9b50d392ee7dc7e1a","parentId":"wrk_19c104826343448193f4b25999a70829","modified":1688142386945,"created":1688141887429,"name":"Admin","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1688141910907.5,"_type":"request_group"},{"_id":"env_783b422655ff56f9c50421ab86343acf684476b2","parentId":"wrk_19c104826343448193f4b25999a70829","modified":1688137651427,"created":1688137651427,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1688137651427,"_type":"environment"},{"_id":"jar_783b422655ff56f9c50421ab86343acf684476b2","parentId":"wrk_19c104826343448193f4b25999a70829","modified":1688137651430,"created":1688137651430,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_8c621ca1049d4295a9c6b10bc384f841","parentId":"wrk_19c104826343448193f4b25999a70829","modified":1688137651420,"created":1688137651420,"fileName":"M5 - KenzieCommerce","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_368c12d5b7404825b2dc09c47f022da4","parentId":"env_783b422655ff56f9c50421ab86343acf684476b2","modified":1688137726423,"created":1688137662661,"name":"Development","data":{"baseURL":"localhost:8000"},"dataPropertyOrder":{"&":["baseURL"]},"color":null,"isPrivate":false,"metaSortKey":1688137662661,"_type":"environment"},{"_id":"env_d4c916a7b48e4211a6459c7bba570c4d","parentId":"env_783b422655ff56f9c50421ab86343acf684476b2","modified":1688137744436,"created":1688137723174,"name":"Production","data":{"baseURL":""},"dataPropertyOrder":{"&":["baseURL"]},"color":null,"isPrivate":false,"metaSortKey":1688137723174,"_type":"environment"}]}