{"info":{"_postman_id":"bd84069c-429a-4e7b-96e3-359e6d9e8951","name":"Spring POS Backend","description":"<html><head></head><body><p>The POS System collection is designed for efficient integration with the Point of Sale (POS) system. It includes three primary folders: Customer, Item, and Order. Each folder contains endpoint requests tailored to manage specific data entities within the system. The Customer folder handles customer-related operations, the Item folder manages inventory and product information, and the Order folder oversees the creation and management of sales transactions.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35386291","collectionId":"bd84069c-429a-4e7b-96e3-359e6d9e8951","publishedId":"2sAXxTcAa3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-14T19:44:59.000Z"},"item":[{"name":"Customer","item":[{"name":"Customer Get Request by ID","id":"cf6de8d5-1733-490b-84a4-a9fd7f295d26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/customer/C-b43bcad0-339f-44a8-b3e9-2b01d1f52793","description":"<p>This is used to retrieve and display customer data, such as ID, name, address, and salary, from the back-end to the front-end interface. This allows to view the stored one of customer's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","customer","C-b43bcad0-339f-44a8-b3e9-2b01d1f52793"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e7ae04da-e23f-4316-9d2a-0d4228b53e0a","name":"Customer Get Response by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/customer/C-b43bcad0-339f-44a8-b3e9-2b01d1f52793"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 14 Oct 2024 17:03:53 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"custId\": \"C-b43bcad0-339f-44a8-b3e9-2b01d1f52793\",\n    \"custName\": \"Nethmi Umaya \",\n    \"custAddress\": \"Galle\",\n    \"custSalary\": 60000\n}"}],"_postman_id":"cf6de8d5-1733-490b-84a4-a9fd7f295d26"},{"name":"Customer Get Request","id":"a0986b94-6ed5-444d-bb01-786b973a1b1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/customer/allcustomers","description":"<p>This is used to retrieve and display customer data, such as ID, name, address, and salary, from the back-end to the front-end interface. This allows users to view the stored customer information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","customer","allcustomers"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ecad4dce-abd6-44ae-984a-1898e322d3f8","name":"Customer Get Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/customer/allcustomers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 14 Oct 2024 17:04:27 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"custId\": \"C-ade589f9-33d5-4ecc-95a0-740a0fdac03d\",\n        \"custName\": \"Amarasiri Peris \",\n        \"custAddress\": \"Matara\",\n        \"custSalary\": 60000\n    },\n    {\n        \"custId\": \"C-b43bcad0-339f-44a8-b3e9-2b01d1f52793\",\n        \"custName\": \"Nethmi Umaya \",\n        \"custAddress\": \"Galle\",\n        \"custSalary\": 60000\n    }\n]"}],"_postman_id":"a0986b94-6ed5-444d-bb01-786b973a1b1d"},{"name":"Customer Post Request","id":"bf01f9bb-7165-403f-82b9-1ef8edde03fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"custName\": \"Nethmi Umaya \",\n    \"custAddress\": \"Galle\",\n    \"custSalary\": \"60000\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/customer","description":"<p>customer data such as ID, name, address, and salary entered on the front-end is transmitted and saved to the back-end. This ensures that user inputs are securely stored in the database for further processing</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2ffcf2ef-1cf2-462b-9247-57192e5c8756","name":"Customer Post Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"custName\": \"Nethmi Umaya \",\n    \"custAddress\": \"Galle\",\n    \"custSalary\": \"60000\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/customer"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Content-Length","value":"0"},{"key":"Date","value":"Mon, 14 Oct 2024 17:02:58 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bf01f9bb-7165-403f-82b9-1ef8edde03fb"},{"name":"Customer Put Request","id":"cf09bba0-d14f-4059-83ed-c225c679c852","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"custName\": \"Nethmi Umaya\",\n    \"custAddress\": \"Galle\",\n    \"custSalary\": \"7000\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/customer/C-b43bcad0-339f-44a8-b3e9-2b01d1f52793","description":"<p>Put method is used to update customer data, such as ID, name, address, and salary, from the back-end. This ensures that the specified customer value will add from the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","customer","C-b43bcad0-339f-44a8-b3e9-2b01d1f52793"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6dad17f2-38e8-4241-a2d4-fc7934bb34ab","name":"Customer Put Response","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"custName\": \"Nethmi Umaya\",\n    \"custAddress\": \"Galle\",\n    \"custSalary\": \"7000\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/customer/C-b43bcad0-339f-44a8-b3e9-2b01d1f52793"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 14 Oct 2024 17:05:23 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"cf09bba0-d14f-4059-83ed-c225c679c852"},{"name":"Customer Delete Request","id":"b6a701a9-1bc3-45fa-ad74-47539e32f087","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/app/api/v1/customer/C-ade589f9-33d5-4ecc-95a0-740a0fdac03d","description":"<p>Delete request is used to delete customer data, such as ID, name, address, and salary, from the back-end. This ensures that the specified customer information is removed from the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","customer","C-ade589f9-33d5-4ecc-95a0-740a0fdac03d"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4ad89730-e894-4f83-9097-18056561376f","name":"Customer Delete Response","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/app/api/v1/customer/C-ade589f9-33d5-4ecc-95a0-740a0fdac03d"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 14 Oct 2024 17:06:01 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b6a701a9-1bc3-45fa-ad74-47539e32f087"}],"id":"acc454fa-b0dc-4651-b878-ab214a86e517","description":"<p>The Customer folder includes key endpoint requests for managing customer data. These endpoints support creating new customers, retrieving specific customer details, fetching a list of all customers, updating existing customer information, and deleting customer records.</p>\n","_postman_id":"acc454fa-b0dc-4651-b878-ab214a86e517"},{"name":"Order","item":[{"name":"Place Order Post Request","id":"55d3588a-0a5c-4420-bf22-c9425e2bdbfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderDate\": \"2024-08-07\",\n    \"custId\": \"C-b43bcad0-339f-44a8-b3e9-2b01d1f52793\",\n    \"items\": [\n        {\n            \"itemId\": \"I-72205b07-072f-4a7e-8022-80f1304d660e\",\n            \"itemName\": \"Maliban Chocolate Cream Biscuits\",\n            \"itemPrice\": 20,\n            \"itemQty\": 1,\n            \"total\": 20\n        }\n    ],\n    \"total\": 20,\n    \"discount\": 0,\n    \"subTotal\":20,\n    \"cash\": 20,\n    \"balance\": 20\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/orders","description":"<p>Save the order details from the front-end to the back-end. This ensures that the order data is securely stored in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"731136fb-b3f6-416b-a4bf-496bd6293886","name":"Order Post Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderDate\": \"2024-08-07\",\n    \"custId\": \"C-b43bcad0-339f-44a8-b3e9-2b01d1f52793\",\n    \"items\": [\n        {\n            \"itemId\": \"I-72205b07-072f-4a7e-8022-80f1304d660e\",\n            \"itemName\": \"Maliban Chocolate Cream Biscuits\",\n            \"itemPrice\": 20,\n            \"itemQty\": 1,\n            \"total\": 20\n        }\n    ],\n    \"total\": 20,\n    \"discount\": 0,\n    \"subTotal\":20,\n    \"cash\": 20,\n    \"balance\": 20\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/orders"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Length","value":"0"},{"key":"Date","value":"Mon, 14 Oct 2024 17:07:46 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"55d3588a-0a5c-4420-bf22-c9425e2bdbfc"},{"name":"Order Get Request","id":"2506c931-ecb2-44b5-b421-59b01ac4ae35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/orders/allorders","description":"<p>By saving relevant order details from the front-end to the back-end. This process securely display the order information of the database for future retrieval and processing</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","orders","allorders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"61bdc3dd-8190-4000-a399-8377fb749317","name":"Order Get Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/orders/allorders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 14 Oct 2024 17:08:29 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"orderId\": \"O-030e5eef-4630-43db-9873-b6d3e1bbecac\",\n        \"orderDate\": \"2024-08-07\",\n        \"custId\": null,\n        \"items\": null,\n        \"total\": 20,\n        \"discount\": \"0\",\n        \"subTotal\": 20,\n        \"cash\": 20,\n        \"balance\": 20\n    }\n]"}],"_postman_id":"2506c931-ecb2-44b5-b421-59b01ac4ae35"}],"id":"860c2301-84df-4cd4-815e-870d8cd48679","description":"<p>The Order folder includes API requests for order management, covering the creation of new orders and the retrieval of all existing orders.</p>\n","_postman_id":"860c2301-84df-4cd4-815e-870d8cd48679"},{"name":"Item","item":[{"name":"Item Get Request by ID","id":"44900753-702b-4c22-951b-3f921edda1de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/item/I-72205b07-072f-4a7e-8022-80f1304d660e","description":"<p>Get method allows you to retrieve all item details, including item ID, name, quantity, and price, by sending a GET request. This fetches and displays the stored item information from the back-end</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","item","I-72205b07-072f-4a7e-8022-80f1304d660e"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"904282ab-0b45-4db2-bb9e-bc542c677cce","name":"Item Get Response by ID","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/item/I-72205b07-072f-4a7e-8022-80f1304d660e"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 14 Oct 2024 18:17:59 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"itemId\": \"I-72205b07-072f-4a7e-8022-80f1304d660e\",\n    \"itemName\": \"Maliban Chocolate Cream Biscuits\",\n    \"itemQty\": 9,\n    \"itemPrice\": 20\n}"}],"_postman_id":"44900753-702b-4c22-951b-3f921edda1de"},{"name":"Item Get Request","id":"6f977136-33a1-4878-8467-e10d690a3875","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/item/allItems","description":"<p>Get method allows you to retrieve all item details, including item ID, name, quantity, and price, by sending a GET request. This fetches and displays the stored item information from the back-end</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","item","allItems"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2aa6e20b-f4ec-4be1-9596-37e7637a21d0","name":"Item Get Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/item/allItems"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 14 Oct 2024 18:19:23 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"itemId\": \"I-567e441a-b65f-4772-8884-d63e3e14baab\",\n        \"itemName\": \"Tiyara Cake\",\n        \"itemQty\": 10,\n        \"itemPrice\": 7000\n    },\n    {\n        \"itemId\": \"I-72205b07-072f-4a7e-8022-80f1304d660e\",\n        \"itemName\": \"Maliban Chocolate Cream Biscuits\",\n        \"itemQty\": 9,\n        \"itemPrice\": 20\n    }\n]"}],"_postman_id":"6f977136-33a1-4878-8467-e10d690a3875"},{"name":"Item Post Request","id":"3dc55d2a-d058-4e65-8d58-3b7f2a862504","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"itemName\":\"Biscuits\",\n    \"itemQty\":\"20\",\n    \"itemPrice\":\"100\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/item","description":"<p>Used to save item data such as item ID, name, quantity, and price from the front-end to the back-end. This process securely stores the item details in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ee3084ef-9d71-4e0a-8877-95f6637c6fc3","name":"Item Post Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"itemName\":\"Puddings\",\n    \"itemQty\":\"10\",\n    \"itemPrice\":\"200\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/item"},"status":"Created","code":201,"_postman_previewlanguage":"plain","header":[{"key":"Content-Length","value":"0"},{"key":"Date","value":"Thu, 10 Oct 2024 19:03:37 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3dc55d2a-d058-4e65-8d58-3b7f2a862504"},{"name":"Item Put Request","id":"38a267d3-f048-4319-8234-ac8c6b2bf447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"itemName\":\"Tiyara Cake\",\n    \"itemQty\":\"20\",\n    \"itemPrice\":\"14000\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/item/I-567e441a-b65f-4772-8884-d63e3e14baab","description":"<p>uses the PUT method to update specific item details such as name, quantity, or price. This ensures the existing item information in the back-end is modified as needed</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","item","I-567e441a-b65f-4772-8884-d63e3e14baab"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fb4d1f87-ca02-481e-8adc-9e6069d791dc","name":"Item Put Response","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"itemName\":\"Tiyara Cake\",\n    \"itemQty\":\"20\",\n    \"itemPrice\":\"14000\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/api/v1/item/I-567e441a-b65f-4772-8884-d63e3e14baab"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 14 Oct 2024 18:21:09 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"38a267d3-f048-4319-8234-ac8c6b2bf447"},{"name":"Item Delete Request Copy","id":"6df9c490-d60a-4721-8144-e6992ddcfc5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/app/api/v1/item/I-567e441a-b65f-4772-8884-d63e3e14baab","description":"<p>used to delete item data, such as ID, name, quantity, and price, from the back-end. This ensures that the specified item information is removed from the database</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","item","I-567e441a-b65f-4772-8884-d63e3e14baab"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"715a308e-9a42-48aa-b3f7-2390b2e083e7","name":"Item Delete Response","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/app/api/v1/item/I-567e441a-b65f-4772-8884-d63e3e14baab"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Mon, 14 Oct 2024 18:21:32 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6df9c490-d60a-4721-8144-e6992ddcfc5b"}],"id":"477ad7ee-2c67-4dd7-b664-851622f593a0","description":"<p>The Item folder encompasses API requests for comprehensive item management. It includes operations for saving new items, retrieving specific item details, fetching a list of all items, updating item information, and deleting items.</p>\n","_postman_id":"477ad7ee-2c67-4dd7-b664-851622f593a0"},{"name":"Health check","id":"d6e29172-098d-4c73-822c-0f2030220a8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/healthtest","description":"<p>The HealthCheckerController class is a Spring Boot REST controller responsible for providing health check endpoints. These endpoints are used to verify the status of the application, ensuring that it is running and responsive. This is particularly useful for monitoring and alerting systems to detect and respond to application downtime or issues.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","api","v1","healthtest"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9ead7e64-6af0-4dab-b649-66afdc23136b","name":"health check","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/app/api/v1/healthtest"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain;charset=ISO-8859-1"},{"key":"Content-Length","value":"28"},{"key":"Date","value":"Tue, 08 Oct 2024 14:08:33 GMT"},{"key":"Keep-Alive","value":"timeout=20"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Spring POS System is working"}],"_postman_id":"d6e29172-098d-4c73-822c-0f2030220a8e"}]}