{"info":{"_postman_id":"70081662-20fb-4a2a-8451-eda3653f49e7","name":"Projeto Delivery App","description":"<html><head></head><body><h1 id=\"documentacao-de-uma-api-rest-para-uma-plataforma-de-delivery-de-bebidas\">Documentação de uma API Rest para uma plataforma de delivery de bebidas.</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Documentação de uma API Rest para uma plataforma de delivery de bebidas.","slug":"documentacao-de-uma-api-rest-para-uma-plataforma-de-delivery-de-bebidas"}],"owner":"26063649","collectionId":"70081662-20fb-4a2a-8451-eda3653f49e7","publishedId":"2s93JutNXU","public":true,"customColor":{"top-bar":"FFF","right-sidebar":"000","highlight":"FFC800"},"publishDate":"2023-03-13T23:04:43.000Z"},"item":[{"name":"Login","id":"4ca0ff5c-38f2-4c79-b506-5bb3e3b988fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"zebirita@email.com\",\n  \"password\": \"$#zebirita#$\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/login","urlObject":{"protocol":"http","port":"3001","path":["login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0b3ede71-be81-4fca-945b-034d2319100c","name":"Ex","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"zebirita@email.com\",\n  \"password\": \"$#zebirita#$\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"},{"key":"Content-Length","value":"331"},{"key":"ETag","value":"W/\"14b-cuzdPFmQ3efO+2BjctD6KFqcXLc\""},{"key":"Date","value":"Mon, 13 Mar 2023 20:48:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"name\": \"Cliente Zé Birita\",\n    \"email\": \"zebirita@email.com\",\n    \"role\": \"customer\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywibmFtZSI6IkNsaWVudGUgWsOpIEJpcml0YSIsImVtYWlsIjoiemViaXJpdGFAZW1haWwuY29tIiwicm9sZSI6ImN1c3RvbWVyIiwiaWF0IjoxNjc4NzQwNTE2LCJleHAiOjE2Nzg4MjY5MTZ9.rIMHXDYdk2tk2Hm24QDkL9_bYOod2MstTYPgQiO9djk\"\n}"}],"_postman_id":"4ca0ff5c-38f2-4c79-b506-5bb3e3b988fd"},{"name":"Register","id":"6649fcd9-b242-4eb2-ab9e-ebfbe2a06e30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"zé Cachaça boa\",\n  \"email\": \"zecachaca@email.com\",\n  \"password\": \"51umaboaideia\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/register","urlObject":{"protocol":"http","port":"3001","path":["register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0b6874ae-c508-4e3b-8978-b4fcab26bf1a","name":"Ex","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"zé Cachaça boa\",\n  \"email\": \"zecachaca@email.com\",\n  \"password\": \"51umaboaideia\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/register"},"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":"329"},{"key":"ETag","value":"W/\"149-n8s4uIyIHK0dshzkEcBcI1ZLky4\""},{"key":"Date","value":"Mon, 13 Mar 2023 21:05:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"name\": \"zé Cachaça boa\",\n    \"email\": \"zecachaca@email.com\",\n    \"role\": \"customer\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NCwibmFtZSI6InrDqSBDYWNoYcOnYSBib2EiLCJlbWFpbCI6InplY2FjaGFjYUBlbWFpbC5jb20iLCJyb2xlIjoiY3VzdG9tZXIiLCJpYXQiOjE2Nzg3NDE1MzIsImV4cCI6MTY3ODgyNzkzMn0.qpibbjuQMlFUGk_JE1QXA-2iqxHHeZG2qIbTSjJqAC8\"\n}"}],"_postman_id":"6649fcd9-b242-4eb2-ab9e-ebfbe2a06e30"},{"name":"Register  by  Adm","id":"990d18bb-860c-4c10-a065-7d3f53002694","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"sicrana pereira\",\n  \"email\": \"sicrana@email.com\",\n  \"password\": \"123456789\",\n  \"role\": \"seller\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/register/admin","urlObject":{"protocol":"http","port":"3001","path":["register","admin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9c058ce1-44c2-4c8b-bac7-8d61b9e54ac2","name":"Ex","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"sicrana pereira\",\n  \"email\": \"sicrana@email.com\",\n  \"password\": \"123456789\",\n  \"role\": \"seller\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/register/admin"},"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":"317"},{"key":"ETag","value":"W/\"13d-NzEqddCllLAZEmLWkPjawEWKme4\""},{"key":"Date","value":"Mon, 13 Mar 2023 22:46:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 6,\n    \"name\": \"sicrana pereira\",\n    \"email\": \"sicrana@email.com\",\n    \"role\": \"seller\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NiwibmFtZSI6InNpY3JhbmEgcGVyZWlyYSIsImVtYWlsIjoic2ljcmFuYUBlbWFpbC5jb20iLCJyb2xlIjoic2VsbGVyIiwiaWF0IjoxNjc4NzQ3NTY0LCJleHAiOjE2Nzg4MzM5NjR9.GqkzRoMfNhd9P1b2FHGvV_0fyZUwMLAlpuAgeBCvbg8\"\n}"}],"_postman_id":"990d18bb-860c-4c10-a065-7d3f53002694"},{"name":"Users","id":"9273318b-db0c-4855-83b6-5da44ff8c7e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/login/users","urlObject":{"protocol":"http","port":"3001","path":["login","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"716d2298-c28f-4789-ae40-92a35441af35","name":"Ex","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/login/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":"425"},{"key":"ETag","value":"W/\"1a9-xFbWJAnH0J99ImjyqRzZNgH7uPs\""},{"key":"Date","value":"Mon, 13 Mar 2023 21:38:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Delivery App Admin\",\n        \"email\": \"adm@deliveryapp.com\",\n        \"role\": \"administrator\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Fulana Pereira\",\n        \"email\": \"fulana@deliveryapp.com\",\n        \"role\": \"seller\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Cliente Zé Birita\",\n        \"email\": \"zebirita@email.com\",\n        \"role\": \"customer\"\n    },\n    {\n        \"id\": 4,\n        \"name\": \"zé Cachaça boa\",\n        \"email\": \"zecachaca@email.com\",\n        \"role\": \"customer\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"sicrana pereira\",\n        \"email\": \"sicrana@email.com\",\n        \"role\": \"administrator\"\n    }\n]"}],"_postman_id":"9273318b-db0c-4855-83b6-5da44ff8c7e3"},{"name":"Delete User","id":"8923cb12-4eea-4f67-a3fe-aa2478518671","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/login/users/remove/5","urlObject":{"protocol":"http","port":"3001","path":["login","users","remove","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f085e5f2-c5b6-45d8-b932-29ddb6835fdc","name":"Ex","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/login/users/remove/5"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Date","value":"Mon, 13 Mar 2023 21:41:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8923cb12-4eea-4f67-a3fe-aa2478518671"},{"name":"All Products","id":"62a1aa6f-d092-40fd-979f-b44701031a86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/products","urlObject":{"protocol":"http","port":"3001","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b11405e4-6ebe-4467-bcc9-8c430b39d284","name":"Ex","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/sales/register"},"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":"1264"},{"key":"ETag","value":"W/\"4f0-28PVbqrci9vKK57ebaqvBbLx2H0\""},{"key":"Date","value":"Mon, 13 Mar 2023 21:50:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Skol Lata 250ml\",\n        \"price\": \"2.20\",\n        \"urlImage\": \"http://localhost:3001/images/skol_lata_350ml.jpg\"\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Heineken 600ml\",\n        \"price\": \"7.50\",\n        \"urlImage\": \"http://localhost:3001/images/heineken_600ml.jpg\"\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Antarctica Pilsen 300ml\",\n        \"price\": \"2.49\",\n        \"urlImage\": \"http://localhost:3001/images/antarctica_pilsen_300ml.jpg\"\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Brahma 600ml\",\n        \"price\": \"7.50\",\n        \"urlImage\": \"http://localhost:3001/images/brahma_600ml.jpg\"\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Skol 269ml\",\n        \"price\": \"2.19\",\n        \"urlImage\": \"http://localhost:3001/images/skol_269ml.jpg\"\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Skol Beats Senses 313ml\",\n        \"price\": \"4.49\",\n        \"urlImage\": \"http://localhost:3001/images/skol_beats_senses_313ml.jpg\"\n    },\n    {\n        \"id\": 7,\n        \"name\": \"Becks 330ml\",\n        \"price\": \"4.99\",\n        \"urlImage\": \"http://localhost:3001/images/becks_330ml.jpg\"\n    },\n    {\n        \"id\": 8,\n        \"name\": \"Brahma Duplo Malte 350ml\",\n        \"price\": \"2.79\",\n        \"urlImage\": \"http://localhost:3001/images/brahma_duplo_malte_350ml.jpg\"\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Becks 600ml\",\n        \"price\": \"8.89\",\n        \"urlImage\": \"http://localhost:3001/images/becks_600ml.jpg\"\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Skol Beats Senses 269ml\",\n        \"price\": \"3.57\",\n        \"urlImage\": \"http://localhost:3001/images/skol_beats_senses_269ml.jpg\"\n    },\n    {\n        \"id\": 11,\n        \"name\": \"Stella Artois 275ml\",\n        \"price\": \"3.49\",\n        \"urlImage\": \"http://localhost:3001/images/stella_artois_275ml.jpg\"\n    }\n]"}],"_postman_id":"62a1aa6f-d092-40fd-979f-b44701031a86"},{"name":"Salles Registers","id":"b45cf540-c986-4a8e-8939-e2c8827551cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywibmFtZSI6IkNsaWVudGUgWsOpIEJpcml0YSIsImVtYWlsIjoiemViaXJpdGFAZW1haWwuY29tIiwicm9sZSI6ImN1c3RvbWVyIiwiaWF0IjoxNjc4NzQwNTE2LCJleHAiOjE2Nzg4MjY5MTZ9.rIMHXDYdk2tk2Hm24QDkL9_bYOod2MstTYPgQiO9djk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"userId\": 3,\n    \"sellerId\": 2,\n    \"totalPrice\": 9.70,\n    \"deliveryAddress\": \"logo ali\",\n    \"deliveryNumber\": \"1\",\n    \"products\": [\n      {\n        \"id\": 1,\n        \"name\": \"Skol Lata 250ml\",\n        \"price\": 2.20,\n        \"urlImage\": \"http: //localhost:3001/images/skol_lata_350ml.jpg\",\n        \"quantity\": 1\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Heineken 600ml\",\n        \"price\": 7.50,\n        \"urlImage\": \"http: //localhost:3001/images/heineken_600ml.jpg\",\n        \"quantity\": 1\n      }\n    ]\n  }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/sales/register","urlObject":{"protocol":"http","port":"3001","path":["sales","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0a979509-4da8-42e6-8a38-320f5e686bfc","name":"Ex","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywibmFtZSI6IkNsaWVudGUgWsOpIEJpcml0YSIsImVtYWlsIjoiemViaXJpdGFAZW1haWwuY29tIiwicm9sZSI6ImN1c3RvbWVyIiwiaWF0IjoxNjc4NzQwNTE2LCJleHAiOjE2Nzg4MjY5MTZ9.rIMHXDYdk2tk2Hm24QDkL9_bYOod2MstTYPgQiO9djk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"userId\": 3,\n    \"sellerId\": 2,\n    \"totalPrice\": 9.70,\n    \"deliveryAddress\": \"logo ali\",\n    \"deliveryNumber\": \"1\",\n    \"products\": [\n      {\n        \"id\": 1,\n        \"name\": \"Skol Lata 250ml\",\n        \"price\": 2.20,\n        \"urlImage\": \"http: //localhost:3001/images/skol_lata_350ml.jpg\",\n        \"quantity\": 1\n      },\n      {\n        \"id\": 2,\n        \"name\": \"Heineken 600ml\",\n        \"price\": 7.50,\n        \"urlImage\": \"http: //localhost:3001/images/heineken_600ml.jpg\",\n        \"quantity\": 1\n      }\n    ]\n  }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/sales/register"},"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":"157"},{"key":"ETag","value":"W/\"9d-KBNPTVRTb07hJwqCnGK+04tiqX4\""},{"key":"Date","value":"Mon, 13 Mar 2023 22:20:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"saleDate\": \"2023-03-13T22:20:29.959Z\",\n    \"id\": 5,\n    \"userId\": 3,\n    \"sellerId\": 2,\n    \"deliveryAddress\": \"logo ali\",\n    \"deliveryNumber\": \"1\",\n    \"status\": \"Pendente\",\n    \"totalPrice\": 9.7\n}"}],"_postman_id":"b45cf540-c986-4a8e-8939-e2c8827551cb"},{"name":"Salles Details Id","id":"8b67a422-965b-4bfc-922a-1b91075fad61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/sales/orders/details/3","urlObject":{"protocol":"http","port":"3001","path":["sales","orders","details","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bfdf2cc0-73ec-4f29-9946-e9c767fa1208","name":"Ex","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/sales/orders/details/3"},"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-bFdJJWneVin2K4L3e/Y7+s3Qquc\""},{"key":"Date","value":"Mon, 13 Mar 2023 22:12:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"userId\": 3,\n    \"sellerId\": 2,\n    \"totalPrice\": \"118.97\",\n    \"deliveryAddress\": \"av. Boa Ideia\",\n    \"deliveryNumber\": \"51\",\n    \"saleDate\": \"2023-03-13T21:22:00.000Z\",\n    \"status\": \"Pendente\",\n    \"seller\": {\n        \"id\": 2,\n        \"name\": \"Fulana Pereira\"\n    },\n    \"products\": [\n        {\n            \"id\": 4,\n            \"name\": \"Brahma 600ml\",\n            \"price\": \"7.50\",\n            \"urlImage\": \"http://localhost:3001/images/brahma_600ml.jpg\",\n            \"SalesProducts\": {\n                \"quantity\": 1\n            }\n        },\n        {\n            \"id\": 5,\n            \"name\": \"Skol 269ml\",\n            \"price\": \"2.19\",\n            \"urlImage\": \"http://localhost:3001/images/skol_269ml.jpg\",\n            \"SalesProducts\": {\n                \"quantity\": 1\n            }\n        },\n        {\n            \"id\": 10,\n            \"name\": \"Skol Beats Senses 269ml\",\n            \"price\": \"3.57\",\n            \"urlImage\": \"http://localhost:3001/images/skol_beats_senses_269ml.jpg\",\n            \"SalesProducts\": {\n                \"quantity\": 5\n            }\n        },\n        {\n            \"id\": 6,\n            \"name\": \"Skol Beats Senses 313ml\",\n            \"price\": \"4.49\",\n            \"urlImage\": \"http://localhost:3001/images/skol_beats_senses_313ml.jpg\",\n            \"SalesProducts\": {\n                \"quantity\": 7\n            }\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Heineken 600ml\",\n            \"price\": \"7.50\",\n            \"urlImage\": \"http://localhost:3001/images/heineken_600ml.jpg\",\n            \"SalesProducts\": {\n                \"quantity\": 8\n            }\n        }\n    ]\n}"}],"_postman_id":"8b67a422-965b-4bfc-922a-1b91075fad61"},{"name":"All Sellers","id":"56337a26-f959-4430-8ba9-b52882c88cfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/sales/seller","urlObject":{"protocol":"http","port":"3001","path":["sales","seller"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"182228e6-fcfb-4559-a79f-5d5a65b1be66","name":"All sellers","originalRequest":{"method":"GET","header":[]},"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":"129"},{"key":"ETag","value":"W/\"81-o1dA3mAQcVu+OdqGO4gVLy1BidM\""},{"key":"Date","value":"Mon, 13 Mar 2023 22:21:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"name\": \"Fulana Pereira\",\n        \"email\": \"fulana@deliveryapp.com\",\n        \"password\": \"3c28d2b0881bf46457a853e0b07531c6\",\n        \"role\": \"seller\"\n    }\n]"}],"_postman_id":"56337a26-f959-4430-8ba9-b52882c88cfa"},{"name":"Update Order Status","id":"fe7f3dc4-0588-4105-8b46-c197333b9870","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{ \n    \"newStatus\": \"Em Trânsito\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/sales/status/1","urlObject":{"protocol":"http","port":"3001","path":["sales","status","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"868aef5e-834c-488d-b37e-60c16c16a766","name":"Ex","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{ \n    \"newStatus\": \"Em Trânsito\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/sales/status/1"},"status":"Accepted","code":202,"_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":"16"},{"key":"ETag","value":"W/\"10-nhrBcUZ7sSGRh39qHqnUvK9+WLc\""},{"key":"Date","value":"Mon, 13 Mar 2023 22:26:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"Status updated\""}],"_postman_id":"fe7f3dc4-0588-4105-8b46-c197333b9870"},{"name":"Sales by seller","id":"31627fec-3802-4f7b-bb91-45b34fa51b83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/sales/seller/2","urlObject":{"protocol":"http","port":"3001","path":["sales","seller","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"231517a5-03ea-4be9-9dc0-18c682299071","name":"Ex","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/sales/seller/2"},"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":"663"},{"key":"ETag","value":"W/\"297-nzGVt/prBvMK1n1FQtDcGLGCgIc\""},{"key":"Date","value":"Mon, 13 Mar 2023 22:47:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"userId\": 3,\n        \"sellerId\": 2,\n        \"totalPrice\": \"32.15\",\n        \"deliveryAddress\": \"aaaaa\",\n        \"deliveryNumber\": \"50\",\n        \"saleDate\": \"2023-03-06T20:06:04.000Z\",\n        \"status\": \"Em Trânsito\"\n    },\n    {\n        \"id\": 2,\n        \"userId\": 3,\n        \"sellerId\": 2,\n        \"totalPrice\": \"59.95\",\n        \"deliveryAddress\": \"av. Boa Ideia\",\n        \"deliveryNumber\": \"51\",\n        \"saleDate\": \"2023-03-08T20:24:11.000Z\",\n        \"status\": \"Pendente\"\n    },\n    {\n        \"id\": 3,\n        \"userId\": 3,\n        \"sellerId\": 2,\n        \"totalPrice\": \"118.97\",\n        \"deliveryAddress\": \"av. Boa Ideia\",\n        \"deliveryNumber\": \"51\",\n        \"saleDate\": \"2023-03-13T21:22:00.000Z\",\n        \"status\": \"Entregue\"\n    },\n    {\n        \"id\": 5,\n        \"userId\": 3,\n        \"sellerId\": 2,\n        \"totalPrice\": \"9.70\",\n        \"deliveryAddress\": \"logo ali\",\n        \"deliveryNumber\": \"1\",\n        \"saleDate\": \"2023-03-13T22:20:29.000Z\",\n        \"status\": \"Pendente\"\n    }\n]"}],"_postman_id":"31627fec-3802-4f7b-bb91-45b34fa51b83"}]}