{"info":{"_postman_id":"3acc1a1f-0712-425a-887c-43e19f5ea515","name":"restapi-spring","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"28172939","collectionId":"3acc1a1f-0712-425a-887c-43e19f5ea515","publishedId":"2sB34bM4AW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-07-04T07:18:44.000Z"},"item":[{"name":"USER","item":[{"name":"getAll","id":"e38b79fe-a6ec-4566-aad7-5236bf471119","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/users","urlObject":{"host":["http://localhost:8080/api/v1/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"e38b79fe-a6ec-4566-aad7-5236bf471119"},{"name":"getByID","id":"5cfe9aa9-e7ad-4139-ab2e-8a22677a6073","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 2,\r\n    \"username\": \"dinidu\",\r\n    \"email\": \"dinidu@example.com\",\r\n    \"fullName\": \"Dinidu Sachintha\",\r\n    \"status\": \"ACTIVE\",\r\n    \"createdAt\": \"2025-07-03T15:35:18.968256\",\r\n    \"updatedAt\": \"2025-07-03T15:35:18.968256\"\r\n}\r\n"},"url":"http://localhost:8080/api/v1/users/1","urlObject":{"path":["1"],"host":["http://localhost:8080/api/v1/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"5cfe9aa9-e7ad-4139-ab2e-8a22677a6073"},{"name":"getByUsername","id":"e1f5ce05-55d1-464e-b779-aa1b22e569d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 2,\r\n    \"username\": \"dinidu\",\r\n    \"email\": \"dinidu@example.com\",\r\n    \"fullName\": \"Dinidu Sachintha\",\r\n    \"status\": \"ACTIVE\",\r\n    \"createdAt\": \"2025-07-03T15:35:18.968256\",\r\n    \"updatedAt\": \"2025-07-03T15:35:18.968256\"\r\n}\r\n"},"url":"http://localhost:8080/api/v1/users/username/dinidu","urlObject":{"path":["username","dinidu"],"host":["http://localhost:8080/api/v1/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1f5ce05-55d1-464e-b779-aa1b22e569d1"},{"name":"searchByName","id":"7d45df1b-04a1-4ab4-bd98-dbc4efcc16f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/v1/users/search?name=dinidu","urlObject":{"path":["search"],"host":["http://localhost:8080/api/v1/users"],"query":[{"key":"name","value":"dinidu"}],"variable":[]}},"response":[],"_postman_id":"7d45df1b-04a1-4ab4-bd98-dbc4efcc16f1"},{"name":"chageByID","id":"de3dd89a-e553-4d9b-bd00-79a0e84d7572","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"sachi\",\r\n    \"email\": \"sachi@example.com\",\r\n    \"fullName\": \"Sachintha\",\r\n    \"status\": \"ACTIVE\"\r\n}\r\n"},"url":"http://localhost:8080/api/v1/users/1","urlObject":{"path":["1"],"host":["http://localhost:8080/api/v1/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"de3dd89a-e553-4d9b-bd00-79a0e84d7572"},{"name":"save","id":"0f03c462-f198-448f-8ac6-629d05f006d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"test\",\r\n    \"email\": \"test@example.com\",\r\n    \"fullName\": \"Dinidu Sachintha\",\r\n    \"status\": \"ACTIVE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/users","urlObject":{"host":["http://localhost:8080/api/v1/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f03c462-f198-448f-8ac6-629d05f006d4"},{"name":"deleteByID","id":"6ed30c6f-6448-41b0-9857-43379b8af997","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/v1/users/9","urlObject":{"path":["9"],"host":["http://localhost:8080/api/v1/users"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ed30c6f-6448-41b0-9857-43379b8af997"}],"id":"975d3e08-ded6-4e77-8f6f-26ae1b90c3ad","_postman_id":"975d3e08-ded6-4e77-8f6f-26ae1b90c3ad","description":""},{"name":"PRODUCT","item":[{"name":"getALL","id":"f25cb99b-72b5-448d-8ee9-a627fa16ffde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/v1/products","urlObject":{"host":["http://localhost:8080/api/v1/products"],"query":[],"variable":[]}},"response":[],"_postman_id":"f25cb99b-72b5-448d-8ee9-a627fa16ffde"},{"name":"getByID","id":"fb4dd6a3-6ec1-46ad-a231-fe6d60446230","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"dinidu\",\r\n    \"email\": \"dinidu@example.com\",\r\n    \"fullName\": \"Dinidu Sachintha\",\r\n    \"status\": \"ACTIVE\"\r\n}"},"url":"http://localhost:8080/api/v1/products/5","urlObject":{"path":["5"],"host":["http://localhost:8080/api/v1/products"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb4dd6a3-6ec1-46ad-a231-fe6d60446230"},{"name":"searchByName","id":"40ab103f-d6bb-4f41-b8d4-798b6b911b5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:8080/api/v1/products/search?name=Orange Product","urlObject":{"path":["search"],"host":["http://localhost:8080/api/v1/products"],"query":[{"key":"name","value":"Orange Product"}],"variable":[]}},"response":[],"_postman_id":"40ab103f-d6bb-4f41-b8d4-798b6b911b5c"},{"name":"getByPriceRange","id":"4abeb052-3734-49a0-8229-674a86d461d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/v1/products/price-range?minPrice=0&maxPrice=100","urlObject":{"path":["price-range"],"host":["http://localhost:8080/api/v1/products"],"query":[{"key":"minPrice","value":"0"},{"key":"maxPrice","value":"100"}],"variable":[]}},"response":[],"_postman_id":"4abeb052-3734-49a0-8229-674a86d461d9"},{"name":"getLowStockProducts","id":"e56e7e08-d088-441c-aa3c-a425b7bea712","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/v1/products/low-stock?threshold=101","urlObject":{"path":["low-stock"],"host":["http://localhost:8080/api/v1/products"],"query":[{"key":"threshold","value":"101"}],"variable":[]}},"response":[],"_postman_id":"e56e7e08-d088-441c-aa3c-a425b7bea712"},{"name":"addProduct","id":"c7e59568-e60d-4de4-a89c-bdb19779ca83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"        {\r\n            \"name\": \"Baby Product\",\r\n            \"description\": \"This is a product description\",\r\n            \"price\": 39.99,\r\n            \"stockQuantity\": 10,\r\n            \"status\": \"AVAILABLE\"\r\n        }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/products","urlObject":{"host":["http://localhost:8080/api/v1/products"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7e59568-e60d-4de4-a89c-bdb19779ca83"},{"name":"changeByID","id":"d4be9830-43e8-4168-9d6f-20cbf82fd6dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"mango\",\r\n    \"description\": \"This is a product description\",\r\n    \"price\": 9.99,\r\n    \"stockQuantity\": 100,\r\n    \"status\": \"AVAILABLE\"\r\n}"},"url":"http://localhost:8080/api/v1/products/3","urlObject":{"path":["3"],"host":["http://localhost:8080/api/v1/products"],"query":[],"variable":[]}},"response":[],"_postman_id":"d4be9830-43e8-4168-9d6f-20cbf82fd6dd"},{"name":"deleteByID","id":"3db7bedd-f972-4b11-923a-45cf409da39f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/products/3","urlObject":{"path":["3"],"host":["http://localhost:8080/api/v1/products"],"query":[],"variable":[]}},"response":[],"_postman_id":"3db7bedd-f972-4b11-923a-45cf409da39f"}],"id":"9c7ab5e8-5c6a-4f42-8197-33996c7f3291","_postman_id":"9c7ab5e8-5c6a-4f42-8197-33996c7f3291","description":""},{"name":"ORDER","item":[{"name":"getAll","id":"8a3daa0d-7cf0-44ac-a106-1f0e6e8e9525","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/v1/orders","urlObject":{"host":["http://localhost:8080/api/v1/orders"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a3daa0d-7cf0-44ac-a106-1f0e6e8e9525"},{"name":"getByID","id":"ad05bf82-a6ab-4c0f-9c3b-68c9eb8e73fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"        {\r\n            \"name\": \"Orange Product\",\r\n            \"description\": \"This is a product description\",\r\n            \"price\": 9.99,\r\n            \"stockQuantity\": 10,\r\n            \"status\": \"AVAILABLE\"\r\n        }"},"url":"http://localhost:8080/api/v1/orders/7","urlObject":{"path":["7"],"host":["http://localhost:8080/api/v1/orders"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad05bf82-a6ab-4c0f-9c3b-68c9eb8e73fe"},{"name":"getByOrderNumber","id":"dd684900-de67-4566-93c7-ab0c66d9ff9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"        {\r\n            \"name\": \"Orange Product\",\r\n            \"description\": \"This is a product description\",\r\n            \"price\": 9.99,\r\n            \"stockQuantity\": 10,\r\n            \"status\": \"AVAILABLE\"\r\n        }"},"url":"http://localhost:8080/api/v1/orders/order-number/ORD-1751790733239","urlObject":{"path":["order-number","ORD-1751790733239"],"host":["http://localhost:8080/api/v1/orders"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd684900-de67-4566-93c7-ab0c66d9ff9c"},{"name":"getOrdersByUserID","id":"72173d06-a018-4aa0-8359-6650d818ba2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"orderNumber\": \"ORD-987654321\",\r\n    \"userId\": 7,\r\n    \"userFullName\": \"Dinidu Sachintha\",\r\n    \"orderItems\": [],\r\n    \"totalAmount\": 119.98,\r\n    \"status\": \"PENDING\"\r\n}"},"url":"http://localhost:8080/api/v1/orders/user/7","urlObject":{"path":["user","7"],"host":["http://localhost:8080/api/v1/orders"],"query":[],"variable":[]}},"response":[],"_postman_id":"72173d06-a018-4aa0-8359-6650d818ba2c"},{"name":"getOrdersByStatus","id":"1e9055f2-5256-4fd4-a058-21648b96b857","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"orderNumber\": \"ORD-987654321\",\r\n    \"userId\": 7,\r\n    \"userFullName\": \"Dinidu Sachintha\",\r\n    \"orderItems\": [],\r\n    \"totalAmount\": 119.98,\r\n    \"status\": \"PENDING\"\r\n}"},"url":"http://localhost:8080/api/v1/orders/status/PENDING","urlObject":{"path":["status","PENDING"],"host":["http://localhost:8080/api/v1/orders"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e9055f2-5256-4fd4-a058-21648b96b857"},{"name":"AddOrders","id":"abe23391-ab99-4735-8230-0bd4a5e5883b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\": 7,\r\n    \"orderItems\": [\r\n        {\r\n            \"productId\": 4,\r\n            \"quantity\": 2\r\n        },\r\n        {\r\n            \"productId\": 5,\r\n            \"quantity\": 1\r\n        }\r\n    ],\r\n    \"status\": \"PENDING\"\r\n}\r\n"},"url":"http://localhost:8080/api/v1/orders","urlObject":{"host":["http://localhost:8080/api/v1/orders"],"query":[],"variable":[]}},"response":[],"_postman_id":"abe23391-ab99-4735-8230-0bd4a5e5883b"},{"name":"UpdateStatusByIDUsingReqPara","id":"48d5bd50-7c1f-4268-813d-e8fcf8b018cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/v1/orders/6/status?status=DELIVERED","urlObject":{"path":["6","status"],"host":["http://localhost:8080/api/v1/orders"],"query":[{"key":"status","value":"DELIVERED"}],"variable":[]}},"response":[],"_postman_id":"48d5bd50-7c1f-4268-813d-e8fcf8b018cb"},{"name":"DeleteByID","id":"fa94c2b2-da9e-446a-97f4-cb8773b99f54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:8080/api/v1/orders/7","urlObject":{"path":["7"],"host":["http://localhost:8080/api/v1/orders"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa94c2b2-da9e-446a-97f4-cb8773b99f54"}],"id":"26139561-408e-4c27-967e-e7d330f67daa","_postman_id":"26139561-408e-4c27-967e-e7d330f67daa","description":""}],"event":[{"listen":"prerequest","script":{"id":"51af86d0-25c8-4408-bf43-89d938c7b7e8","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"712ef397-26a4-456d-9a5e-68d66645e92e","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"baseVariable","value":"http://localhost:8080/api/v1/","type":"string"}]}