{"info":{"_postman_id":"0c08d8dc-d4c3-4f52-9fc1-82995bc78bcc","name":"Primeiro case","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"19296247","collectionId":"0c08d8dc-d4c3-4f52-9fc1-82995bc78bcc","publishedId":"UyxjG6H7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-05-16T03:45:52.000Z"},"item":[{"name":"Create Users","id":"43540f37-9bea-4906-aaf9-908c05b65a2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Vanessa\",\r\n    \"surname\": \"Carvalho\",\r\n    \"phone\": 123456789, \r\n    \"cpf\": 31749316498\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/createUsers","description":"<p>Endpoint para poder cadastrar um usuário no banco de dados. Nele é obrigatório inserir nome, sobrenome e telefone. Cpf e email são opcionais.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["createUsers"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c24f7d0b-3df2-469f-a7f4-cbfb530cb9db","name":"Create Users","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Roger\",\r\n    \"surname\": \"Federer\",\r\n    \"phone\": 456789123,\r\n    \"cpf\": 66954108600,\r\n    \"email\": \"roger@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/createUsers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-KgZ9qlAy42PtFPZXBFVmcQHqo1Y\""},{"key":"Date","value":"Mon, 16 May 2022 02:46:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Usuário criado com sucesso.\"\n}"}],"_postman_id":"43540f37-9bea-4906-aaf9-908c05b65a2f"},{"name":"Get All Users","id":"efbd1aee-b852-494e-b0cc-e1787b687c06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/","description":"<p>Este endpoint serve para trazer uma lista, com todos os usuários cadastrados no banco de dados.</p>\n","urlObject":{"protocol":"http","port":"3003","path":[""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ef53ccec-eee1-4ecc-a43b-04f4950521a2","name":"Get All Users","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3003/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1085"},{"key":"ETag","value":"W/\"43d-pRpOWTleTMOSDsuYQ6wWNSF/IFU\""},{"key":"Date","value":"Mon, 16 May 2022 02:46:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"240dee42-4d0f-43c2-81b6-92db138e8d78\",\n        \"name\": \"Melissa\",\n        \"surname\": \"Lustosa\",\n        \"cpf\": 83555707400,\n        \"email\": \"mel@gmail.com\",\n        \"phone\": 984656477,\n        \"second_phone\": 541236987,\n        \"second_email\": \"melissinha@hotmail.com\"\n    },\n    {\n        \"id\": \"28714bd3-448e-4c73-825c-82d390a5ca11\",\n        \"name\": \"Andre\",\n        \"surname\": \"Matos\",\n        \"cpf\": 23145593803,\n        \"email\": \"and@gmail.com\",\n        \"phone\": 986523147,\n        \"second_phone\": 98765,\n        \"second_email\": null\n    },\n    {\n        \"id\": \"3a386a63-e921-4c72-8ce9-e816e487e348\",\n        \"name\": \"Cleber\",\n        \"surname\": \"Machado\",\n        \"cpf\": 48614561342,\n        \"email\": \"cleber@gmail.com\",\n        \"phone\": 914785236,\n        \"second_phone\": null,\n        \"second_email\": null\n    },\n    {\n        \"id\": \"4fd4a7dc-f4da-466c-b15b-d6de9c098958\",\n        \"name\": \"Rafael\",\n        \"surname\": \"Nadal\",\n        \"cpf\": null,\n        \"email\": null,\n        \"phone\": 874569321,\n        \"second_phone\": null,\n        \"second_email\": null\n    },\n    {\n        \"id\": \"7dd34339-508b-4514-b8f5-d88fe032f01f\",\n        \"name\": \"Roger\",\n        \"surname\": \"Federer\",\n        \"cpf\": 66954108600,\n        \"email\": \"roger@gmail.com\",\n        \"phone\": 456789123,\n        \"second_phone\": null,\n        \"second_email\": null\n    },\n    {\n        \"id\": \"ffcf1fa5-5103-46d6-b29d-d98840537c37\",\n        \"name\": \"William\",\n        \"surname\": \"Sakamoto\",\n        \"cpf\": null,\n        \"email\": null,\n        \"phone\": 984656400,\n        \"second_phone\": null,\n        \"second_email\": null\n    }\n]"}],"_postman_id":"efbd1aee-b852-494e-b0cc-e1787b687c06"},{"name":"Edit User","id":"eccdff71-567f-4e3d-a27f-8a8fe622efc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Vanessinha\",\r\n    \"surname\": \"Machado Rodrigues Silva\",\r\n    \"cpf\": 48614561342,\r\n    \"email\": \"vanessinha@gmail.com\",\r\n    \"phone\": 914785236\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/editUser/:id","description":"<p>Endpoint que serve para fazer mudanças nos dados já cadastrados. Para isso, basta informar o id do usuário, que você deseja fazer as modificações.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["editUser",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"ebea0700-da93-4145-955b-866a73b93852","key":"id"}]}},"response":[{"id":"5d0ca8a0-06a4-40ca-bacb-8a71eb315600","name":"Edit User","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Cleber\",\r\n    \"surname\": \"Machado Rodrigues Silva\",\r\n    \"cpf\": 48614561342,\r\n    \"email\": \"cleber@gmail.com\",\r\n    \"phone\": 914785236\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3003/editUser/:id","protocol":"http","host":["localhost"],"port":"3003","path":["editUser",":id"],"variable":[{"key":"id","value":"3a386a63-e921-4c72-8ce9-e816e487e348"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-3TJdrek4yAe6jlEV1T+/kyi6wcs\""},{"key":"Date","value":"Mon, 16 May 2022 02:48:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Usuário atualizado com sucesso!\"\n}"}],"_postman_id":"eccdff71-567f-4e3d-a27f-8a8fe622efc8"},{"name":"Delete User","id":"0786e846-3311-42ac-ace7-97a6d8605598","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3003/deleteUser/:id","description":"<p>Este endpoint serve para deletar um usuário. Para isso, basta informar o seu id .</p>\n","urlObject":{"protocol":"http","port":"3003","path":["deleteUser",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"6af9f4ba-80e9-4b71-8d13-bb52d824cfbf","key":"id"}]}},"response":[{"id":"c31c1f7b-6d22-40d0-b494-e270583085cc","name":"Delete User","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3003/deleteUser/:id","protocol":"http","host":["localhost"],"port":"3003","path":["deleteUser",":id"],"variable":[{"key":"id","value":"4fd4a7dc-f4da-466c-b15b-d6de9c098958"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-PIDq97duVjB1V8d2xySNwSTb1vg\""},{"key":"Date","value":"Mon, 16 May 2022 02:49:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Usuário deletado com sucesso!\"\n}"}],"_postman_id":"0786e846-3311-42ac-ace7-97a6d8605598"},{"name":"Add a Phone","id":"b1114941-d8b8-4a56-81dc-1b043f612165","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"second_phone\":654987000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/addAnotherPhone/:id","description":"<p>Este endpoint serve para adicionar um novo número de telefone, ao usuário já cadastrado. Para isso, informe o id do usuário, e os números do segundo telefone.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["addAnotherPhone",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"7729a699-1784-4fcc-84a9-4b34fccc6dca","key":"id"}]}},"response":[{"id":"00d96689-6ab5-44cd-9aac-87da0f62c8d3","name":"Add a Phone","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"second_phone\":111111111\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3003/addAnotherPhone/:id","protocol":"http","host":["localhost"],"port":"3003","path":["addAnotherPhone",":id"],"variable":[{"key":"id","value":"7dd34339-508b-4514-b8f5-d88fe032f01f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-OBNRhqJ/Nk6yjCVOn/rbBxawqDA\""},{"key":"Date","value":"Mon, 16 May 2022 02:54:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Segundo telefone adicionado com sucesso!\"\n}"}],"_postman_id":"b1114941-d8b8-4a56-81dc-1b043f612165"},{"name":"Add Another Email","id":"2b556dad-2694-4195-b18b-b03b2c135a87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"second_email\":\"van@hotmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/addAnotherEmail/:id","description":"<p>Este endpoint serve para adicionar um novo email, ao usuário já cadastrado. Para isso, informe o id do usuário, e mais um email.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["addAnotherEmail",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"ebea0700-da93-4145-955b-866a73b93852","key":"id"}]}},"response":[{"id":"11134979-f350-4f71-bb04-58f4f3c415e3","name":"Add Another Email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"second_email\":\"goat@hotmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3003/addAnotherEmail/:id","protocol":"http","host":["localhost"],"port":"3003","path":["addAnotherEmail",":id"],"variable":[{"key":"id","value":"7dd34339-508b-4514-b8f5-d88fe032f01f"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-nBvfKud6ZqDV6ILhG32OQS1VlJ8\""},{"key":"Date","value":"Mon, 16 May 2022 02:56:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Segundo email adicionado com sucesso!\"\n}"}],"_postman_id":"2b556dad-2694-4195-b18b-b03b2c135a87"},{"name":"Get User","id":"d8f3a699-1101-4a66-a5f2-b3c764a8b9dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/user/:id","description":"<p>Pega apenas um usuário cadastrado no banco de dados, Para isso, basta informar o id.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["user",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"ebea0700-da93-4145-955b-866a73b93852","key":"id"}]}},"response":[{"id":"2640acc1-766d-4b46-bd30-bddc47f419de","name":"Get User","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3003/user/:id","protocol":"http","host":["localhost"],"port":"3003","path":["user",":id"],"variable":[{"key":"id","value":"240dee42-4d0f-43c2-81b6-92db138e8d78"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"207"},{"key":"ETag","value":"W/\"cf-tLuC6Ml7sgpGI6zlXePbBCt2gw8\""},{"key":"Date","value":"Mon, 16 May 2022 02:07:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"240dee42-4d0f-43c2-81b6-92db138e8d78\",\n    \"name\": \"Melissa\",\n    \"surname\": \"Lustosa\",\n    \"cpf\": 83555707400,\n    \"email\": \"mel@gmail.com\",\n    \"phone\": 984656477,\n    \"second_phone\": 541236987,\n    \"second_email\": \"melissinha@hotmail.com\"\n}"}],"_postman_id":"d8f3a699-1101-4a66-a5f2-b3c764a8b9dc"}]}