{"info":{"_postman_id":"942a467d-2887-4d1d-87e0-c4e2684fd452","name":"POS","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"35385637","collectionId":"942a467d-2887-4d1d-87e0-c4e2684fd452","publishedId":"2sA3s1mqs3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-08T03:53:24.000Z"},"item":[{"name":"saveCus","id":"23dc4e84-1c6f-469c-aa76-30a7998f0c34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"C00-003\",\r\n    \"name\": \"vish\",\r\n    \"address\": \"galle\",\r\n    \"email\": \"vish@gmail.com\",\r\n    \"contact\": \"0776583265\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/customer","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a53d4d5d-23ca-4b1c-8551-caf034f02328","name":"saveCus","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"C00-002\",\r\n    \"name\": \"tharu\",\r\n    \"address\": \"galle\",\r\n    \"email\": \"tharu@gmail.com\",\r\n    \"contact\": \"0776583265\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_Backend/customer"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 08 Aug 2024 03:30:14 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"23dc4e84-1c6f-469c-aa76-30a7998f0c34"},{"name":"saveItem","id":"db12c20f-cf5d-436f-87e4-0fd2348b00a6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"description\": \"cheese-burger\",\r\n        \"id\": \"I00-003\",\r\n        \"name\": \"Burger\",\r\n        \"unit_price\": 900.0\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/item","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5f73afe0-4683-4413-840e-f18223453691","name":"saveItem","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"description\": \"cheese-burger\",\r\n        \"id\": \"I00-003\",\r\n        \"name\": \"Burger\",\r\n        \"unit_price\": 900.0\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_Backend/item"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 08 Aug 2024 03:36:38 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"db12c20f-cf5d-436f-87e4-0fd2348b00a6"},{"name":"updateCus","id":"9ad2e61c-187a-453d-8ec2-97a67aa69397","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"address\": \"Anuradhapura\",\r\n        \"contact\": \"0745679213\",\r\n        \"email\": \"namalP@gmail.com\",\r\n        \"name\": \"Namal Perera\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/customer/C00-003","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","customer","C00-003"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fac560c4-8e4c-4c62-a2d6-0a86de08f3a9","name":"updateCus","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n        \"address\": \"Anuradhapura\",\r\n        \"contact\": \"0745679213\",\r\n        \"email\": \"namalP@gmail.com\",\r\n        \"id\": \"C00-003\",\r\n        \"name\": \"Namal Perera\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_Backend/customer"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Date","value":"Thu, 08 Aug 2024 03:33:04 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9ad2e61c-187a-453d-8ec2-97a67aa69397"},{"name":"updateItem","id":"d734154b-37b4-4d20-a582-7316fceb9fd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"pizza\",\r\n    \"description\": \"Cheese pizza\",\r\n    \"unit_price\": 1050.0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/item/I00-002","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","item","I00-002"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"52c7fe10-ada6-4562-926f-f740d12ec756","name":"updateItem","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"I00-003\",\r\n    \"name\": \"pizza\",\r\n    \"description\": \"Cheese pizza\",\r\n    \"unit_price\": 1050.0\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_Backend/item"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Date","value":"Thu, 08 Aug 2024 03:37:47 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d734154b-37b4-4d20-a582-7316fceb9fd6"},{"name":"getAllCus","id":"90bd6703-6999-4fa5-9f95-400489f8fb4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/customer","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1edfc101-42b1-493e-b635-a9c8e84f0a82","name":"getAllCus","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/POS_Backend/customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 08 Aug 2024 03:32:03 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"address\": \"Jaffna\",\n        \"contact\": \"0713304110\",\n        \"email\": \"uchi@gmail.com\",\n        \"id\": \"C00-001\",\n        \"name\": \"uchithma\"\n    },\n    {\n        \"address\": \"galle\",\n        \"contact\": \"0776583265\",\n        \"email\": \"tharu@gmail.com\",\n        \"id\": \"C00-002\",\n        \"name\": \"tharu\"\n    },\n    {\n        \"address\": \"matara\",\n        \"contact\": \"0745679213\",\n        \"email\": \"namalS@gmail.com\",\n        \"id\": \"C00-003\",\n        \"name\": \"Namal Silva\"\n    }\n]"}],"_postman_id":"90bd6703-6999-4fa5-9f95-400489f8fb4b"},{"name":"getAllItems","id":"4b51d2b6-ff69-43f3-aa8d-cbad2b57df2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/item","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0ff92599-3ec8-433e-8ec7-aaa027f333f6","name":"getAllItems","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/POS_Backend/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 08 Aug 2024 03:36:50 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"description\": \"double chicken\",\n        \"id\": \"I00-001\",\n        \"name\": \"Sandwitch\",\n        \"unit_price\": 600\n    },\n    {\n        \"description\": \"large chicken\",\n        \"id\": \"I00-002\",\n        \"name\": \"Pizza\",\n        \"unit_price\": 1500\n    },\n    {\n        \"description\": \"cheese-burger\",\n        \"id\": \"I00-003\",\n        \"name\": \"Burger\",\n        \"unit_price\": 900\n    }\n]"}],"_postman_id":"4b51d2b6-ff69-43f3-aa8d-cbad2b57df2d"},{"name":"deleteCus","id":"915c8276-bc5b-4eec-a13c-269a060e6858","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/customer/C00-003","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","customer","C00-003"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d9a7ad4f-3bcf-4ef4-b346-a1ec80590d68","name":"deleteCus","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/POS_Backend/customer?id=C00-003","protocol":"http","host":["localhost"],"port":"8080","path":["POS_Backend","customer"],"query":[{"key":"id","value":"C00-003"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Date","value":"Thu, 08 Aug 2024 03:33:33 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"915c8276-bc5b-4eec-a13c-269a060e6858"},{"name":"deleteItem","id":"8e964fad-cedd-4297-8e90-534b6e58a6cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/item/I00-003","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","item","I00-003"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"700ccd8d-64db-4b4b-8299-13ae6d13ec6e","name":"deleteItem","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:8080/POS_Backend/item?id=I00-003","protocol":"http","host":["localhost"],"port":"8080","path":["POS_Backend","item"],"query":[{"key":"id","value":"I00-003"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Date","value":"Thu, 08 Aug 2024 03:38:15 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8e964fad-cedd-4297-8e90-534b6e58a6cc"},{"name":"placeOrder","id":"5ae0089d-fcf5-41b6-baaa-febb94c3d67e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2024-10-08\",\r\n    \"total\": 3300.0,\r\n    \"customerId\": \"C00-003\",\r\n    \"orderDetails\": [\r\n        {\r\n            \"itemId\": \"I00-003\",\r\n            \"qty\": 2,\r\n            \"unitPrice\": 900.0,\r\n            \"itemName\": \"Burger\",\r\n            \"itemDescription\": \"cheese-burger\",\r\n            \"total\": 1800.0\r\n        },\r\n        {\r\n            \"itemId\": \"I00-002\",\r\n            \"qty\": 1,\r\n            \"unitPrice\": 1500.0,\r\n            \"itemName\": \"Pizza\",\r\n            \"itemDescription\": \"large chicken\",\r\n            \"total\": 1500.0\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/placeOrder","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","placeOrder"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0a7afba4-3f26-4d2f-a0c8-3106ab60f323","name":"placeOrder","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"oId\": \"O00-005\",\r\n    \"date\": \"2024-08-08\",\r\n    \"total\": 2700.0,\r\n    \"customerId\": \"C00-002\",\r\n    \"orderDetails\": [\r\n        {\r\n            \"itemId\": \"I00-001\",\r\n            \"qty\": 2,\r\n            \"unitPrice\": 600.0,\r\n            \"itemName\": \"Sandwitch\",\r\n            \"itemDescription\": \"double chicken\",\r\n            \"total\": 1200.0\r\n        },\r\n        {\r\n            \"itemId\": \"I00-002\",\r\n            \"qty\": 1,\r\n            \"unitPrice\": 1500.0,\r\n            \"itemName\": \"Pizza\",\r\n            \"itemDescription\": \"large chicken\",\r\n            \"total\": 1500.0\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_Backend/placeOrder"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 08 Aug 2024 03:47:57 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5ae0089d-fcf5-41b6-baaa-febb94c3d67e"},{"name":"getOrders","id":"615be738-765a-458b-a43c-1601f6c3fb59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"oId\": \"O002\",\r\n    \"date\": \"2024-08-05\",\r\n    \"total\": 100.50,\r\n    \"orderDetails\": [\r\n        {\r\n            \"itemId\": \"I001\",\r\n            \"qty\": 2,\r\n            \"unitPrice\": 50.25,\r\n            \"customerId\": \"C002\"\r\n        },\r\n        {\r\n            \"itemId\": \"I002\",\r\n            \"qty\": 1,\r\n            \"unitPrice\": 25.00,\r\n            \"customerId\": \"C002\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_backend_war_exploded/api/v1/placeOrder","urlObject":{"protocol":"http","port":"8080","path":["POS_backend_war_exploded","api","v1","placeOrder"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fc2594d2-591b-4de2-85d4-846dc6b24799","name":"getOrders","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"oId\": \"O002\",\r\n    \"date\": \"2024-08-05\",\r\n    \"total\": 100.50,\r\n    \"orderDetails\": [\r\n        {\r\n            \"itemId\": \"I001\",\r\n            \"qty\": 2,\r\n            \"unitPrice\": 50.25,\r\n            \"customerId\": \"C002\"\r\n        },\r\n        {\r\n            \"itemId\": \"I002\",\r\n            \"qty\": 1,\r\n            \"unitPrice\": 25.00,\r\n            \"customerId\": \"C002\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/POS_Backend/placeOrder"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"http://127.0.0.1:5500"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"Content-Type"},{"key":"Access-Control-Expose-Headers","value":"Content-Type"},{"key":"Content-Type","value":"application/json;charset=UTF-8"},{"key":"Content-Length","value":"572"},{"key":"Date","value":"Thu, 08 Aug 2024 03:40:10 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"itemId\": \"I002\",\n        \"itemName\": \"pizza\",\n        \"itemDescription\": \"Cheese pizza\",\n        \"qty\": 1,\n        \"unitPrice\": 1050,\n        \"total\": 1050\n    },\n    {\n        \"itemId\": \"I002\",\n        \"itemName\": \"pizza\",\n        \"itemDescription\": \"Cheese pizza\",\n        \"qty\": 2,\n        \"unitPrice\": 1050,\n        \"total\": 2100\n    },\n    {\n        \"itemId\": \"I001\",\n        \"itemName\": \"burger\",\n        \"itemDescription\": \"Chicken burger\",\n        \"qty\": 5,\n        \"unitPrice\": 550,\n        \"total\": 2750\n    },\n    {\n        \"itemId\": \"I001\",\n        \"itemName\": \"burger\",\n        \"itemDescription\": \"Chicken burger\",\n        \"qty\": 3,\n        \"unitPrice\": 550,\n        \"total\": 1650\n    },\n    {\n        \"itemId\": \"I00-001\",\n        \"itemName\": \"Sandwitch\",\n        \"itemDescription\": \"double chicken\",\n        \"qty\": 1,\n        \"unitPrice\": 600,\n        \"total\": 600\n    }\n]"}],"_postman_id":"615be738-765a-458b-a43c-1601f6c3fb59"}]}