{"info":{"_postman_id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","name":"SimpleBKs","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14123497","collectionId":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","publishedId":"2s9YeD9DCh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-11-25T14:35:10.000Z"},"item":[{"name":"Health","id":"2b2fee80-4369-49c3-a4e9-1da312c86bb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://simplebks.onrender.com/","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","name":"SimpleBKs","type":"collection"}},"urlObject":{"protocol":"https","path":[""],"host":["simplebks","onrender","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b2fee80-4369-49c3-a4e9-1da312c86bb1"},{"name":"GET: Order Items","event":[{"listen":"prerequest","script":{"id":"67e14765-6a90-4c15-8b4a-34f890e09370","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"88e227f8-6360-4359-98c0-d038b620d89c","exec":["const res = pm.response.json().data[0]\r","console.log(res)\r","pm.collectionVariables.set(\"ProductId\",res.product_id);\r","pm.collectionVariables.set(\"OrderItemId\", res.id);"],"type":"text/javascript"}}],"id":"84c8c4b1-cc56-4a95-b85b-c5f2881cabcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://simplebks.onrender.com/order_items?offset=1&limit=2&sort=price","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","name":"SimpleBKs","type":"collection"}},"urlObject":{"protocol":"https","path":["order_items"],"host":["simplebks","onrender","com"],"query":[{"key":"offset","value":"1"},{"key":"limit","value":"2"},{"key":"sort","value":"price"}],"variable":[]}},"response":[{"id":"2ab3f533-7932-4817-ab81-56edac2f9a63","name":"GET: Order Items","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic MzQ0MmY4OTU5YTg0ZGVhN2VlMTk3YzYzMmNiMmRmMTU6MTMwMjM=","disabled":true}],"url":{"raw":"https://simplebks.onrender.com/order_items?offset=1&limit=2&sort=price","protocol":"https","host":["simplebks","onrender","com"],"path":["order_items"],"query":[{"key":"offset","value":"1"},{"key":"limit","value":"2"},{"key":"sort","value":"price"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"data\": [\r\n        {\r\n            \"id\": 3,\r\n            \"product_id\": \"591cf821695e4e2934a87e07122f7839\",\r\n            \"product_category\": \"fashion_bolsas_e_acessorios\",\r\n            \"price\": 16,\r\n            \"date\": \"6/10/2018 21:52\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"591cf821695e4e2934a87e07122f7839\",\r\n            \"product_category\": \"fashion_bolsas_e_acessorios\",\r\n            \"price\": 16,\r\n            \"date\": \"6/10/2018 21:52\"\r\n        },\r\n        {\r\n            \"id\": 2,\r\n            \"product_id\": \"3a95236711511b32855804d3a6287595\",\r\n            \"product_category\": \"fashion_bolsas_e_acessorios\",\r\n            \"price\": 19,\r\n            \"date\": \"4/30/2018 7:31\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"3a95236711511b32855804d3a6287595\",\r\n            \"product_category\": \"fashion_bolsas_e_acessorios\",\r\n            \"price\": 19,\r\n            \"date\": \"3/16/2018 18:09\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"3a95236711511b32855804d3a6287595\",\r\n            \"product_category\": \"fashion_bolsas_e_acessorios\",\r\n            \"price\": 19,\r\n            \"date\": \"2/27/2018 13:10\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"bc7f7a995ff963c23da53e0856e8b6a3\",\r\n            \"product_category\": \"fashion_bolsas_e_acessorios\",\r\n            \"price\": 19,\r\n            \"date\": \"3/22/2018 15:55\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"3/29/2017 21:50\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"12/27/2017 7:18\"\r\n        },\r\n        {\r\n            \"id\": 3,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"7/26/2018 4:25\"\r\n        },\r\n        {\r\n            \"id\": 2,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"7/26/2018 4:25\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"7/26/2018 4:25\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"7/7/2017 1:25\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"11/21/2017 19:06\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"9/4/2017 4:25\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"7/28/2017 20:35\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"5/5/2017 13:06\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"38b5079a807bb9f22ddfa46f929accee\",\r\n            \"product_category\": \"perfumaria\",\r\n            \"price\": 21,\r\n            \"date\": \"11/17/2017 18:06\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"9c7ce59c96e74dfdfc51f13a4a6c3869\",\r\n            \"product_category\": \"relogios_presentes\",\r\n            \"price\": 29,\r\n            \"date\": \"11/9/2017 15:35\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"2136c70bbe723d338fab53da3c03e6dc\",\r\n            \"product_category\": \"relogios_presentes\",\r\n            \"price\": 29,\r\n            \"date\": \"7/9/2017 23:23\"\r\n        },\r\n        {\r\n            \"id\": 1,\r\n            \"product_id\": \"5c692818d313aa12864b48ac0c2472c2\",\r\n            \"product_category\": \"relogios_presentes\",\r\n            \"price\": 29,\r\n            \"date\": \"11/23/2017 3:50\"\r\n        }\r\n    ],\r\n    \"total\": 2033,\r\n    \"limit\": 20,\r\n    \"offset\": 1\r\n}"}],"_postman_id":"84c8c4b1-cc56-4a95-b85b-c5f2881cabcb"},{"name":"DELETE: Order Items","id":"52124bdc-1d35-4878-8b43-5bb02586d2b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://simplebks.onrender.com/order_items/591cf821695e4e2934a87e07122f7839/3","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","name":"SimpleBKs","type":"collection"}},"urlObject":{"protocol":"https","path":["order_items","591cf821695e4e2934a87e07122f7839","3"],"host":["simplebks","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"9f444582-f1a2-4f6a-8dcc-ae59b673baa6","name":"DELETE: Order Items","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic MzQ0MmY4OTU5YTg0ZGVhN2VlMTk3YzYzMmNiMmRmMTU6MTMwMjM=","disabled":true}],"url":"https://simplebks.onrender.com/order_items/591cf821695e4e2934a87e07122f7839/3"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Order item deleted successfully\"\r\n}"}],"_postman_id":"52124bdc-1d35-4878-8b43-5bb02586d2b6"},{"name":"Update Account Location","id":"618e37fc-ed7e-4a65-b3e5-343a400673c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n  \"city\": \"ASA\",\n  \"state\": \"Kwara\"\n}","options":{"raw":{"language":"json"}}},"url":"https://simplebks.onrender.com/account","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","id":"8fe6cafd-e7fb-4cc7-884e-834bffb77594","name":"SimpleBKs","type":"collection"}},"urlObject":{"protocol":"https","path":["account"],"host":["simplebks","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"52bea0a7-3545-47a9-8800-bfd86976af40","name":"Update Account Location","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Basic MzQ0MmY4OTU5YTg0ZGVhN2VlMTk3YzYzMmNiMmRmMTU6MTMwMjM=","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"city\": \"ASA\",\n  \"state\": \"Kwara\"\n}","options":{"raw":{"language":"json"}}},"url":"https://simplebks.onrender.com/account"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"city\": \"ASA\",\n        \"state\": \"Kwara\"\n    }\n}"}],"_postman_id":"618e37fc-ed7e-4a65-b3e5-343a400673c2"}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]}},"event":[{"listen":"prerequest","script":{"id":"de827795-e3c0-4702-a290-bd319a964451","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2749e674-8fbb-47e5-ba88-d067bcbff364","type":"text/javascript","exec":[""]}}],"variable":[{"key":"ProductId","value":"591cf821695e4e2934a87e07122f7839","type":"string"},{"key":"OrderItemId","value":"3","type":"string"}]}