{"info":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","description":"<html><head></head><body><p>Endpoints of the project</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3342022","collectionId":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","publishedId":"SzYaVdaV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-02T20:01:43.000Z"},"item":[{"name":"Auth","item":[{"name":"/auth/login - Admin","event":[{"listen":"test","script":{"id":"e3789afa-0407-4a1d-a963-344cb5d238ef","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.token) {","    pm.collectionVariables.set('authTokenAdmin', jsonData.token);","}","if (jsonData && jsonData.refreshToken) {","    pm.collectionVariables.set('refreshTokenAdmin', jsonData.refreshToken);","}"],"type":"text/javascript"}}],"id":"aae1db59-8b7c-466a-b8e6-ac6d297d2c00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"admin@login.com","type":"text","description":"<p>Registered email</p>\n"},{"key":"password","value":"admin","type":"text","description":"<p>Non-hashed password</p>\n"}]},"url":"http://localhost:3001/auth/login","description":"<p>Log in the user using the email and password</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[{"id":"999ad58b-c45b-45be-90e9-5428e68de02d","name":"/auth/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"admin@login.com","type":"text","description":"Registered email"},{"key":"password","value":"admin@login","type":"text","description":"Non-hashed password"}]},"url":{"raw":"http://localhost:3001/auth/login?","host":["http://localhost:3001"],"path":["auth","login"],"query":[{"key":"","value":null}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTg1ODU3OTU0LCJleHAiOjE1ODU4NTgyNTR9.P8GFrNl8LpdzcnhYIlt2Yf0gqjfdsfrfZDqFaoJwZkk\",\n    \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTg1ODU3OTU0LCJleHAiOjE1ODYyODk5NTR9.4ei-Qph_0sBVesVXNVB9xQa2qUohMu_Sd9LQCyYNneA\",\n    \"user\": {\n        \"id\": 1,\n        \"cityId\": 1,\n        \"placeStoreId\": null,\n        \"cpf\": \"00000000000\",\n        \"name\": \"Usuário admin\",\n        \"role\": \"admin\",\n        \"email\": \"admin@login.com\",\n        \"password\": \"$2a$08$criG7dYn64PoLkYHBQyFfuBQ14k/bb1QAoW1qmJYkpAZ4MxrZPtN.\",\n        \"active\": true,\n        \"createdAt\": \"2020-04-02T16:43:20.928Z\",\n        \"updatedAt\": \"2020-04-02T16:43:20.928Z\"\n    }\n}"}],"_postman_id":"aae1db59-8b7c-466a-b8e6-ac6d297d2c00"},{"name":"/auth/token - Admin","event":[{"listen":"test","script":{"id":"e3789afa-0407-4a1d-a963-344cb5d238ef","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.token) {","    pm.collectionVariables.set('authTokenAdmin', jsonData.token);","}","if (jsonData && jsonData.refreshToken) {","    pm.collectionVariables.set('refreshTokenAdmin', jsonData.refreshToken);","}"],"type":"text/javascript"}}],"id":"e9704df7-4402-4092-a38b-ff1321f605ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"refreshToken","value":"{{refreshToken}}","type":"text","description":"<p>Refresh token provided on login or other token request</p>\n"}]},"url":"http://localhost:3001/auth/token","description":"<p>Log in the user using the email and password</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["auth","token"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9704df7-4402-4092-a38b-ff1321f605ab"},{"name":"/auth/login - Operator","event":[{"listen":"test","script":{"id":"e3789afa-0407-4a1d-a963-344cb5d238ef","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.token) {","    pm.collectionVariables.set('authTokenOperator', jsonData.token);","}","if (jsonData && jsonData.refreshToken) {","    pm.collectionVariables.set('refreshTokenOperator', jsonData.refreshToken);","}"],"type":"text/javascript"}}],"id":"d3b7d8a3-1c20-4996-802c-0ba7aae6ffc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Registered email</p>\n","key":"email","type":"text","value":"operator@login.com"},{"description":"<p>Non-hashed password</p>\n","key":"password","type":"text","value":"operator"}]},"url":"http://localhost:3001/auth/login","description":"<p>Log in the user using the email and password</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[{"id":"2a8d346a-6d7f-4049-9646-498cc453817b","name":"/auth/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"admin@login.com","type":"text","description":"Registered email"},{"key":"password","value":"admin@login","type":"text","description":"Non-hashed password"}]},"url":{"raw":"http://localhost:3001/auth/login?","host":["http://localhost:3001"],"path":["auth","login"],"query":[{"key":"","value":null}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTg1ODU3OTU0LCJleHAiOjE1ODU4NTgyNTR9.P8GFrNl8LpdzcnhYIlt2Yf0gqjfdsfrfZDqFaoJwZkk\",\n    \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTg1ODU3OTU0LCJleHAiOjE1ODYyODk5NTR9.4ei-Qph_0sBVesVXNVB9xQa2qUohMu_Sd9LQCyYNneA\",\n    \"user\": {\n        \"id\": 1,\n        \"cityId\": 1,\n        \"placeStoreId\": null,\n        \"cpf\": \"00000000000\",\n        \"name\": \"Usuário admin\",\n        \"role\": \"admin\",\n        \"email\": \"admin@login.com\",\n        \"password\": \"$2a$08$criG7dYn64PoLkYHBQyFfuBQ14k/bb1QAoW1qmJYkpAZ4MxrZPtN.\",\n        \"active\": true,\n        \"createdAt\": \"2020-04-02T16:43:20.928Z\",\n        \"updatedAt\": \"2020-04-02T16:43:20.928Z\"\n    }\n}"}],"_postman_id":"d3b7d8a3-1c20-4996-802c-0ba7aae6ffc2"},{"name":"/auth/token - Operator","event":[{"listen":"test","script":{"id":"e3789afa-0407-4a1d-a963-344cb5d238ef","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.token) {","    pm.collectionVariables.set('authTokenOperator', jsonData.token);","}","if (jsonData && jsonData.refreshToken) {","    pm.collectionVariables.set('refreshTokenOperator', jsonData.refreshToken);","}"],"type":"text/javascript"}}],"id":"99d486b2-3291-454a-b3d2-ca63dcfef862","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"refreshToken","value":"{{refreshToken}}","type":"text","description":"<p>Refresh token provided on login or other token request</p>\n"}]},"url":"http://localhost:3001/auth/token","description":"<p>Log in the user using the email and password</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["auth","token"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"99d486b2-3291-454a-b3d2-ca63dcfef862"}],"id":"c8e8bd06-5a65-4910-b0ab-d3e537e73b35","description":"<p>Authentication routes to allow the user to get or refresh the JWT.</p>\n<p>To be able to make the requests other than the auth, you will need to send the JWT token on the header of the request as:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-JSON\">\"Authorization\": \"Bearer {{token}}\"\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"47d00904-64e2-45b4-b377-b1f06dc453f8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d4892237-2a45-42ba-8417-4453d20082a6","type":"text/javascript","exec":[""]}}],"_postman_id":"c8e8bd06-5a65-4910-b0ab-d3e537e73b35","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Public","item":[{"name":"/public/families","id":"20fb708f-c44f-4e6e-b715-0daadcbffeb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/public/families?nis=10000000000&cityId=1","description":"<p>Get family using the NIS code and the city ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["public","families"],"host":["http://localhost:3001"],"query":[{"description":{"content":"<p>Family code</p>\n","type":"text/plain"},"key":"nis","value":"10000000000"},{"key":"cityId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"20fb708f-c44f-4e6e-b715-0daadcbffeb4"},{"name":"/public/place-stores","id":"0dd41d58-a5d7-4042-b3b7-1d2cd0b543d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/public/place-stores?cityId=1","description":"<p>Get list of place-stores on the city</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["public","place-stores"],"host":["http://localhost:3001"],"query":[{"key":"cityId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"0dd41d58-a5d7-4042-b3b7-1d2cd0b543d1"}],"id":"e6cd68e4-a361-45eb-b892-8dcf21977fcf","description":"<p>Public endpoints that don't need an authorization token to be requested</p>\n","_postman_id":"e6cd68e4-a361-45eb-b892-8dcf21977fcf","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Cities","item":[{"name":"/cities","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('cityId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"cc3f2b2c-5d85-4f38-ace8-20fa8b9077de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Belo Horizonte/MG","type":"text"}]},"url":"http://localhost:3001/cities","description":"<p>Create a new item using the defined data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["cities"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc3f2b2c-5d85-4f38-ace8-20fa8b9077de"},{"name":"/cities/:id","id":"ead2e196-e0d6-4b1d-8b1b-7ba2454c3afc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Juiz de Fora/MG","type":"text"}]},"url":"http://localhost:3001/cities/1","description":"<p>Update item using the defined data and unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["cities","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"ead2e196-e0d6-4b1d-8b1b-7ba2454c3afc"},{"name":"/cities","id":"59801193-e6e1-49e0-b7e6-cbab886b2425","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/cities","description":"<p>List of all items without any filter</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["cities"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"59801193-e6e1-49e0-b7e6-cbab886b2425"},{"name":"/cities/:id","id":"93ce3544-6ec4-4f64-9c4b-2ffb3a0ee1e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/cities/1","description":"<p>Get item detail using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["cities","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"93ce3544-6ec4-4f64-9c4b-2ffb3a0ee1e7"},{"name":"/cities/:id","id":"cf4ec45e-31b2-454c-ae28-b1572a3aae25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/cities/1","description":"<p>Delete item using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["cities","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"cf4ec45e-31b2-454c-ae28-b1572a3aae25"}],"id":"b425d64b-bb47-4094-8803-c5ea0f89e398","description":"<p>Cities covered by the application</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"b425d64b-bb47-4094-8803-c5ea0f89e398","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Places","item":[{"name":"/places","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('placeId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"af3e35e1-6951-4ea8-9e78-545c95c4c042","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Baraky Corporation","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true}]},"url":"http://localhost:3001/places","description":"<p>Create a new item using the defined data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["places"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"af3e35e1-6951-4ea8-9e78-545c95c4c042"},{"name":"/places/:id","id":"b79680d4-aa0e-47de-804c-2a966c430619","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Baraky Corp.","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true}]},"url":"http://localhost:3001/places/1","description":"<p>Update item using the defined data and unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["places","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"b79680d4-aa0e-47de-804c-2a966c430619"},{"name":"/places","id":"3cd6fc1f-13df-458e-9716-f81db7738904","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/places","description":"<p>List of all items without any filter</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["places"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"3cd6fc1f-13df-458e-9716-f81db7738904"},{"name":"/places/:id","id":"0fbfed2a-de58-4bf8-be4e-94da0156c2b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/places/1","description":"<p>Get item detail using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["places","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"0fbfed2a-de58-4bf8-be4e-94da0156c2b9"},{"name":"/places/:id","id":"88cd5d02-9d8b-4a41-9102-020bba4fb9c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/places/1","description":"<p>Delete item using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["places","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"88cd5d02-9d8b-4a41-9102-020bba4fb9c5"}],"id":"6c10694d-a952-4d33-b6a7-726cf258773c","description":"<p>Places that the family can go to use the benefit</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"6c10694d-a952-4d33-b6a7-726cf258773c","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Place Stores","item":[{"name":"/place-stores","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('placeStoreId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"5e9854c6-fac5-4070-b568-f7749474ecfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"BC Centro","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true},{"key":"placeId","value":"1","type":"text"},{"key":"address","value":"Rua Central, Bairro Centro","type":"text","description":"<p>Just the first line of the address</p>\n"},{"key":"cnpj","value":"0000","type":"text","description":"<p>Brazilian company register</p>\n"}]},"url":"http://localhost:3001/place-stores","description":"<p>Create a new item using the defined data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["place-stores"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e9854c6-fac5-4070-b568-f7749474ecfd"},{"name":"/place-stores/:id","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('placeStoreId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"c7c46a0c-c254-4d6f-890b-280e46ad6c25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"BC Centro","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true},{"key":"placeId","value":"1","type":"text"},{"key":"address","value":"Rua Central, Bairro Centro","type":"text","description":"<p>Just the first line of the address</p>\n"},{"key":"cnpj","value":"0000","type":"text","description":"<p>Brazilian company register</p>\n"}]},"url":"http://localhost:3001/place-stores/1","description":"<p>Update an item using the defined data and the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["place-stores","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7c46a0c-c254-4d6f-890b-280e46ad6c25"},{"name":"/place-stores","id":"b1df78d6-349a-43f1-8c9f-dcc0f584dc64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/place-stores","description":"<p>List of all items without any filter</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["place-stores"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1df78d6-349a-43f1-8c9f-dcc0f584dc64"},{"name":"/place-stores/:id","id":"a0d35d8d-e318-4cfe-9a3d-c073d5a17ff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/place-stores/1","description":"<p>Get item detail using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["place-stores","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0d35d8d-e318-4cfe-9a3d-c073d5a17ff9"},{"name":"/place-stores/:id","id":"e9ee5289-760b-4bd6-9551-41f034031006","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/place-stores/1","description":"<p>Delete item using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["place-stores","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9ee5289-760b-4bd6-9551-41f034031006"}],"id":"5c551439-3e2c-4f23-b805-f426146754ae","description":"<p>Stores covered by the application, where the family can use the benefit</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"5c551439-3e2c-4f23-b805-f426146754ae","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Users","item":[{"name":"/users","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('userId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"1a4d2fa0-e234-4132-8c28-7dc91d19114a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"João Baraky","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true},{"key":"placeStoreId","value":"1","type":"text"},{"key":"cpf","value":"00000000000","type":"text","description":"<p>Brazilian personal register</p>\n"},{"key":"role","value":"admin","type":"text","description":"<p>Possible values: admin | manager | financial | operator</p>\n"},{"key":"email","value":"user@admin.com","type":"text"},{"key":"password","value":"1234","type":"text"},{"key":"active","value":"true","type":"text"}]},"url":"http://localhost:3001/users","description":"<p>Create a new item using the defined data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["users"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a4d2fa0-e234-4132-8c28-7dc91d19114a"},{"name":"/users/:id","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('userId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"078081f5-0b32-416f-b096-4242044febc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"João Baraky","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true},{"key":"placeStoreId","value":"1","type":"text"},{"key":"cpf","value":"00000000000","type":"text","description":"<p>Brazilian personal register</p>\n"},{"key":"role","value":"admin","type":"text","description":"<p>Possible values: admin | manager | financial | operator</p>\n"},{"key":"email","value":"user@admin.com","type":"text"},{"key":"password","value":"1234","type":"text"},{"key":"active","value":"true","type":"text"}]},"url":"http://localhost:3001/users/1","description":"<p>Update item using the defined data and unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["users","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"078081f5-0b32-416f-b096-4242044febc9"},{"name":"/users","id":"f70af94a-a6c8-48d0-a2b8-e311f70c0e32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/users","description":"<p>List of all items without any filter</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["users"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"f70af94a-a6c8-48d0-a2b8-e311f70c0e32"},{"name":"/users/:id","id":"e82631ca-5652-4e39-85f7-447f6553d2a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/users/1","description":"<p>Get item detail using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["users","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"e82631ca-5652-4e39-85f7-447f6553d2a7"},{"name":"/users/:id","id":"99220bcb-d89e-4e77-9963-6e77110330ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/users/1","description":"<p>Delete item using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["users","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"99220bcb-d89e-4e77-9963-6e77110330ac"}],"id":"08649abe-667a-4d1b-ab60-5c7316c7ff44","description":"<p>User that will log on the system: Admin and Store users</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"08649abe-667a-4d1b-ab60-5c7316c7ff44","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Institutions","item":[{"name":"/institutions","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('institutionId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"77a4bb38-43e0-4afd-945d-69de78f60ecc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Government","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true}]},"url":"http://localhost:3001/institutions","description":"<p>Create a new item using the defined data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["institutions"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"77a4bb38-43e0-4afd-945d-69de78f60ecc"},{"name":"/institutions/:id","id":"e90cfc33-519f-4599-8ad2-d47d78478b4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Government","type":"text"},{"key":"cityId","value":"1","type":"text","disabled":true}]},"url":"http://localhost:3001/institutions/1","description":"<p>Update item using the defined data and unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["institutions","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"e90cfc33-519f-4599-8ad2-d47d78478b4f"},{"name":"/institutions","id":"e21f0837-6934-4ce8-8814-57f9f6b3eb63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/institutions","description":"<p>List of all items without any filter</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["institutions"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"e21f0837-6934-4ce8-8814-57f9f6b3eb63"},{"name":"/institutions/:id","id":"767879fb-d572-4159-b73c-fa62b9050910","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/institutions/1","description":"<p>Get item detail using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["institutions","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"767879fb-d572-4159-b73c-fa62b9050910"},{"name":"/institutions/:id","id":"c19fcf74-f319-4a32-945f-5fb5cfddf7fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/institutions/1","description":"<p>Delete item using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["institutions","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"c19fcf74-f319-4a32-945f-5fb5cfddf7fb"}],"id":"2dba9dc3-8ef3-4640-898d-cc867c1f9825","description":"<p>Institutions that will generate the benefits for the families</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"2dba9dc3-8ef3-4640-898d-cc867c1f9825","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Benefits","item":[{"name":"/benefits","event":[{"listen":"test","script":{"id":"bbd3d500-1773-4ed2-848c-89f003013227","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('benefitId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"0bedc0a7-f799-4f93-b066-3158232b458e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"institutionId","type":"text","value":"1"},{"key":"title","type":"text","value":"Municipal Social Help"},{"key":"groupName","value":"Extreme Poverty","type":"text"},{"key":"month","value":"3","type":"text"},{"key":"year","value":"2020","type":"text"},{"key":"value","value":"500","description":"<p>Individual money value in BRL</p>\n","type":"text"}]},"url":"http://localhost:3001/benefits","description":"<p>Create a new item using the defined data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["benefits"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"0bedc0a7-f799-4f93-b066-3158232b458e"},{"name":"/benefits/:id","id":"4b7260ce-46cf-464a-a7ff-d4b2a05fa576","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"institutionId","value":"1","type":"text"},{"key":"title","value":"Municipal Social Help","type":"text"},{"key":"groupName","value":"Extreme Poverty","type":"text"},{"key":"month","value":"3","type":"text"},{"key":"year","value":"2020","type":"text"},{"key":"value","value":"500","type":"text","description":"<p>Individual money value in BRL</p>\n"}]},"url":"http://localhost:3001/benefits/1","description":"<p>Update item using the defined data and unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["benefits","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b7260ce-46cf-464a-a7ff-d4b2a05fa576"},{"name":"/benefits","id":"0602d93f-ebe4-4d3e-bcee-ff4688e2202c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/benefits","description":"<p>List of all items without any filter</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["benefits"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"0602d93f-ebe4-4d3e-bcee-ff4688e2202c"},{"name":"/benefits/:id","id":"78775f0e-1522-4f6b-86ad-3875b05a2a6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/benefits/1","description":"<p>Get item detail using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["benefits","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"78775f0e-1522-4f6b-86ad-3875b05a2a6f"},{"name":"/benefits/:id","id":"0ed0eb05-8618-469a-8040-6a39d9c60416","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/benefits/1","description":"<p>Delete item using the unique ID</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["benefits","1"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ed0eb05-8618-469a-8040-6a39d9c60416"}],"id":"4621bb67-c84c-4008-a05e-2e60755ce140","description":"<p>Benefits that the families can use in the places</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"4621bb67-c84c-4008-a05e-2e60755ce140","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Families","item":[{"name":"/families - Search by NIS","event":[{"listen":"test","script":{"id":"7243e34e-59ec-4f42-8445-b3201463ec88","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('familyId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"639a55f2-185d-4252-ba13-56d65853611a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/families","description":"<p>Search the family by the responsible unique NIS (Número de Identificação Social)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families"],"host":["http://localhost:3001"],"query":[{"disabled":true,"description":{"content":"<p>Family code</p>\n","type":"text/plain"},"key":"nis","value":"10000000000"}],"variable":[]}},"response":[],"_postman_id":"639a55f2-185d-4252-ba13-56d65853611a"},{"name":"/families/place","event":[{"listen":"test","script":{"id":"bc32ce93-d5ec-409a-9e18-3d5a7f794570","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('familyId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"54f0e089-84f5-470d-b653-d5824055a50a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/families/place?placeStoreId=1","description":"<p>Search the family by the responsible unique NIS (Número de Identificação Social)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families","place"],"host":["http://localhost:3001"],"query":[{"key":"placeStoreId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"54f0e089-84f5-470d-b653-d5824055a50a"},{"name":"/familes/file","id":"df642de3-3f70-4b4a-9059-ab828f36f4da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>CSV file in the expected format</p>\n","type":"file","src":"/Users/baraky/Projetos/resources4vulnerables/backend/docs/postman/files/families_example_large.csv"}]},"url":"http://localhost:3001/families/file","description":"<p>Send the CSV file with the family list that will be used to populate the database</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families","file"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"df642de3-3f70-4b4a-9059-ab828f36f4da"},{"name":"/familes/file-sislame","id":"5168602d-9e68-46a9-ab66-c25fcb0a4eac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>CSV file in the expected format</p>\n","key":"sislame","type":"file","src":"/Users/baraky/Projetos/resources4vulnerables/backend/docs/postman/files/sislame_new.csv"},{"key":"families","type":"file","src":"/Users/baraky/Projetos/resources4vulnerables/backend/docs/postman/files/families_new.csv"}]},"url":"http://localhost:3001/families/file-sislame","description":"<p>Send the CSV file with the family list that will be used to populate the database</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families","file-sislame"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"5168602d-9e68-46a9-ab66-c25fcb0a4eac"},{"name":"/families/dashboard","event":[{"listen":"prerequest","script":{"id":"d3af934c-b820-4347-b87a-2010f3b329d2","exec":[""],"type":"text/javascript"}}],"id":"afd06695-5281-4431-958e-fd7fd6574d3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/families/dashboard","description":"<p>Dashboard info for the families</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families","dashboard"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"afd06695-5281-4431-958e-fd7fd6574d3e"},{"name":"/families/import-status","id":"1ed0e686-fbfc-4faf-b431-d78187037fa2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/families/import-status","description":"<p>Get the current import status for the city</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families","import-status"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ed0e686-fbfc-4faf-b431-d78187037fa2"},{"name":"/families/list-file","id":"baacdaec-2f73-4755-8bf9-9678e12fb5f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/families/list-file","description":"<p>Get file with all the families on the database and their balances</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families","list-file"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"baacdaec-2f73-4755-8bf9-9678e12fb5f8"},{"name":"/families/file-product","id":"ac5ca74d-e185-4674-b506-b1ad86916822","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/Users/appmasters/Documents/Cadastro de Quantitativos de Moradores Favela do Rato v.csv"}]},"url":"http://localhost:3001/families/file-product","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["families","file-product"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac5ca74d-e185-4674-b506-b1ad86916822"}],"id":"b77e1680-94fb-43e1-ad50-a44ce50ac725","description":"<p>Families that will receive the benefits</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"b77e1680-94fb-43e1-ad50-a44ce50ac725","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Consumptions","item":[{"name":"/consumptions","event":[{"listen":"test","script":{"id":"7243e34e-59ec-4f42-8445-b3201463ec88","exec":["// JSON DATA","const jsonData = JSON.parse(responseBody);","","// SET ENV VARS","if (jsonData && jsonData.id) {","    pm.collectionVariables.set('consumptionId', jsonData.id);","}"],"type":"text/javascript"}}],"id":"22765055-3160-41b7-929e-ced58afc8863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"_token_"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"familyId","value":"3","type":"text"},{"key":"value","value":"50","type":"text"},{"key":"nfce","value":"00000","type":"text"},{"key":"image","type":"file","src":"/Users/baraky/Projetos/resources4vulnerables/backend/docs/postman/files/image_example.png"}]},"url":"http://localhost:3001/consumptions","description":"<p>Search the family by the responsible unique NIS (Número de Identificação Social)</p>\n","urlObject":{"path":["consumptions"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"22765055-3160-41b7-929e-ced58afc8863"},{"name":"/consumptions/image","id":"c69cbc90-4af9-44d9-9956-7c12f0270612","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"_token_"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"description":"<p>Image file</p>\n","key":"image","type":"file","src":"/Users/baraky/Projetos/resources4vulnerables/backend/docs/postman/files/image_example.png"}]},"url":"http://localhost:3001/consumptions/image","description":"<p>Send consumption image and save it to the storage</p>\n","urlObject":{"path":["consumptions","image"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"c69cbc90-4af9-44d9-9956-7c12f0270612"},{"name":"/consumptions/report","id":"851486be-c1fb-4263-995d-57f0d785a5fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/consumptions/report?minDate=02-20-2020&maxDate=05-30-2020&placeId=1&placeStoreId=1","description":"<p>Report about the consumptions in the defined interval</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["consumptions","report"],"host":["http://localhost:3001"],"query":[{"description":{"content":"<p>Any format that the moment.js will understand</p>\n","type":"text/plain"},"key":"minDate","value":"02-20-2020"},{"description":{"content":"<p>Any format that the moment.js will understand</p>\n","type":"text/plain"},"key":"maxDate","value":"05-30-2020"},{"description":{"content":"<p>Optional if sending the placeStoreId</p>\n","type":"text/plain"},"key":"placeId","value":"1"},{"description":{"content":"<p>Optional if sending the placeId</p>\n","type":"text/plain"},"key":"placeStoreId","value":"1"}],"variable":[]}},"response":[],"_postman_id":"851486be-c1fb-4263-995d-57f0d785a5fe"}],"id":"2dcedf76-4a53-4d56-a06c-d8b25b48b7df","description":"<p>Families that will receive the benefits</p>\n","event":[{"listen":"prerequest","script":{"id":"42aa2627-0008-48c0-ad44-4a91cfe57720","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9ac24a10-1275-4ed0-9854-34fbb33175ca","type":"text/javascript","exec":[""]}}],"_postman_id":"2dcedf76-4a53-4d56-a06c-d8b25b48b7df","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}},{"name":"Dashboard","item":[{"name":"/dashboard","id":"a7934770-adf8-4e19-bfb7-e0c2e1ad4bdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/dashboard","description":"<p>Basic dashboard endpoints, returning data about consumptions</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}},"urlObject":{"path":["dashboard"],"host":["http://localhost:3001"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7934770-adf8-4e19-bfb7-e0c2e1ad4bdb"}],"id":"1e37b2d6-362c-4ff9-95cd-9edd44332098","description":"<p>General dashboard info endpoints</p>\n","_postman_id":"1e37b2d6-362c-4ff9-95cd-9edd44332098","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]},"isInherited":true,"source":{"_postman_id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","id":"40b5d2cf-41e9-4dab-a67b-7b37283b02d4","name":"Resources 4 Vulnerables","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"}]}},"event":[{"listen":"prerequest","script":{"id":"adae17f8-0f9b-480e-9765-acfa50b4be39","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"658bd9ce-d4f4-4fff-92c6-5e5a942a57f8","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost:3001"},{"key":"authTokenAdmin","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTg0NTI5NzV9.Q4eiAxNz2fDM0B39qVJiBOuDVdd3q22d1mU6x8sUs88"},{"key":"refreshTokenAdmin","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNTk4NDUyNjc1LCJleHAiOjE1OTkzMTY2NzV9.oZ_q6WPKnjY9Oh2EpeINgtxabG9UIAijf7UbSfE1UIc"},{"key":"authTokenOperator","value":"_token_"},{"key":"refreshTokenOperator","value":"_token_"},{"key":"cityId","value":"1"},{"key":"placeId","value":"1"},{"key":"placeStoreId","value":"1"},{"key":"userId","value":"1"},{"key":"institutionId","value":"1"},{"key":"benefitId","value":"1"},{"key":"familyId","value":3},{"key":"consumptionId","value":"1"}]}