{"info":{"_postman_id":"e266971f-be2b-4cfe-9427-3db4022d3ddd","name":"JavaEE POS API","description":"<html><head></head><body><p>The JavaEE POS API provides a comprehensive set of endpoints for managing customers information,managing item information and processing transactions.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35385442","collectionId":"e266971f-be2b-4cfe-9427-3db4022d3ddd","publishedId":"2sA3s1nX8W","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-08T11:04:41.000Z"},"item":[{"name":"Customer","item":[{"name":"Save Customer","id":"265208de-e66b-486c-b570-3c1df226e043","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": \"C00-004\",\r\n  \"name\": \"John Doe\",\r\n  \"address\": \"123 Main Street, Anytown, USA\",\r\n  \"contact\": \"0123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/customer","description":"<p>This endpoint is used to add a new customer to the system. The request must contain customer details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"265208de-e66b-486c-b570-3c1df226e043"},{"name":"Update Customer","id":"160bb198-90c6-49a7-b00d-2eb32bcaf8a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{ \"id\": \"C00-004\",\r\n  \"name\": \"John xvx\",\r\n  \"address\": \"123 Main Streetx, Anytownx, USAx\",\r\n  \"contact\": \"0123423789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/customer","description":"<p>This endpoint is used to update an existing customer's details in the system. The request must contain customer details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the customer's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"160bb198-90c6-49a7-b00d-2eb32bcaf8a4"},{"name":"Delete Customer","id":"2ec20031-416f-48d0-b3cf-7a8d27afbdda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/app/customer?id=C00-004","description":"<p>This endpoint is used to delete an existing customer from the system. To use this endpoint, include the customer's ID as a query parameter in the request URL. The server will attempt to delete the customer with the specified ID.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","customer"],"host":["localhost"],"query":[{"description":{"content":"<p>Customer ID</p>\n","type":"text/plain"},"key":"id","value":"C00-004"}],"variable":[]}},"response":[],"_postman_id":"2ec20031-416f-48d0-b3cf-7a8d27afbdda"},{"name":"Get All Customers","id":"df28b0e3-6f8d-44f9-b644-21948d57a164","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/customer?function=getAll","description":"<p>This endpoint is used to retrieve customer information from the system. To use this endpoint, include the function type as a query parameter in the request URL:</p>\n<ul>\n<li><p><code>function=getAll</code>: Retrieves a list of all customers.</p>\n</li>\n<li><p><code>function=getById</code>: Retrieves details of a specific customer by providing their ID as a query parameter (<code>id</code>).</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["app","customer"],"host":["localhost"],"query":[{"key":"function","value":"getAll"}],"variable":[]}},"response":[],"_postman_id":"df28b0e3-6f8d-44f9-b644-21948d57a164"}],"id":"76bae9e9-f66b-429f-81eb-5710b133e7bb","description":"<p>This is a customer endpoint testing section.</p>\n","_postman_id":"76bae9e9-f66b-429f-81eb-5710b133e7bb"},{"name":"Item","item":[{"name":"Save Item","id":"4767d23e-ed82-4a96-b5e0-88641b17b7f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\":\"I00-005\",\r\n    \"name\":\"Mechanical Keyboard\",\r\n    \"price\":40000.00,\r\n    \"qty\":100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/item","description":"<p>This endpoint is used to add a new item to the system. The request must contain customer details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4767d23e-ed82-4a96-b5e0-88641b17b7f3"},{"name":"Update Item","id":"ecc160b2-7239-41ac-90ab-16f5c6b6b852","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"code\":\"I00-005\",\r\n    \"name\":\"Mechanicalx Keyboardx\",\r\n    \"price\":40000.00,\r\n    \"qty\":100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/item","description":"<p>This endpoint is used to update an existing item's details in the system. The request must contain item details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the item's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecc160b2-7239-41ac-90ab-16f5c6b6b852"},{"name":"Delete Item","id":"932af12a-fc21-45fe-b364-0f5437b1c854","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/app/item?id=I00-005","description":"<p>This endpoint is used to delete an existing item from the system. To use this endpoint, include the item's ID as a query parameter in the request URL. The server will attempt to delete the item with the specified ID.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","item"],"host":["localhost"],"query":[{"description":{"content":"<p>Item Code</p>\n","type":"text/plain"},"key":"id","value":"I00-005"}],"variable":[]}},"response":[],"_postman_id":"932af12a-fc21-45fe-b364-0f5437b1c854"},{"name":"Get All Items","id":"bb5e725f-c58d-4f4c-8ef9-fcc7b12c6e30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/item?function=getAll","description":"<p>This endpoint is used to retrieve item information from the system. To use this endpoint, include the function type as a query parameter in the request URL:</p>\n<ul>\n<li><p><code>function=getAll</code>: Retrieves a list of all itemss.</p>\n</li>\n<li><p><code>function=getById</code>: Retrieves details of a specific item by providing their ID as a query parameter (<code>id</code>).</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["app","item"],"host":["localhost"],"query":[{"key":"function","value":"getAll"}],"variable":[]}},"response":[],"_postman_id":"bb5e725f-c58d-4f4c-8ef9-fcc7b12c6e30"}],"id":"b6cb0e11-e80c-4c5e-9037-f3805aac50f7","description":"<p>This is a item endpoint testing section.</p>\n","_postman_id":"b6cb0e11-e80c-4c5e-9037-f3805aac50f7"},{"name":"Order","item":[{"name":"Save Order","id":"14ae11f6-c313-4197-9857-f35dcea58c66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"order_id\": \"ORD-003\",\r\n  \"date\": \"2024-08-08\",\r\n  \"cust_id\": \"C00-001\",\r\n  \"discount\": 10.0,\r\n  \"total\": 100.0,\r\n  \"order_list\": [\r\n    {\r\n      \"item_id\": \"I00-001\",\r\n      \"quantity\": 2\r\n    },\r\n    {\r\n      \"item_id\": \"I00-002\",\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/app/order","description":"<p>This endpoint is used to add a new order to the system. The request must contain customer details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","order"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"14ae11f6-c313-4197-9857-f35dcea58c66"},{"name":"Get All Orders","id":"1d4f2df8-e3de-44b6-8088-63be496e1956","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/order?function=getAll","description":"<p>This endpoint is used to retrieve order information from the system. To use this endpoint, include the function type as a query parameter in the request URL:</p>\n<ul>\n<li><p><code>function=getAll</code>: Retrieves a list of all orders.</p>\n</li>\n<li><p><code>function=getById</code>: Retrieves details of a specific orderer by providing their ID as a query parameter (<code>id</code>).</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["app","order"],"host":["localhost"],"query":[{"key":"function","value":"getAll"}],"variable":[]}},"response":[],"_postman_id":"1d4f2df8-e3de-44b6-8088-63be496e1956"}],"id":"7b6deb5d-d30e-4e69-97b0-dd78c054f6ac","description":"<p>This is a order endpoint testing section.</p>\n","_postman_id":"7b6deb5d-d30e-4e69-97b0-dd78c054f6ac"},{"name":"Order Details","item":[{"name":"Get All Order Details","id":"8ea5347e-5c14-415b-9622-b6ef5cfc70c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/app/orderDetail?function=getAll","description":"<p>This is a Order Details endpoint testing section.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["app","orderDetail"],"host":["localhost"],"query":[{"key":"function","value":"getAll"}],"variable":[]}},"response":[],"_postman_id":"8ea5347e-5c14-415b-9622-b6ef5cfc70c3"}],"id":"2f1bc230-4b4f-4d2a-be52-019289161ce4","description":"<p>This is a customer endpoint testing section.</p>\n","_postman_id":"2f1bc230-4b4f-4d2a-be52-019289161ce4"}]}