{"info":{"_postman_id":"f56d37cb-e9b3-44ef-82a4-026dbb0459ed","name":"labecommerce","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"24461105","collectionId":"f56d37cb-e9b3-44ef-82a4-026dbb0459ed","publishedId":"2s8ZDVZNoR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-17T22:44:36.000Z"},"item":[{"name":"teste","id":"c1ea144f-e2b3-4b2b-a56e-4c798018095f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/ping","urlObject":{"protocol":"http","port":"3003","path":["ping"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4743a270-0aa0-4f34-b417-0c91c98fa44c","name":"teste","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3003/ping"},"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":"5"},{"key":"ETag","value":"W/\"5-9izEN5MGRjO+eCsMlyjYnLAj6W8\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:38:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Pong!"}],"_postman_id":"c1ea144f-e2b3-4b2b-a56e-4c798018095f"},{"name":"GetAllUsers","id":"8b5fce3e-80cc-44cf-bcc8-bacbe9da56dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/users","urlObject":{"protocol":"http","port":"3003","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cae5268b-f9ad-47aa-ba27-4c368b39650b","name":"GetAllUsers","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3003/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":"816"},{"key":"ETag","value":"W/\"330-bdHlfxpMNyegb1zGfUjHPIGCzAU\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:19:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"users\": [\n        {\n            \"id\": \"u001\",\n            \"name\": \"Filipe\",\n            \"email\": \"filipe@labenu.com\",\n            \"password\": \"filipe123\",\n            \"created_at\": \"2023-01-29 02:05:31\"\n        },\n        {\n            \"id\": \"u002\",\n            \"name\": \"Bárbara\",\n            \"email\": \"barbara@labenu.com\",\n            \"password\": \"barbara123\",\n            \"created_at\": \"2023-01-29 02:05:31\"\n        },\n        {\n            \"id\": \"u003\",\n            \"name\": \"Paula\",\n            \"email\": \"paulinha@labenu.com\",\n            \"password\": \"paulinha123\",\n            \"created_at\": \"2023-01-29 02:05:31\"\n        },\n        {\n            \"id\": \"u004\",\n            \"name\": \"Maria\",\n            \"email\": \"maria@labenu.com\",\n            \"password\": \"maria123\",\n            \"created_at\": \"2023-01-29 02:07:22\"\n        },\n        {\n            \"id\": \"4\",\n            \"name\": \"Ótavio\",\n            \"email\": \"otavio@labenu.com\",\n            \"password\": \"otaviofe3548\",\n            \"created_at\": \"2023-01-29 02:56:13\"\n        },\n        {\n            \"id\": \"u006\",\n            \"name\": \"Sal\",\n            \"email\": \"sal@labenu.com\",\n            \"password\": \"sal789\",\n            \"created_at\": \"2023-01-29 03:04:14\"\n        },\n        {\n            \"id\": \"u007\",\n            \"name\": \"Carol\",\n            \"email\": \"carol@labenu.com\",\n            \"password\": \"carol789\",\n            \"created_at\": \"2023-01-29 03:05:18\"\n        }\n    ]\n}"}],"_postman_id":"8b5fce3e-80cc-44cf-bcc8-bacbe9da56dc"},{"name":"GetAllProducts","id":"4baafc63-8e02-4dab-9135-07e0c9442464","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/products","urlObject":{"protocol":"http","port":"3003","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0411c992-faea-4f84-bc3c-0c6f8c0f42d1","name":"GetAllProducts","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3003/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":"1709"},{"key":"ETag","value":"W/\"6ad-PDtgtj3LhVM0FFUdSmwsKpK2RVQ\""},{"key":"Date","value":"Sun, 29 Jan 2023 02:51:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"id\": \"p001\",\n            \"name\": \"Vestido\",\n            \"price\": 999,\n            \"description\": \"Vestido longo\",\n            \"category\": \"Roupas e calçados\",\n            \"image_url\": \"https: / / static.zara.net / photos / / / 2023 / V / 0 / 1 / p / 2090 / 001 / 922 / 32 / w / 850 / 2090001922 _1_1_1.jpg ? ts = 1670410945115\"\n        },\n        {\n            \"id\": \"p002\",\n            \"name\": \"Camisa\",\n            \"price\": 259,\n            \"description\": \"Camisa Oversize de Popelina\",\n            \"category\": \"Roupas e calçados\",\n            \"image_url\": \"https: / / static.zara.net / photos / / / 2023 / W / 0 / 1 / p / 5165 / 730 / 460 / 2 / w / 850 / 5165730460 _1_1_1.jpg ? ts = 1674475485447\"\n        },\n        {\n            \"id\": \"p003\",\n            \"name\": \"Sapatinha\",\n            \"price\": 269.9,\n            \"description\": \"Sapatilha Boneca em Verniz Preto\",\n            \"category\": \"Roupas e calçados\",\n            \"image_url\": \"https: / / dl1uwy1y5s83r.cloudfront.net / Custom / Content / Products / 05 / 38 / 0538 _sapatilha - boneca - em - verniz - preto_z1_637258298567958406.jpg\"\n        },\n        {\n            \"id\": \"p004\",\n            \"name\": \"Bota\",\n            \"price\": 389.9,\n            \"description\": \"Botinha Vintage Saltinho em Couro Café \",\n            \"category\": \"Roupas e calçados\",\n            \"image_url\": \"https: / / dl1uwy1y5s83r.cloudfront.net / Custom / Content / Products / 21 / 52 / 2152 _botinha - vintage - saltinho - em - couro - cafe_z1_637842345956189788.jpg\"\n        },\n        {\n            \"id\": \"p005\",\n            \"name\": \"Calça Jeans\",\n            \"price\": 279,\n            \"description\": \"Jeans Z1975 mid Rise Long Length\",\n            \"category\": \"Roupas e calçados\",\n            \"image_url\": \"https: / / static.zara.net / photos / / / 2023 / W / 0 / 1 / p / 6164 / 188 / 427 / 502 / w / 850 / 6164188427 _1_1_1.jpg ? ts = 1674041675654\"\n        },\n        {\n            \"id\": \"p006\",\n            \"name\": \"Luva\",\n            \"price\": 179,\n            \"description\": \" Luvas de tule com brinhos\",\n            \"category\": \"Roupas e calçados\",\n            \"image_url\": \"https: / / static.zara.net / photos / / / 2022 / I / 0 / 1 / p / 4548 / 261 / 800 / 2 / w / 850 / 4548261800 _1_1_1.jpg ? ts = 1666348704916\"\n        }\n    ]\n}"}],"_postman_id":"4baafc63-8e02-4dab-9135-07e0c9442464"},{"name":"GetProductsByName","id":"68de3100-a307-4b68-994b-5ec27c5d8f29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"q","value":"Brinco","type":"text"}],"url":"http://localhost:3003/products/search?q=b","urlObject":{"protocol":"http","port":"3003","path":["products","search"],"host":["localhost"],"query":[{"key":"q","value":"b"}],"variable":[]}},"response":[{"id":"728e7663-1ab9-492b-b3ea-c351d6cf2655","name":"GetProductsByName","originalRequest":{"method":"GET","header":[{"key":"q","value":"Brinco","type":"text"}],"url":{"raw":"http://localhost:3003/products/search?q=b","protocol":"http","host":["localhost"],"port":"3003","path":["products","search"],"query":[{"key":"q","value":"b"}]}},"status":"Bad Request","code":400,"_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":"49"},{"key":"ETag","value":"W/\"31-FJCacwlqcwW/xbyZqDge0JHQry8\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:38:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"query params deve possuir pelo menos um caractere"}],"_postman_id":"68de3100-a307-4b68-994b-5ec27c5d8f29"},{"name":"GetAllPurchases","id":"725c17f4-1374-429b-a080-0ae5ed956064","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/purchases","urlObject":{"protocol":"http","port":"3003","path":["purchases"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e9cbb443-7f1e-4d15-b47e-9e7ce34a09aa","name":"GetAllPurchases","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3003/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":"551"},{"key":"ETag","value":"W/\"227-T7C4fDAOTDvyottw3zFA85XKwOA\""},{"key":"Date","value":"Sun, 29 Jan 2023 02:51:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"c001\",\n        \"buyer\": \"u002\",\n        \"total_price\": 999,\n        \"created_at\": \"2023-01-29 02:10:33\",\n        \"paid\": 1\n    },\n    {\n        \"id\": \"c002\",\n        \"buyer\": \"u002\",\n        \"total_price\": 259,\n        \"created_at\": \"2023-01-29 02:10:59\",\n        \"paid\": 1\n    },\n    {\n        \"id\": \"c003\",\n        \"buyer\": \"u003\",\n        \"total_price\": 269.9,\n        \"created_at\": \"2023-01-29 02:11:07\",\n        \"paid\": 1\n    },\n    {\n        \"id\": \"c004\",\n        \"buyer\": \"u003\",\n        \"total_price\": 279,\n        \"created_at\": \"2023-01-29 02:09:55\",\n        \"paid\": 0\n    },\n    {\n        \"id\": \"c005\",\n        \"buyer\": \"u004\",\n        \"total_price\": 389.9,\n        \"created_at\": \"2023-01-29 02:09:55\",\n        \"paid\": 1\n    },\n    {\n        \"id\": \"c006\",\n        \"buyer\": \"u004\",\n        \"total_price\": 259,\n        \"created_at\": \"2023-01-29 02:09:55\",\n        \"paid\": 0\n    }\n]"}],"_postman_id":"725c17f4-1374-429b-a080-0ae5ed956064"},{"name":"GetProductById","id":"12120c06-63fe-488d-8791-244a9695625e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/products/:id","urlObject":{"protocol":"http","port":"3003","path":["products",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"p001","key":"id"}]}},"response":[{"id":"ccf97e16-84cf-4132-9cd2-0d93f58a8a73","name":"GetProductById","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3003/products/:id","protocol":"http","host":["localhost"],"port":"3003","path":["products",":id"],"variable":[{"key":"id","value":"p001"}]}},"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":"272"},{"key":"ETag","value":"W/\"110-786q8FLI9EUNv4zd70ae+XSvvIc\""},{"key":"Date","value":"Sun, 29 Jan 2023 02:52:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": {\n        \"id\": \"p001\",\n        \"name\": \"Vestido\",\n        \"price\": 999,\n        \"description\": \"Vestido longo\",\n        \"category\": \"Roupas e calçados\",\n        \"image_url\": \"https: / / static.zara.net / photos / / / 2023 / V / 0 / 1 / p / 2090 / 001 / 922 / 32 / w / 850 / 2090001922 _1_1_1.jpg ? ts = 1670410945115\"\n    }\n}"}],"_postman_id":"12120c06-63fe-488d-8791-244a9695625e"},{"name":"GetPurchaseByUserId","id":"f84f21cf-fe94-4322-9cb0-ef7e0dce8b69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/users/:id/purchases","urlObject":{"protocol":"http","port":"3003","path":["users",":id","purchases"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"u002","key":"id"}]}},"response":[{"id":"c5fdaf85-dd09-44f5-b09c-b4b81124b75f","name":"GetPurchaseByUserId","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3003/users/:id/purchases","protocol":"http","host":["localhost"],"port":"3003","path":["users",":id","purchases"],"variable":[{"key":"id","value":"u002"}]}},"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":"103"},{"key":"ETag","value":"W/\"67-SIoRA5wdm7QillbQF5o8Hn4l9T0\""},{"key":"Date","value":"Sun, 29 Jan 2023 02:54:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchase\": {\n        \"id\": \"c001\",\n        \"buyer\": \"u002\",\n        \"total_price\": 999,\n        \"created_at\": \"2023-01-29 02:10:33\",\n        \"paid\": 1\n    }\n}"}],"_postman_id":"f84f21cf-fe94-4322-9cb0-ef7e0dce8b69"},{"name":"CreatUser","id":"113a27a8-c1b2-49e8-bb60-9c422c745733","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"id\": \"u007\",\r\n        \"name\": \"Carol\",\r\n        \"email\": \"carol@labenu.com\",\r\n        \"password\": \"carol789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/users","urlObject":{"protocol":"http","port":"3003","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b75ff36a-e45c-47e3-88c0-a51fc72a34c5","name":"CreatUser","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"id\": \"u007\",\r\n        \"name\": \"Carol\",\r\n        \"email\": \"carol@labenu.com\",\r\n        \"password\": \"carol789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/users"},"status":"Bad Request","code":400,"_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":"63"},{"key":"ETag","value":"W/\"3f-vj1q7ZHNAMOPuArow4sRMQNxkBE\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:06:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Este Id não está disponível para cadastro. Tente um novo Id."}],"_postman_id":"113a27a8-c1b2-49e8-bb60-9c422c745733"},{"name":"CreatProduct","id":"e7602628-658e-4fd2-a43d-52cd300e24f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"3\",\r\n    \"name\": \"Camisa\",\r\n    \"price\": 50,\r\n    \"category\": \"Roupas e calçados\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/products","urlObject":{"protocol":"http","port":"3003","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"550b79d0-3e17-4abe-a4af-99bb6b45ccb7","name":"CreatProduct","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"3\",\r\n    \"name\": \"Camisa\",\r\n    \"price\": 50,\r\n    \"category\": \"Roupas e calçados\"\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/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":"30"},{"key":"ETag","value":"W/\"1e-wpMJlBP+XNEQzDHqKLtWklm7pxY\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:38:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Camisa cadastrado com sucesso!"}],"_postman_id":"e7602628-658e-4fd2-a43d-52cd300e24f4"},{"name":"CreatPurchase","id":"c1effe43-f7cf-4a38-b7b8-86bd1b487ed2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"1\",\r\n    \"productId\": \"1\",\r\n    \"quantity\": 3,\r\n    \"totalPrice\": 90 \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/purchases","urlObject":{"protocol":"http","port":"3003","path":["purchases"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6c6f6962-e858-40e5-9a0a-63ec0f78932e","name":"CreatPurchase","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"1\",\r\n    \"productId\": \"1\",\r\n    \"quantity\": 3,\r\n    \"totalPrice\": 90 \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/purchases"},"status":"Bad Request","code":400,"_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":"41"},{"key":"ETag","value":"W/\"29-aMXTZWEivRvg2w51v9TUoykc38c\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:38:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Não foi possivel achar o usuario pelo ID"}],"_postman_id":"c1effe43-f7cf-4a38-b7b8-86bd1b487ed2"},{"name":"DeleteUserById","id":"ef5eea25-5976-4758-8e74-8aa7557495e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3003/user/:id","urlObject":{"protocol":"http","port":"3003","path":["user",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"4","key":"id"}]}},"response":[{"id":"e8542be5-1ab9-4e13-93e8-70691304eecc","name":"DeleteUserById","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3003/user/:id","protocol":"http","host":["localhost"],"port":"3003","path":["user",":id"],"variable":[{"key":"id","value":"4"}]}},"status":"Bad Request","code":400,"_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-CsHqg7EJeJN1GzT1vAwg8eCPl7U\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:07:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Usuário não encontrado!"}],"_postman_id":"ef5eea25-5976-4758-8e74-8aa7557495e3"},{"name":"DeleteProductById","id":"db3e5467-13fb-40ab-b9f6-68890114a325","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3003/product/:id","urlObject":{"protocol":"http","port":"3003","path":["product",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"3","key":"id"}]}},"response":[{"id":"d1e7fcca-fff3-4632-a245-e3289c843f8f","name":"DeleteProductById","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3003/product/:id","protocol":"http","host":["localhost"],"port":"3003","path":["product",":id"],"variable":[{"key":"id","value":"3"}]}},"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":"Sun, 29 Jan 2023 03:39:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Produto apagado com sucesso!"}],"_postman_id":"db3e5467-13fb-40ab-b9f6-68890114a325"},{"name":"EditUserById","id":"043659f8-5c18-475b-a79b-dc545ff39710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \"id\": \"u005\",\r\n        \"name\": \"Ótavio M\",\r\n        \"email\": \"otaviom@labenu.com\",\r\n        \"password\": \"otavio1234\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/user/:id","urlObject":{"protocol":"http","port":"3003","path":["user",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"4","key":"id"}]}},"response":[{"id":"3b200deb-19a4-4099-a18f-e7c9ba5e37e5","name":"EditUserById","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \"id\": \"u005\",\r\n        \"name\": \"Ótavio M\",\r\n        \"email\": \"otaviom@labenu.com\",\r\n        \"password\": \"otavio1234\"\r\n    }","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3003/user/:id","protocol":"http","host":["localhost"],"port":"3003","path":["user",":id"],"variable":[{"key":"id","value":"4"}]}},"status":"Bad Request","code":400,"_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":"24"},{"key":"ETag","value":"W/\"18-eOgazHwLp8Y4HDQIRKZT5ROz0KM\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:00:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Usuáio não encontrado."}],"_postman_id":"043659f8-5c18-475b-a79b-dc545ff39710"},{"name":"EditProductById","id":"13827f3f-d0b4-45ee-8b7c-f0bc56890a13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \"id\": \"1\",\r\n        \"name\": \"Brinco\",\r\n        \"price\": 50,\r\n        \"category\": \"Acessórios\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/product/:id","urlObject":{"protocol":"http","port":"3003","path":["product",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"749f0e74-11ba-4c3a-96d6-ef4572093ad0","name":"EditProductById","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \"id\": \"1\",\r\n        \"name\": \"Brinco\",\r\n        \"price\": 50,\r\n        \"category\": \"Acessórios\"\r\n    }","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3003/product/:id","protocol":"http","host":["localhost"],"port":"3003","path":["product",":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":"31"},{"key":"ETag","value":"W/\"1f-FG5c9WanEUaEA2TOzYWm81WA2oM\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:39:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Produto atualizado com sucesso!"}],"_postman_id":"13827f3f-d0b4-45ee-8b7c-f0bc56890a13"},{"name":"GetAllPurchaseById","id":"19fef5ca-fbb3-4394-9f20-9de8588cce31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3003/purchases/:id","urlObject":{"protocol":"http","port":"3003","path":["purchases",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"c001","key":"id"}]}},"response":[{"id":"a17000aa-98de-4c27-a308-4722d85b2a52","name":"GetAllPurchaseById","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3003/purchases/:id","protocol":"http","host":["localhost"],"port":"3003","path":["purchases",":id"],"variable":[{"key":"id","value":"c001"}]}},"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":"948"},{"key":"ETag","value":"W/\"3b4-x5cSbWEh7z6EjlgbET1lO2QxOL4\""},{"key":"Date","value":"Sun, 29 Jan 2023 03:29:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"purchase\": {\n        \"purchaseID\": \"c001\",\n        \"totalPrice\": 999,\n        \"createdAt\": \"2023-01-29 02:10:33\",\n        \"isPaid\": 1,\n        \"buyerID\": \"u002\",\n        \"email\": \"barbara@labenu.com\",\n        \"name\": \"Bárbara\",\n        \"productsList\": [\n            {\n                \"id\": \"p001\",\n                \"name\": \"Vestido\",\n                \"price\": 999,\n                \"description\": \"Vestido longo\",\n                \"urlImage\": \"https: / / static.zara.net / photos / / / 2023 / V / 0 / 1 / p / 2090 / 001 / 922 / 32 / w / 850 / 2090001922 _1_1_1.jpg ? ts = 1670410945115\",\n                \"quantity\": 1\n            },\n            {\n                \"id\": \"p002\",\n                \"name\": \"Camisa\",\n                \"price\": 259,\n                \"description\": \"Camisa Oversize de Popelina\",\n                \"urlImage\": \"https: / / static.zara.net / photos / / / 2023 / W / 0 / 1 / p / 5165 / 730 / 460 / 2 / w / 850 / 5165730460 _1_1_1.jpg ? ts = 1674475485447\",\n                \"quantity\": 1\n            },\n            {\n                \"id\": \"p003\",\n                \"name\": \"Sapatinha\",\n                \"price\": 269.9,\n                \"description\": \"Sapatilha Boneca em Verniz Preto\",\n                \"urlImage\": \"https: / / dl1uwy1y5s83r.cloudfront.net / Custom / Content / Products / 05 / 38 / 0538 _sapatilha - boneca - em - verniz - preto_z1_637258298567958406.jpg\",\n                \"quantity\": 1\n            }\n        ]\n    }\n}"}],"_postman_id":"19fef5ca-fbb3-4394-9f20-9de8588cce31"}]}