{"info":{"_postman_id":"9731bcf3-528d-42f1-8738-c8a53bddf96f","name":"projeto-labecommerce","description":"<html><head></head><body><p>StartFragment</p>\n<p><em><strong>Labecommerce</strong></em>&nbsp;é&nbsp;um&nbsp;projeto&nbsp;de&nbsp;<em>BackEnd</em>,&nbsp;onde&nbsp;pratiquei&nbsp;toda&nbsp;a&nbsp;base&nbsp;de&nbsp;criação&nbsp;de&nbsp;uma&nbsp;API&nbsp;vinculada&nbsp;a&nbsp;</p>\n<p>um&nbsp;banco&nbsp;de&nbsp;dados.</p>\n<p>EndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20168491","collectionId":"9731bcf3-528d-42f1-8738-c8a53bddf96f","publishedId":"2s8ZDU4PE5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-15T23:18:57.000Z"},"item":[{"name":"users","item":[{"name":"getAllUsers","id":"86054725-38c0-4ef2-b254-a3b0b0fff8dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/users","description":"<p>Busca todas as pessoas da lista de users</p>\n","urlObject":{"protocol":"http","port":"3001","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"64221491-d971-4ee2-b9c9-127c2236a6f6","name":"getAllUsers","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"815"},{"key":"ETag","value":"W/\"32f-M1HWgfrjsDS32MJwtUo7eEI4L6M\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:13:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"1\",\n        \"name\": \"Maria Júlia\",\n        \"email\": \"mariajulia56@gmail.com\",\n        \"password\": \"mariaju12374\",\n        \"created_at\": \"2023-01-23 21:22:42\"\n    },\n    {\n        \"id\": \"3\",\n        \"name\": \"Virginia\",\n        \"email\": \"virginia_fonseca@gmail.com\",\n        \"password\": \"pa76543\",\n        \"created_at\": \"2023-01-23 21:22:42\"\n    },\n    {\n        \"id\": \"4\",\n        \"name\": \"Adriana\",\n        \"email\": \"adriana@gmail.com\",\n        \"password\": \"ad12345\",\n        \"created_at\": \"2023-01-23 21:22:56\"\n    },\n    {\n        \"id\": \"5\",\n        \"name\": \"Maria Madalena\",\n        \"email\": \"mariamadalena@gmail.com\",\n        \"password\": \"md12345\",\n        \"created_at\": \"2023-01-24 15:36:52\"\n    },\n    {\n        \"id\": \"6\",\n        \"name\": \"helena\",\n        \"email\": \"helena@gmail.com\",\n        \"password\": \"he12345\",\n        \"created_at\": \"2023-01-26 16:55:40\"\n    },\n    {\n        \"id\": \"8\",\n        \"name\": \"Lorenna\",\n        \"email\": \"lou@gmail.com\",\n        \"password\": \"lou123\",\n        \"created_at\": \"2023-01-27 20:11:20\"\n    },\n    {\n        \"id\": \"9\",\n        \"name\": \"Patrícia\",\n        \"email\": \"paty@gmail.com\",\n        \"password\": \"paty123\",\n        \"created_at\": \"2023-01-27 20:12:22\"\n    }\n]"}],"_postman_id":"86054725-38c0-4ef2-b254-a3b0b0fff8dc"},{"name":"createUser","id":"50577089-afed-4d89-aaa1-cd12e86b111f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"11\",\r\n    \"name\": \"Mari\",\r\n    \"email\": \"marimaria@gmail.com\",\r\n    \"password\": \"marimar123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/users","description":"<p>Cria uma nova pessoa na lista de users</p>\n","urlObject":{"protocol":"http","port":"3001","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2c02f73b-07a1-447a-a725-dd278e6668b9","name":"createUser","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"11\",\r\n    \"name\": \"Mari\",\r\n    \"email\": \"marimaria@gmail.com\",\r\n    \"password\": \"marimar123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/users"},"status":"Created","code":201,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-D0zftJ0iAFKKXrXNIUJ5+P5YqZs\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:15:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Cadastro realizado com sucesso!"}],"_postman_id":"50577089-afed-4d89-aaa1-cd12e86b111f"},{"name":"deleteUserById","id":"601c93f1-0811-4819-b35f-9cba37c7c7c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/user/:id","description":"<p>Deleta o usuário pelo id.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["user",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"9","key":"id"}]}},"response":[{"id":"bcc3781a-cc34-4591-aa4f-07648cc7445c","name":"deleteUserById","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3001/user/:id","protocol":"http","host":["localhost"],"port":"3001","path":["user",":id"],"variable":[{"key":"id","value":"9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"25"},{"key":"ETag","value":"W/\"19-YnTGzmpdug+y7BB8ZrZBKfOWPBM\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:15:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"User apagado com sucesso!"}],"_postman_id":"601c93f1-0811-4819-b35f-9cba37c7c7c5"},{"name":"editUserById","id":"be91d967-f135-4279-a041-72671e90ca3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"mariajulia11@gmail.com\",\r\n    \"password\": \"mariaju123734\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/user/:id","description":"<p>Edita qualquer informação do usuário.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["user",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"e6915dd3-75c2-40b7-b558-95c6d6034585","name":"editUserById","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"mariajulia11@gmail.com\",\r\n    \"password\": \"mariaju123734\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3001/user/:id","protocol":"http","host":["localhost"],"port":"3001","path":["user",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-kLFIeSclnP0S8D1rMTJjKyHTg0g\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:16:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Cadastro atualizado com sucesso!"}],"_postman_id":"be91d967-f135-4279-a041-72671e90ca3c"}],"id":"6b9b87ce-f83f-4bb5-8d1e-edb28765338f","_postman_id":"6b9b87ce-f83f-4bb5-8d1e-edb28765338f","description":""},{"name":"products","item":[{"name":"getAllProducts","id":"40530155-3c65-446a-8055-dcf34c36996e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/products","description":"<p>Busca todos os produtos da lista de produtos.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cfe1c2bd-0d6b-4a92-a55a-0db87a2ec62e","name":"getAllProducts","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1925"},{"key":"ETag","value":"W/\"785-mriDzGSMOsHmV2ESWkgq4WzrSMo\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:17:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"p01\",\n        \"name\": \"Body Splash\",\n        \"price\": 35,\n        \"category\": \"Cosméticos\",\n        \"description\": \"Body Splash Desodorante Corporal\",\n        \"image_url\": \"https://giovannababy.vteximg.com.br/arquivos/ids/158088-1200-1200/BS_Classic.jpg?v=637685181526570000\"\n    },\n    {\n        \"id\": \"p02\",\n        \"name\": \"Colar de prata\",\n        \"price\": 43.95,\n        \"category\": \"Acessórios\",\n        \"description\": \"Colar Ponto de Luz Duplo confeccionado na Prata 925\",\n        \"image_url\": \"https://i.pinimg.com/564x/c5/e6/13/c5e613705052f96d3fd5e258f8be0d26.jpg\"\n    },\n    {\n        \"id\": \"p04\",\n        \"name\": \"Delineador\",\n        \"price\": 29.9,\n        \"category\": \"Maquiagens\",\n        \"description\": \"Delineador líquido\",\n        \"image_url\": \"https://i.pinimg.com/564x/8d/c1/94/8dc194370af2543a43c812dcfc96acb1.jpg\"\n    },\n    {\n        \"id\": \"p05\",\n        \"name\": \"Lip Tint\",\n        \"price\": 15.2,\n        \"category\": \"Maquiagens\",\n        \"description\": \"Batom Matte Rosa Longa duração\",\n        \"image_url\": \"https://i.pinimg.com/564x/f8/92/bd/f892bde05dcc9afefa4bda3cae408323.jpg\"\n    },\n    {\n        \"id\": \"p06\",\n        \"name\": \"Perfume\",\n        \"price\": 100,\n        \"category\": \"Cosméticos\",\n        \"description\": \"Egeo Cherry Blast\",\n        \"image_url\": \"https://i.pinimg.com/564x/4e/4a/a3/4e4aa38167b4fd623bf85c1fa6a9197a.jpg\"\n    },\n    {\n        \"id\": \"p07\",\n        \"name\": \"Brincos\",\n        \"price\": 25.8,\n        \"category\": \"Acessórios\",\n        \"description\": \"Brinco de Argola Flor Íris Prata\",\n        \"image_url\": \"https://www.piuka.com.br/media/catalog/product/cache/67e72deeb45f53794a57e07fb433497d/b/r/brinco-piuka-argola-flor-iris-prata_1_.jpg\"\n    },\n    {\n        \"id\": \"p08\",\n        \"name\": \"Relógio Smartwatch\",\n        \"price\": 34.5,\n        \"category\": \"Acessórios\",\n        \"description\": \"Relógio Smartwatch D20 com Bluetooh resistente a água para Android/IOS\",\n        \"image_url\": \"https://m.media-amazon.com/images/I/51nlDnORYIL.__AC_SX300_SY300_QL70_ML2_.jpg\"\n    },\n    {\n        \"id\": \"p09\",\n        \"name\": \"Creme Hidratante\",\n        \"price\": 96.9,\n        \"category\": \"Cosméticos\",\n        \"description\": \"Creme Acetinado Hidratante Desodorante Corporal Lily\",\n        \"image_url\": \"https://a-static.mlcdn.com.br/800x560/creme-acetinado-hidratante-desodorante-corporal-lily-250g-oboticario/avariedades/f905c2b435d411ecb6c74201ac185033/9b58bbcad89e92ef7800ca2f51305f26.jpeg\"\n    }\n]"}],"_postman_id":"40530155-3c65-446a-8055-dcf34c36996e"},{"name":"searchProductByName","id":"3abf27f6-27c5-4abb-933f-5c3eead22547","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/product/search?q=b","description":"<p>Procura o produto pelo nome.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["product","search"],"host":["localhost"],"query":[{"key":"q","value":"b"}],"variable":[]}},"response":[{"id":"6e0d7bc4-54d4-46bc-ae60-ca71aa3804c8","name":"searchProductByName","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/product/search?q=b","protocol":"http","host":["localhost"],"port":"3001","path":["product","search"],"query":[{"key":"q","value":"b"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"501"},{"key":"ETag","value":"W/\"1f5-N/y9uF3RnPYvuWGEVmJjf+FbVyY\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:17:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"p01\",\n        \"name\": \"Body Splash\",\n        \"price\": 35,\n        \"category\": \"Cosméticos\",\n        \"description\": \"Body Splash Desodorante Corporal\",\n        \"image_url\": \"https://giovannababy.vteximg.com.br/arquivos/ids/158088-1200-1200/BS_Classic.jpg?v=637685181526570000\"\n    },\n    {\n        \"id\": \"p07\",\n        \"name\": \"Brincos\",\n        \"price\": 25.8,\n        \"category\": \"Acessórios\",\n        \"description\": \"Brinco de Argola Flor Íris Prata\",\n        \"image_url\": \"https://www.piuka.com.br/media/catalog/product/cache/67e72deeb45f53794a57e07fb433497d/b/r/brinco-piuka-argola-flor-iris-prata_1_.jpg\"\n    }\n]"}],"_postman_id":"3abf27f6-27c5-4abb-933f-5c3eead22547"},{"name":"createProduct","id":"23d27ccd-553b-49ef-9abe-a237c7416168","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"p10\",\r\n    \"name\": \"Sérum Facial Vitamina C\",\r\n    \"price\": 13.50,\r\n    \"category\": \"Cosméticos\",\r\n    \"description\": \"Sérum Facial Vitamina C, 10 em 1, Pele Hidratada, Macia e Iluminada, 30ml, Max Love\",\r\n    \"image_url\": \"https://m.media-amazon.com/images/I/51YWO10mxtL.__AC_SX300_SY300_QL70_ML2_.jpg\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/products","description":"<p>Cria um novo produto na lista de produtos.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"486b9bef-f1a4-4502-a653-66c9728cfe94","name":"createProduct","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"p10\",\r\n    \"name\": \"Sérum Facial Vitamina C\",\r\n    \"price\": 13.50,\r\n    \"category\": \"Cosméticos\",\r\n    \"description\": \"Sérum Facial Vitamina C, 10 em 1, Pele Hidratada, Macia e Iluminada, 30ml, Max Love\",\r\n    \"image_url\": \"https://m.media-amazon.com/images/I/51YWO10mxtL.__AC_SX300_SY300_QL70_ML2_.jpg\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/products"},"status":"Created","code":201,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-dGaT/R1SzUJmo289sbsEtoB3ZE0\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:18:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Produto cadastrado com sucesso!"}],"_postman_id":"23d27ccd-553b-49ef-9abe-a237c7416168"},{"name":"getProductsById","id":"bba24cce-a3ad-4194-999b-f7dee3ff0eb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/products/:id","description":"<p>Busca por produtos baseado em um id da lista de produtos.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["products",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"p02","key":"id"}]}},"response":[{"id":"d9335efe-637e-4676-b8bc-754a940ad3a9","name":"getProductsById","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/products/:id","protocol":"http","host":["localhost"],"port":"3001","path":["products",":id"],"variable":[{"key":"id","value":"p02"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"229"},{"key":"ETag","value":"W/\"e5-JncJ7wjib6h6iccQgeYXSzfwiW4\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:18:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"p02\",\n    \"name\": \"Colar de prata\",\n    \"price\": 43.95,\n    \"category\": \"Acessórios\",\n    \"description\": \"Colar Ponto de Luz Duplo confeccionado na Prata 925\",\n    \"image_url\": \"https://i.pinimg.com/564x/c5/e6/13/c5e613705052f96d3fd5e258f8be0d26.jpg\"\n}"}],"_postman_id":"bba24cce-a3ad-4194-999b-f7dee3ff0eb1"},{"name":"deleteProductById","id":"cf601a36-6a08-4682-973b-66001ee5cff0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/product/:id","description":"<p>Deleta um produto pelo id.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["product",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"p10","key":"id"}]}},"response":[{"id":"83a6cc8e-a381-49bc-9e9f-0524aee7e79d","name":"deleteProductById","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3001/product/:id","protocol":"http","host":["localhost"],"port":"3001","path":["product",":id"],"variable":[{"key":"id","value":"p10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-m8LQ1dGLY+KxI6f2vQebEtIVlO8\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:18:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Produto apagado com sucesso!"}],"_postman_id":"cf601a36-6a08-4682-973b-66001ee5cff0"},{"name":"editProductById","id":"60138b7a-6d5d-4bc3-b8ac-f4d7abbb471b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"price\": 29.99\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/product/:id","description":"<p>Edita um produto pelo id.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["product",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"p04","key":"id"}]}},"response":[{"id":"2b23ad84-08e2-4847-b838-f24ccc71f420","name":"editProductById","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"price\": 29.99\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3001/product/:id","protocol":"http","host":["localhost"],"port":"3001","path":["product",":id"],"variable":[{"key":"id","value":"p04"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"237"},{"key":"ETag","value":"W/\"ed-kq89+q+hHOoCyowPUimwbnOLTGA\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:19:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"produto\": {\n        \"name\": \"Delineador\",\n        \"price\": 29.99,\n        \"category\": \"Maquiagens\",\n        \"description\": \"Delineador líquido\",\n        \"image_url\": \"https://i.pinimg.com/564x/8d/c1/94/8dc194370af2543a43c812dcfc96acb1.jpg\"\n    },\n    \"message\": \"Produto atualizado com sucesso!\"\n}"}],"_postman_id":"60138b7a-6d5d-4bc3-b8ac-f4d7abbb471b"}],"id":"cc134496-dbf4-4821-ac7c-2cdeffff97d6","_postman_id":"cc134496-dbf4-4821-ac7c-2cdeffff97d6","description":""},{"name":"purchases","item":[{"name":"createPurchase","id":"41cb6fcc-be83-45a6-b5ed-4d5b508dee23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"pu19\",\r\n    \"buyer_id\": \"4\",\r\n    \"products\": [\r\n        {\r\n            \"productId\": \"p01\",\r\n            \"quantity\": \"2\"\r\n        },\r\n        {\r\n             \"productId\": \"p05\",\r\n            \"quantity\": \"1\"\r\n        }\r\n\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/purchases","description":"<p>Cria um pedido na tabela de purchases.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["purchases"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"32fa00bf-532a-4c6e-a576-55268cf00b01","name":"createPurchase","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"pu19\",\r\n    \"buyer_id\": \"4\",\r\n    \"products\": [\r\n        {\r\n            \"productId\": \"p01\",\r\n            \"quantity\": \"2\"\r\n        },\r\n        {\r\n             \"productId\": \"p05\",\r\n            \"quantity\": \"1\"\r\n        }\r\n\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/purchases"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"575"},{"key":"ETag","value":"W/\"23f-3KFSMB9RhwcA6tV5W3LZcsfBQSU\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:20:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"pu19\",\n        \"buyer\": \"4\",\n        \"totalPrice\": 85.2,\n        \"products\": [\n            {\n                \"id\": \"p01\",\n                \"name\": \"Body Splash\",\n                \"price\": 35,\n                \"category\": \"Cosméticos\",\n                \"description\": \"Body Splash Desodorante Corporal\",\n                \"image_url\": \"https://giovannababy.vteximg.com.br/arquivos/ids/158088-1200-1200/BS_Classic.jpg?v=637685181526570000\",\n                \"quantity\": \"2\"\n            },\n            {\n                \"id\": \"p05\",\n                \"name\": \"Lip Tint\",\n                \"price\": 15.2,\n                \"category\": \"Maquiagens\",\n                \"description\": \"Batom Matte Rosa Longa duração\",\n                \"image_url\": \"https://i.pinimg.com/564x/f8/92/bd/f892bde05dcc9afefa4bda3cae408323.jpg\",\n                \"quantity\": \"1\"\n            }\n        ]\n    },\n    \"message\": \"Pedido realizado com sucesso!\"\n}"}],"_postman_id":"41cb6fcc-be83-45a6-b5ed-4d5b508dee23"},{"name":"getAllPurchases","id":"2132edd7-f5d0-4734-bb48-954602a590a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/purchases","description":"<p>Mostra todos os pedidos da tabela purchases.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["purchases"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ea62ec5b-3f59-4c2e-9038-ef5ca690c921","name":"getAllPurchases","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/purchases"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1215"},{"key":"ETag","value":"W/\"4bf-ofgPgMApp3gW4UXb+ZeDS2T78MI\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:20:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"pu01\",\n        \"total_price\": 35,\n        \"paid\": 0,\n        \"created_at\": \"2023-01-26 16:15:42\",\n        \"buyer_id\": \"1\"\n    },\n    {\n        \"id\": \"pu02\",\n        \"total_price\": 45,\n        \"paid\": 0,\n        \"created_at\": \"2023-01-26 16:15:42\",\n        \"buyer_id\": \"1\"\n    },\n    {\n        \"id\": \"pu04\",\n        \"total_price\": 92.25,\n        \"paid\": 0,\n        \"created_at\": \"2023-01-26 16:15:42\",\n        \"buyer_id\": \"3\"\n    },\n    {\n        \"id\": \"pu06\",\n        \"total_price\": 100,\n        \"paid\": 0,\n        \"created_at\": \"2023-01-26 16:15:42\",\n        \"buyer_id\": \"4\"\n    },\n    {\n        \"id\": \"pu08\",\n        \"total_price\": 77.4,\n        \"paid\": 0,\n        \"created_at\": \"2023-01-27 00:09:38\",\n        \"buyer_id\": \"3\"\n    },\n    {\n        \"id\": \"pu010\",\n        \"total_price\": 200,\n        \"paid\": 0,\n        \"created_at\": \"2023-01-27 00:16:47\",\n        \"buyer_id\": \"3\"\n    },\n    {\n        \"id\": \"pu13\",\n        \"total_price\": 631.25,\n        \"paid\": 1,\n        \"created_at\": \"2023-01-27 02:49:33\",\n        \"buyer_id\": \"3\"\n    },\n    {\n        \"id\": \"pu14\",\n        \"total_price\": 737.05,\n        \"paid\": 1,\n        \"created_at\": \"2023-01-27 02:51:43\",\n        \"buyer_id\": \"3\"\n    },\n    {\n        \"id\": \"pu15\",\n        \"total_price\": 268.4,\n        \"paid\": 1,\n        \"created_at\": \"2023-01-27 18:11:39\",\n        \"buyer_id\": \"4\"\n    },\n    {\n        \"id\": \"pu12\",\n        \"total_price\": 118.65,\n        \"paid\": 1,\n        \"created_at\": \"2023-01-27 18:14:27\",\n        \"buyer_id\": \"6\"\n    },\n    {\n        \"id\": \"pu16\",\n        \"total_price\": 131.85000000000002,\n        \"paid\": 1,\n        \"created_at\": \"2023-01-27 18:16:38\",\n        \"buyer_id\": \"5\"\n    },\n    {\n        \"id\": \"pu18\",\n        \"total_price\": 131.4,\n        \"paid\": 1,\n        \"created_at\": \"2023-01-27 20:08:53\",\n        \"buyer_id\": \"5\"\n    },\n    {\n        \"id\": \"pu19\",\n        \"total_price\": 85.2,\n        \"paid\": 1,\n        \"created_at\": \"2023-01-27 22:20:23\",\n        \"buyer_id\": \"4\"\n    }\n]"}],"_postman_id":"2132edd7-f5d0-4734-bb48-954602a590a4"},{"name":"deletePurchaseById","id":"ce5d442d-da7b-48d6-b39a-5cfcffa49c00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/purchases/:id?=","description":"<p>Deleta um pedido pelo id.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["purchases",":id"],"host":["localhost"],"query":[{"key":"","value":""}],"variable":[{"type":"any","value":"pu18","key":"id"}]}},"response":[{"id":"2f43991b-351f-4e1b-9236-e03b5846ea6f","name":"deletePurchaseById","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3001/purchases/:id?=","protocol":"http","host":["localhost"],"port":"3001","path":["purchases",":id"],"query":[{"key":"","value":""}],"variable":[{"key":"id","value":"pu18"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-NguM5289ejXzi+SVdjtUJyy27aU\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:21:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Pedido cancelado com sucesso!\"\n}"}],"_postman_id":"ce5d442d-da7b-48d6-b39a-5cfcffa49c00"},{"name":"getPurchaseById","id":"8955dc17-6ed2-4c88-8ce7-4c9d0ae0c2f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/purchases/:id","description":"<p>Mostra todos os pedidos feito por um usuário.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["purchases",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"pu13","key":"id"}]}},"response":[{"id":"9b4f6fd1-0181-42a0-83fc-83660b43eba5","name":"getPurchaseById","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/purchases/:id","protocol":"http","host":["localhost"],"port":"3001","path":["purchases",":id"],"variable":[{"key":"id","value":"pu13"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"873"},{"key":"ETag","value":"W/\"369-5GdqEi4xxtj7bXHAtJfi83VT7Bk\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:21:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchaseId\": \"pu13\",\n    \"totalPrice\": 631.25,\n    \"createdAt\": \"2023-01-27 02:49:33\",\n    \"isPaid\": true,\n    \"buyerId\": \"3\",\n    \"email\": \"virginia_fonseca@gmail.com\",\n    \"name\": \"Virginia\",\n    \"productsList\": [\n        {\n            \"id\": \"p01\",\n            \"name\": \"Body Splash\",\n            \"price\": 35,\n            \"category\": \"Cosméticos\",\n            \"description\": \"Body Splash Desodorante Corporal\",\n            \"image_url\": \"https://giovannababy.vteximg.com.br/arquivos/ids/158088-1200-1200/BS_Classic.jpg?v=637685181526570000\",\n            \"quantity\": 10\n        },\n        {\n            \"id\": \"p02\",\n            \"name\": \"Colar de prata\",\n            \"price\": 43.95,\n            \"category\": \"Acessórios\",\n            \"description\": \"Colar Ponto de Luz Duplo confeccionado na Prata 925\",\n            \"image_url\": \"https://i.pinimg.com/564x/c5/e6/13/c5e613705052f96d3fd5e258f8be0d26.jpg\",\n            \"quantity\": 5\n        },\n        {\n            \"id\": \"p04\",\n            \"name\": \"Delineador\",\n            \"price\": 29.99,\n            \"category\": \"Maquiagens\",\n            \"description\": \"Delineador líquido\",\n            \"image_url\": \"https://i.pinimg.com/564x/8d/c1/94/8dc194370af2543a43c812dcfc96acb1.jpg\",\n            \"quantity\": 2\n        }\n    ]\n}"}],"_postman_id":"8955dc17-6ed2-4c88-8ce7-4c9d0ae0c2f6"},{"name":"getUserPurchasesByUserId","id":"2124afa7-83cb-4920-946a-f1a0659725c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/users/:id/purchases","urlObject":{"protocol":"http","port":"3001","path":["users",":id","purchases"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""}],"variable":[{"type":"any","value":"4","key":"id"}]}},"response":[{"id":"81c7be7a-5fd3-4a18-8107-0bad318475f8","name":"getUserPurchasesByUserId","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3001/users/:id/purchases","protocol":"http","host":["localhost"],"port":"3001","path":["users",":id","purchases"],"query":[{"key":"","value":"","disabled":true},{"key":"","value":"","disabled":true}],"variable":[{"key":"id","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"90"},{"key":"ETag","value":"W/\"5a-bJ77LqyFP3trK1O/+pEXAAYZNf4\""},{"key":"Date","value":"Fri, 27 Jan 2023 22:21:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"pu06\",\n    \"total_price\": 100,\n    \"paid\": 0,\n    \"created_at\": \"2023-01-26 16:15:42\",\n    \"buyer_id\": \"4\"\n}"}],"_postman_id":"2124afa7-83cb-4920-946a-f1a0659725c8"}],"id":"f57cead4-6fcf-4a96-b899-009ed54892e5","_postman_id":"f57cead4-6fcf-4a96-b899-009ed54892e5","description":""}]}