{"info":{"_postman_id":"735ca30a-8376-446b-91bc-e2fa850eca3e","name":"Thogakade","description":"<html><head></head><body><p>The Thogakade POS System is an online Point of Sale (POS) application designed to manage essential tasks like adding, searching, updating, and deleting records efficiently.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35385577","collectionId":"735ca30a-8376-446b-91bc-e2fa850eca3e","publishedId":"2sA3s1pYAs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-09T07:21:19.000Z"},"item":[{"name":"Customer","item":[{"name":"Save Customer","id":"e1fc6fc2-6345-4d3c-8fa3-8a0617f58305","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"C001\",\r\n    \"name\":\"Madushan\",\r\n    \"address\":\"Galle\",\r\n    \"salary\":200\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/JavaEE_POS_Backend/customer","description":"<p>This endpoint allows you to add a new customer to the Togakade POS System. You need to provide the customer's details such as id , name , and any other relevant data in the request body. Upon successful execution, the customer will be added to the database, and a confirmation response will be returned.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>POST</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/customer</code></p>\n</li>\n<li><p><strong>Request Body:</strong> JSON format containing the customer details.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1fc6fc2-6345-4d3c-8fa3-8a0617f58305"},{"name":"Get Customer","id":"01f7ecb0-8961-4d85-ac44-c447014de58c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/JavaEE_POS_Backend/customer?id=C001","description":"<p>This endpoint allows you to retrieve the details of a specific customer from the Togakade POS System. The customer is identified by their unique ID, which should be provided as a query parameter in the URL. The system will return the customer's information if the ID is found in the database.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/customer?id=C001</code></p>\n</li>\n<li><p><strong>Query Parameter:</strong> <code>id</code> (Customer ID)</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","customer"],"host":["localhost"],"query":[{"key":"id","value":"C001"}],"variable":[]}},"response":[],"_postman_id":"01f7ecb0-8961-4d85-ac44-c447014de58c"},{"name":"Update Customer","id":"0f6aed06-9e10-4627-a2cc-562a6c604532","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"C002\",\r\n    \"name\":\"Nadeesha\",\r\n    \"address\":\"Matara\",\r\n    \"salary\":200\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/JavaEE_POS_Backend/customer","description":"<p>This endpoint allows you to update the details of an existing customer in the Togakade POS System. You need to provide the updated customer information in the request body, including the unique customer ID to identify the record to be updated. The system will update the customer's information in the database accordingly.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>PUT</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/customer</code></p>\n</li>\n<li><p><strong>Request Body:</strong> JSON format containing the updated customer details, including the customer ID.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","customer"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f6aed06-9e10-4627-a2cc-562a6c604532"},{"name":"Delete Customer","id":"596f5284-2df5-4a4a-b816-c1554b8c493d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/JavaEE_POS_Backend/customer?id=C001","description":"<p>This endpoint allows you to delete a specific customer from the Togakade POS System. You need to provide the unique customer ID as a query parameter in the URL. The system will remove the customer record from the database if the ID is found.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>DELETE</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/customer?id=C001</code></p>\n</li>\n<li><p><strong>Query Parameter:</strong> <code>id</code> (Customer ID)</p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li><strong>id:</strong> The unique identifier of the customer to be deleted.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","customer"],"host":["localhost"],"query":[{"key":"id","value":"C001"}],"variable":[]}},"response":[],"_postman_id":"596f5284-2df5-4a4a-b816-c1554b8c493d"},{"name":"Get All Customers","id":"1d26bd53-6499-4f09-8554-6b37beb4cd8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/JavaEE_POS_Backend/customer?id=all","description":"<p>This endpoint allows you to retrieve a list of all customers in the Togakade POS System. By using the query parameter <code>id=all</code>, you instruct the system to return details of all customers stored in the database.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/customer?id=all</code></p>\n</li>\n<li><p><strong>Query Parameter:</strong> <code>id</code> (Set to <code>all</code> to retrieve all customers)</p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li><strong>id:</strong> When set to <code>all</code>, the endpoint will return a list of all customer records.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","customer"],"host":["localhost"],"query":[{"key":"id","value":"all"}],"variable":[]}},"response":[],"_postman_id":"1d26bd53-6499-4f09-8554-6b37beb4cd8a"}],"id":"942fc02a-a130-4f0d-9fbb-16a895793f4f","description":"<p>The Customer Management API enables the handling of customer records in the Togakade POS System. Through these endpoints, you can create new customers, access customer details, modify existing customer information, and remove customers from the system.</p>\n","_postman_id":"942fc02a-a130-4f0d-9fbb-16a895793f4f"},{"name":"Item","item":[{"name":"Get Item","id":"3900d106-0a46-466f-8aeb-6f792ba328d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/JavaEE_POS_Backend/item?id=I001","description":"<p>This endpoint allows you to retrieve the details of a specific item from the Togakade POS System. You need to provide the unique item ID as a query parameter in the URL. The system will return the item's information if the ID is found in the database.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/item?id=I001</code></p>\n</li>\n<li><p><strong>Query Parameter:</strong> <code>id</code> (Item ID)</p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li><strong>id:</strong> The unique identifier of the item whose details you want to retrieve.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","item"],"host":["localhost"],"query":[{"key":"id","value":"I001"}],"variable":[]}},"response":[],"_postman_id":"3900d106-0a46-466f-8aeb-6f792ba328d9"},{"name":"Update Item","id":"c774cc66-4483-4808-b9c7-65f4cc4269f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"I001\",\r\n    \"name\":\"Bottle\",\r\n    \"qty\":\"50\",\r\n    \"price\":100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/JavaEE_POS_Backend/item","description":"<p>This endpoint allows you to update the details of an existing item in the Togakade POS System. You need to provide the updated item information in the request body. The item is identified by its unique ID, which should be included in the request body along with the updated details.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>PUT</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/item</code></p>\n</li>\n<li><p>**Description:**EndFragment</p>\n<ul>\n<li><p><strong>id:</strong> The unique identifier of the item to be updated.</p>\n</li>\n<li><p><strong>name:</strong> The updated name of the item.</p>\n</li>\n<li><p><strong>qty:</strong> The updated quantity of the item in stock.</p>\n</li>\n<li><p><strong>price:</strong> The updated price of the item.</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c774cc66-4483-4808-b9c7-65f4cc4269f3"},{"name":"Delete Item","id":"aa58c63f-f983-42e7-93e8-126a5ddef772","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/JavaEE_POS_Backend/item?id=I002","description":"<p>This endpoint allows you to delete a specific item from the Togakade POS System. You need to provide the unique item ID as a query parameter in the URL. The system will remove the item record from the database if the ID is found.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>DELETE</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/item?id=I002</code></p>\n</li>\n<li><p><strong>Query Parameter:</strong> <code>id</code> (Item ID)</p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li><strong>id:</strong> The unique identifier of the item to be deleted.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","item"],"host":["localhost"],"query":[{"key":"id","value":"I002"}],"variable":[]}},"response":[],"_postman_id":"aa58c63f-f983-42e7-93e8-126a5ddef772"},{"name":"Get All Items","id":"34815bf8-c353-4173-ad1e-48a463768c38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/JavaEE_POS_Backend/item?id=all","description":"<p>This endpoint allows you to retrieve a list of all items in the Togakade POS System. By using the query parameter <code>id=all</code>, you instruct the system to return details of all items stored in the database.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/item?id=all</code></p>\n</li>\n<li><p><strong>Query Parameter:</strong> <code>id</code> (Set to <code>all</code> to retrieve all items)</p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li><strong>id:</strong> When set to <code>all</code>, the endpoint will return a list of all item records.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","item"],"host":["localhost"],"query":[{"key":"id","value":"all"}],"variable":[]}},"response":[],"_postman_id":"34815bf8-c353-4173-ad1e-48a463768c38"},{"name":"Save Item","id":"efdaf9fa-2009-454f-bd1c-137cd646b5ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"I001\",\r\n    \"name\":\"Bottle\",\r\n    \"qty\":\"50\",\r\n    \"price\":300\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/JavaEE_POS_Backend/item","description":"<p>This endpoint allows you to add a new item to the inventory in the Togakade POS System. You need to provide the item details in the request body. The system will create a new record in the database with the provided information.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>POST</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/item</code></p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li><p><strong>id:</strong> The unique identifier for the item.</p>\n</li>\n<li><p><strong>name:</strong> The name of the item.</p>\n</li>\n<li><p><strong>qty:</strong> The quantity of the item in stock.</p>\n</li>\n<li><p><strong>price:</strong> The price of the item.</p>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","item"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"efdaf9fa-2009-454f-bd1c-137cd646b5ec"}],"id":"a0085746-b580-48a4-80ec-95218997433b","description":"<p>The Item Management API allows you to handle inventory items within the Togakade POS System. You can perform various operations including adding new items, retrieving item details, updating existing items, and deleting items from the inventory. This functionality is crucial for maintaining accurate inventory records.</p>\n","_postman_id":"a0085746-b580-48a4-80ec-95218997433b"},{"name":"Order","item":[{"name":"Save Order","id":"e321b727-7ef3-426f-8fa7-1cdea6adf2ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\" : \"OD06\",\r\n    \"date\" : \"2024-08-08\",\r\n    \"cust_id\" : \"C001\",\r\n    \"itme\" : {\r\n        \"id\" : \"I02\",\r\n        \"name\" : \"Sun Light\",\r\n        \"qty\" : 10,\r\n        \"price\" : 30\r\n    },\r\n    \"total\" : \"1000\",\r\n    \"discount\" : \"100\",\r\n    \"subTotal\" : \"600\",\r\n    \"cash\" : \"1100\",\r\n    \"balance\" : \"600\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/JavaEE_POS_Backend/order","description":"<p>This endpoint allows you to create a new order in the Togakade POS System. You need to provide the order details in the request body, including customer information, item details, and order specifics. The system will add the new order to the database.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>POST</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/order</code></p>\n</li>\n<li><p><strong>Request Body:</strong> JSON format containing the order details.</p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li>The request body should include all necessary details such as customer ID, item list, quantities, prices, and any applicable discounts</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","order"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e321b727-7ef3-426f-8fa7-1cdea6adf2ed"},{"name":"Get Order","id":"aa496fc7-7000-4725-a4fb-6ecd73a5aee0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/JavaEE_POS_Backend/order","description":"<p>This endpoint allows you to retrieve a list of all orders in the Togakade POS System. By making a GET request, you can obtain details of every order stored in the database.</p>\n<ul>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>http://localhost:8080/JavaEE_POS_Backend/order</code></p>\n</li>\n<li><p><strong>Description:</strong></p>\n<ul>\n<li>The response will include a list of all orders, allowing you to view and manage order records.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["JavaEE_POS_Backend","order"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa496fc7-7000-4725-a4fb-6ecd73a5aee0"}],"id":"56777a8c-6caa-429c-8f71-5d4b6a6cdab9","description":"<p>The Order Management API allows you to handle orders within the Togakade POS System. You can create new orders and retrieve a list of all existing orders. This functionality is essential for managing and tracking customer purchases and order history.</p>\n","_postman_id":"56777a8c-6caa-429c-8f71-5d4b6a6cdab9"},{"name":"SignUp User","id":"4b7ab270-ec4e-4981-badc-2b62846f58ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"\"nadee@gamil.com\"","type":"text"},{"key":"password","value":"1234","type":"text"},{"key":"role","value":"admin","type":"text"}]},"url":"http://localhost:5050/greenshadow/api/v1/user","urlObject":{"protocol":"http","port":"5050","path":["greenshadow","api","v1","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d0d711f0-d327-4c40-a19a-50514f8cb7d3","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"nadee.s@gmail.com\",\r\n    \"password\" : \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/greenShadow/api/v1/auth/signup"},"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":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 04 Dec 2024 03:07:15 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjpbeyJhdXRob3JpdHkiOiJST0xFX01BTkFHRVIifV0sInN1YiI6Im5hZGVlLnNAZ21haWwuY29tIiwiaWF0IjoxNzMzMjgxNjM1LCJleHAiOjE3MzMzMTA0MzV9.BlFoYQvmEvAE24wv2BaWUYoHp7UFdIKP7wYg80xVVSk\"\n}"}],"_postman_id":"4b7ab270-ec4e-4981-badc-2b62846f58ba"}]}