{"info":{"_postman_id":"41d31fed-2179-4f0d-b557-231c20aba96e","name":"Tech Challenge Fiap","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"28694171","collectionId":"41d31fed-2179-4f0d-b557-231c20aba96e","publishedId":"2s9YRCXrYf","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-23T23:32:05.000Z"},"item":[{"name":"Client","item":[{"name":"Get Clients","id":"edd64042-f716-4553-bf08-53c00c3a2f82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/get_clients/","urlObject":{"path":["get_clients",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"eda9c7bb-c6f2-420a-b514-8560a3179cf1","name":"Get Clients","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/get_clients/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:13:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"102"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"cpf\": \"45789632145\",\n        \"email\": \"teste@30teste.com\",\n        \"name\": \"usuario teste30\"\n    }\n]"}],"_postman_id":"edd64042-f716-4553-bf08-53c00c3a2f82"},{"name":"Get Client by CPF","id":"39bbbff9-6817-4f56-97f2-cebcf57a8a53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_client/:cpf","urlObject":{"path":["get_client",":cpf"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"45789632145","key":"cpf"}]}},"response":[{"id":"c5be54ea-3d1b-4986-91f0-6e9ac2cac728","name":"Get Client by CPF","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/get_client/:cpf","host":["http://localhost:5000"],"path":["get_client",":cpf"],"variable":[{"key":"cpf","value":"45789632145"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:14:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"cpf\": \"45789632145\",\n    \"email\": \"teste@30teste.com\",\n    \"name\": \"usuario teste30\"\n}"},{"id":"a8969699-a082-4a1c-8b34-285233c0282a","name":"Get Nonexistent Client","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/get_client/:cpf","host":["http://localhost:5000"],"path":["get_client",":cpf"],"variable":[{"key":"cpf","value":"111999"}]}},"status":"NOT FOUND","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:14:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"44"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"This Client does not exist\"\n}"}],"_postman_id":"39bbbff9-6817-4f56-97f2-cebcf57a8a53"},{"name":"Create Client","id":"8939f957-1a47-4c18-9060-e8a7238fee3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cpf\": \"45789632145\",\n    \"name\": \"usuario teste30\",\n    \"email\": \"teste@30teste.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_client","urlObject":{"path":["create_client"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"68f74856-f149-4e9d-a156-558f7b96324c","name":"Create Client","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cpf\": \"45789632145\",\n    \"name\": \"usuario teste30\",\n    \"email\": \"teste@30teste.com\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_client"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:13:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"cpf\": \"45789632145\",\n    \"email\": \"teste@30teste.com\",\n    \"name\": \"usuario teste30\"\n}"}],"_postman_id":"8939f957-1a47-4c18-9060-e8a7238fee3b"},{"name":"Delete Client","id":"8d6628b3-da1b-4f52-abfa-1164a398c120","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000/delete_client/:cpf","urlObject":{"path":["delete_client",":cpf"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"","key":"cpf"}]}},"response":[],"_postman_id":"8d6628b3-da1b-4f52-abfa-1164a398c120"}],"id":"68c768b4-2c66-42cc-a518-809b887c8a24","_postman_id":"68c768b4-2c66-42cc-a518-809b887c8a24","description":""},{"name":"Product","item":[{"name":"Get Product by ID","id":"4f887dbe-b04c-43d5-bdd6-99953526a6f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_product/:id","urlObject":{"path":["get_product",":id"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"4","key":"id"}]}},"response":[{"id":"735702d7-ebbb-4727-8759-dccec7608e63","name":"Get Product by ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/get_product/:id","host":["http://localhost:5000"],"path":["get_product",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sat, 20 Jan 2024 13:36:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"181"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"description\": \"batata crocante por fora e macia por dentro\",\n    \"image\": \"url_imagem2\",\n    \"is_active\": true,\n    \"name\": \"Batata Frita\",\n    \"prep_time\": 15,\n    \"price\": 20,\n    \"product_id\": 2,\n    \"type\": \"SNACK\"\n}"},{"id":"30da561d-fe7e-4788-8962-3c0042a14326","name":"Get Nonexistent Product","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/get_product/:id","host":["http://localhost:5000"],"path":["get_product",":id"],"variable":[{"key":"id","value":"99"}]}},"status":"NOT FOUND","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:22:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"45"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"This Product does not exist\"\n}"}],"_postman_id":"4f887dbe-b04c-43d5-bdd6-99953526a6f1"},{"name":"Get Products by Type","id":"5e537224-9b57-42ac-9fef-51f12c92b387","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_products/:type","urlObject":{"path":["get_products",":type"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"SNACK","key":"type"}]}},"response":[{"id":"47f7a19c-30cd-4ea5-93ab-b10eb74f8569","name":"Get Products by Type","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/get_products/:type","host":["http://localhost:5000"],"path":["get_products",":type"],"variable":[{"key":"type","value":"SNACK"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:20:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"388"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"description\": \"frangão daora\",\n        \"image\": \"url_imagem1\",\n        \"name\": \"Frango Frito\",\n        \"prep_time\": 300,\n        \"price\": 30,\n        \"product_id\": 1,\n        \"type\": \"SNACK\"\n    },\n    {\n        \"description\": \"hamburguer blend com queijo\",\n        \"image\": \"url_imagem2\",\n        \"name\": \"Cheeseburger\",\n        \"prep_time\": 240,\n        \"price\": 30,\n        \"product_id\": 2,\n        \"type\": \"SNACK\"\n    }\n]"}],"_postman_id":"5e537224-9b57-42ac-9fef-51f12c92b387"},{"name":"Get all products","id":"d09d145a-fddf-42ed-b844-76dcc7bae7ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_products","urlObject":{"path":["get_products"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"0f867647-6878-4292-aafe-be6042bff657","name":"Get all products","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/get_products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:20:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"593"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"description\": \"frangão daora\",\n        \"image\": \"url_imagem1\",\n        \"name\": \"Frango Frito\",\n        \"prep_time\": 300,\n        \"price\": 30,\n        \"product_id\": 1,\n        \"type\": \"SNACK\"\n    },\n    {\n        \"description\": \"Batata frita crocante com sal\",\n        \"image\": \"url_imagem3\",\n        \"name\": \"Batata Frita Grande\",\n        \"prep_time\": 120,\n        \"price\": 18,\n        \"product_id\": 3,\n        \"type\": \"SIDE\"\n    },\n    {\n        \"description\": \"hamburguer blend com queijo\",\n        \"image\": \"url_imagem2\",\n        \"name\": \"Cheeseburger\",\n        \"prep_time\": 240,\n        \"price\": 30,\n        \"product_id\": 2,\n        \"type\": \"SNACK\"\n    }\n]"}],"_postman_id":"d09d145a-fddf-42ed-b844-76dcc7bae7ac"},{"name":"Create Product","id":"098801f0-5ddb-497e-9141-a606e4318e79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"SNACK\",\n    \"name\": \"Frango\",\n    \"price\": \"20\",\n    \"prep_time\": \"30\",\n    \"description\": \"frangão daora\",\n    \"image\": \"url_imagem1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_product","urlObject":{"path":["create_product"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"f219aa17-faaa-45a0-82ef-38b86fcedc20","name":"Create Product Frango","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"SNACK\",\n    \"name\": \"Frango\",\n    \"price\": \"20\",\n    \"prep_time\": \"30\",\n    \"description\": \"frangão daora\",\n    \"image\": \"url_imagem1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:15:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"162"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"description\": \"frangão daora\",\n    \"image\": \"url_imagem1\",\n    \"name\": \"Frango\",\n    \"prep_time\": 30,\n    \"price\": 20,\n    \"product_id\": 1,\n    \"type\": \"SNACK\"\n}"},{"id":"48ac8ac8-c9ea-42eb-b221-1e47d6567275","name":"Create Product Batata","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"SNACK\",\n    \"name\": \"Batata Frita\",\n    \"price\": \"15\",\n    \"prep_time\": \"10\",\n    \"description\": \"batata crocante por fora e macia por dentro\",\n    \"image\": \"url_imagem2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sat, 20 Jan 2024 13:25:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"181"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"description\": \"batata crocante por fora e macia por dentro\",\n    \"image\": \"url_imagem2\",\n    \"is_active\": true,\n    \"name\": \"Batata Frita\",\n    \"prep_time\": 10,\n    \"price\": 15,\n    \"product_id\": 2,\n    \"type\": \"SNACK\"\n}"},{"id":"2896dc2b-18cb-47f0-bd91-d0e26e016f3c","name":"Create Product Hamburguer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"SNACK\",\n    \"name\": \"cheeseburguer\",\n    \"price\": \"35\",\n    \"prep_time\": \"30\",\n    \"description\": \"carne, queijo\",\n    \"image\": \"url_imagem1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sat, 20 Jan 2024 13:28:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"152"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"description\": \"carne, queijo\",\n    \"image\": \"url_imagem1\",\n    \"is_active\": true,\n    \"name\": \"cheeseburguer\",\n    \"prep_time\": 30,\n    \"price\": 35,\n    \"product_id\": 3,\n    \"type\": \"SNACK\"\n}"}],"_postman_id":"098801f0-5ddb-497e-9141-a606e4318e79"},{"name":"Update Product","id":"3ade01e4-f6f8-476d-bf76-1cf1a8c8f97a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"SIDE\",\n    \"name\": \"Batata Frita Média\",\n    \"price\": \"20\",\n    \"prep_time\": \"60\",\n    \"description\": \"batatinha\",\n    \"image\": \"url_imagem2\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/update_product/:id","urlObject":{"path":["update_product",":id"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"777adcd4-5c35-424c-a636-1998625d866b","name":"Update Product","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"type\": \"SNACK\",\n    \"name\": \"Batata Frita\",\n    \"price\": \"20\",\n    \"prep_time\": \"15\",\n    \"description\": \"batata crocante por fora e macia por dentro\",\n    \"image\": \"url_imagem2\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/update_product/:id","host":["http://localhost:5000"],"path":["update_product",":id"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:17:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"169"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"description\": \"frangão daora\",\n    \"image\": \"url_imagem1\",\n    \"name\": \"Frango Frito\",\n    \"prep_time\": 300,\n    \"price\": 30,\n    \"product_id\": 1,\n    \"type\": \"SNACK\"\n}"}],"_postman_id":"3ade01e4-f6f8-476d-bf76-1cf1a8c8f97a"},{"name":"Delete Product","id":"bfbb85e7-db10-45d2-aad1-f4b7f50114f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5000/delete_product/:id","urlObject":{"path":["delete_product",":id"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"3","key":"id"}]}},"response":[{"id":"2ad68158-331c-4711-ac92-b68fd4425c6c","name":"Delete Product","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5000/delete_product/:id","host":["http://localhost:5000"],"path":["delete_product",":id"],"variable":[{"key":"id","value":"3"}]}},"status":"NO CONTENT","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Thu, 26 Oct 2023 23:20:53 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bfbb85e7-db10-45d2-aad1-f4b7f50114f9"}],"id":"939b3aa6-cb81-4c49-bca3-cd39c4927c59","_postman_id":"939b3aa6-cb81-4c49-bca3-cd39c4927c59","description":""},{"name":"Order","item":[{"name":"Create Order","id":"76fc49f8-32d9-45ef-8b78-d4265822f261","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [\n        {\n            \"type\": \"SNACK\",\n            \"name\": \"batata frita media\",\n            \"price\": \"15.00\",\n            \"description\": \"Batata frita media\",\n            \"waiting_time\": 300, \n            \"quantity\": 1,\n            \"observation\": \"sem sal\"\n        }\n    ],\n    \"client_id\": \"45789632145\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_order","urlObject":{"path":["create_order"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"675f5459-05a6-426a-baee-6f0c860ad847","name":"Create Order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [1, 2, 2],\n    \"client_id\": \"45789632145\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Wed, 01 Nov 2023 00:47:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"609"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"client_id\": \"45789632145\",\n    \"order_date\": \"Tue, 31 Oct 2023 00:00:00 GMT\",\n    \"order_id\": 3,\n    \"payment\": {\n        \"id\": 3,\n        \"payed_at\": null,\n        \"qr_code\": \"qr_code\",\n        \"status\": \"UNPAID\"\n    },\n    \"price\": \"65\",\n    \"products\": [\n        {\n            \"name\": \"Batata Frita Média\",\n            \"price\": 20,\n            \"product_id\": 2,\n            \"quantity\": null,\n            \"type\": \"SIDE\"\n        },\n        {\n            \"name\": \"Frango\",\n            \"price\": 25,\n            \"product_id\": 1,\n            \"quantity\": null,\n            \"type\": \"SNACK\"\n        }\n    ],\n    \"products_ids\": [\n        1,\n        2,\n        2\n    ],\n    \"status\": \"WAITING PAYMENT\",\n    \"waiting_time\": 150\n}"},{"id":"76f22032-1257-4aa1-8194-a48017b83b0c","name":"Create Order Nonexistent Product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"products\": [1, 2, 3],\n    \"client_id\": \"45789632145\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/create_order"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Wed, 01 Nov 2023 00:48:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Product does not exist\"\n}"}],"_postman_id":"76fc49f8-32d9-45ef-8b78-d4265822f261"},{"name":"Update Order Status","id":"ee5b7bce-e61a-40a6-824e-b4ebfe70e5f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"PREPARING\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/patch_order/:order_id","urlObject":{"path":["patch_order",":order_id"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"","key":"order_id"}]}},"response":[{"id":"d17eeb25-42bf-44bb-b598-585d90731142","name":"Update Order Status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"COMPLETED\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/patch_order/:id","host":["http://localhost:5000"],"path":["patch_order",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sat, 20 Jan 2024 13:44:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"589"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"client_id\": \"45789632145\",\n    \"order_date\": \"Sat, 20 Jan 2024 00:00:00 GMT\",\n    \"order_id\": 1,\n    \"payment\": {\n        \"id\": 1,\n        \"qr_code\": \"00020101021243650016COM.MERCADOLIBRE02013063638f1192a-5fd1-4180-a180-8bcae3556bc35204000053039865802BR5925IZABEL AAAA DE MELO6007BARUERI62070503***63040B6D\",\n        \"status\": \"PAID\",\n        \"status_updated_at\": \"Sat, 20 Jan 2024 13:29:41 GMT\"\n    },\n    \"price\": \"60\",\n    \"products\": [\n        {\n            \"name\": \"Frango\",\n            \"price\": 20,\n            \"product_id\": 1,\n            \"quantity\": null,\n            \"type\": \"SNACK\"\n        },\n        {\n            \"name\": \"Batata Frita\",\n            \"price\": 20,\n            \"product_id\": 2,\n            \"quantity\": null,\n            \"type\": \"SNACK\"\n        }\n    ],\n    \"products_ids\": [\n        1,\n        2,\n        2\n    ],\n    \"status\": \"COMPLETED\",\n    \"waiting_time\": 60\n}"}],"_postman_id":"ee5b7bce-e61a-40a6-824e-b4ebfe70e5f3"},{"name":"Get Orders","id":"85d76413-36bc-4949-98f4-6a5356384984","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_active_orders","urlObject":{"path":["get_active_orders"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"fadd7c42-7029-4e5c-9478-37863a791da7","name":"Get Orders","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/get_active_orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sat, 20 Jan 2024 13:46:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"811"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"client_id\": \"45789632145\",\n        \"order_date\": \"Sat, 20 Jan 2024 00:00:00 GMT\",\n        \"order_id\": 1,\n        \"payment\": {\n            \"id\": 1,\n            \"qr_code\": \"00020101021243650016COM.MERCADOLIBRE02013063638f1192a-5fd1-4180-a180-8bcae3556bc35204000053039865802BR5925IZABEL AAAA DE MELO6007BARUERI62070503***63040B6D\",\n            \"status\": \"PAID\",\n            \"status_updated_at\": \"Sat, 20 Jan 2024 10:17:23 GMT\"\n        },\n        \"price\": \"80\",\n        \"products\": [\n            {\n                \"name\": \"Frango\",\n                \"price\": 20,\n                \"product_id\": 1,\n                \"quantity\": 1,\n                \"type\": \"SNACK\"\n            },\n            {\n                \"name\": \"Hamburguer\",\n                \"price\": 30,\n                \"product_id\": 5,\n                \"quantity\": 2,\n                \"type\": \"SNACK\"\n            }\n        ],\n        \"products_ids\": null,\n        \"status\": \"PREPARING\",\n        \"waiting_time\": 90\n    }\n]"}],"_postman_id":"85d76413-36bc-4949-98f4-6a5356384984"},{"name":"Get Order By Id","id":"f06ea2b6-a8d6-41d1-b05f-31b01452e40f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_order/3","urlObject":{"path":["get_order","3"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"3a3670f0-7029-491f-b80e-691e8caf3ef1","name":"Get Order By Id","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/get_order/:order_id","host":["http://localhost:5000"],"path":["get_order",":order_id"],"variable":[{"key":"order_id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sat, 20 Jan 2024 13:16:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"720"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"client_id\": \"45789632145\",\n    \"order_date\": \"Sat, 20 Jan 2024 00:00:00 GMT\",\n    \"order_id\": 1,\n    \"payment\": {\n        \"id\": 1,\n        \"qr_code\": \"00020101021243650016COM.MERCADOLIBRE02013063638f1192a-5fd1-4180-a180-8bcae3556bc35204000053039865802BR5925IZABEL AAAA DE MELO6007BARUERI62070503***63040B6D\",\n        \"status\": \"UNPAID\",\n        \"status_updated_at\": null\n    },\n    \"price\": \"80\",\n    \"products\": [\n        {\n            \"name\": \"Frango\",\n            \"price\": 20,\n            \"product_id\": 1,\n            \"quantity\": 1,\n            \"type\": \"SNACK\"\n        },\n        {\n            \"name\": \"Hamburguer\",\n            \"price\": 30,\n            \"product_id\": 5,\n            \"quantity\": 2,\n            \"type\": \"SNACK\"\n        }\n    ],\n    \"products_ids\": null,\n    \"status\": \"PREPARING\",\n    \"waiting_time\": 90\n}"}],"_postman_id":"f06ea2b6-a8d6-41d1-b05f-31b01452e40f"},{"name":"Check Order's Payment","id":"1a4d0c96-9e60-4e06-98f8-72f1f39e8908","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_order/payment/:order_id","urlObject":{"path":["get_order","payment",":order_id"],"host":["http://localhost:5000"],"query":[],"variable":[{"type":"any","value":"","key":"order_id"}]}},"response":[{"id":"05642e9d-e2d2-42b7-b732-a70b9ef3d6ed","name":"Check Order's Payment","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/get_order/payment/:order_id","host":["http://localhost:5000"],"path":["get_order","payment",":order_id"],"variable":[{"key":"order_id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sun, 28 Jan 2024 15:44:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"220"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"qr_code\": \"00020101021243650016COM.MERCADOLIBRE02013063638f1192a-5fd1-4180-a180-8bcae3556bc35204000053039865802BR5925IZABEL AAAA DE MELO6007BARUERI62070503***63040B6D\",\n    \"status\": \"UNPAID\",\n    \"status_updated_at\": null\n}"}],"_postman_id":"1a4d0c96-9e60-4e06-98f8-72f1f39e8908"},{"name":"Get All Orders","id":"b4a407e0-d643-4022-be9e-a0358c87e078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/get_orders","urlObject":{"path":["get_orders"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4a407e0-d643-4022-be9e-a0358c87e078"}],"id":"87ab9802-6dae-454a-8fbe-2cb10bdf5447","_postman_id":"87ab9802-6dae-454a-8fbe-2cb10bdf5447","description":""},{"name":"Financial","item":[{"name":"[Webhook] Mercado Pago","id":"1327c487-36b5-4c2a-8e66-db5e2c985c0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 12345,\n    \"live_mode\": true,\n    \"type\": \"payment\",\n    \"date_created\": \"2015-03-25T10:04:58.396-04:00\",\n    \"user_id\": 44444,\n    \"api_version\": \"v1\",\n    \"action\": \"payment.created\",\n    \"data\": {\n        \"id\": \"999999999\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/webhook/update_payment","urlObject":{"path":["webhook","update_payment"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[{"id":"cfbc8258-3047-4c77-8319-e2b288b0d139","name":"[Webhook] Mercado Pago","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": 12345,\n    \"live_mode\": true,\n    \"type\": \"payment\",\n    \"date_created\": \"2015-03-25T10:04:58.396-04:00\",\n    \"user_id\": 44444,\n    \"api_version\": \"v1\",\n    \"action\": \"payment.updated\",\n    \"data\": {\n        \"id\": \"1\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/webhook/update_payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.8.18"},{"key":"Date","value":"Sat, 20 Jan 2024 13:17:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"1327c487-36b5-4c2a-8e66-db5e2c985c0d"},{"name":"Create Payment","id":"4f95647b-91d5-4139-9759-37024548e79e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"value\": 460\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url_payment}}/create_payment","urlObject":{"path":["create_payment"],"host":["{{base_url_payment}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4f95647b-91d5-4139-9759-37024548e79e"},{"name":"Get Payments","id":"6508464b-0bec-4847-979b-0572f5c4f53e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"6508464b-0bec-4847-979b-0572f5c4f53e"}],"id":"8b84edb4-1ccb-43bb-b36c-fcae734619fd","_postman_id":"8b84edb4-1ccb-43bb-b36c-fcae734619fd","description":""},{"name":"Token","id":"8046ab83-617c-46ae-bb4f-8e57fcb17979","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://xbw1xvmh6a.execute-api.us-east-2.amazonaws.com/validate","urlObject":{"protocol":"https","path":["validate"],"host":["xbw1xvmh6a","execute-api","us-east-2","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8046ab83-617c-46ae-bb4f-8e57fcb17979"}],"variable":[{"key":"base_url","value":"http://localhost:5000"},{"key":"localhost","value":"base_url"},{"key":"url_base","value":"http://127.0.0.1:5002"}]}