{"info":{"_postman_id":"a879c2cb-127b-4c01-b1b9-c74d4c679e9e","name":"Product API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"50871260","collectionId":"a879c2cb-127b-4c01-b1b9-c74d4c679e9e","publishedId":"2sBXcGEzuM","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-25T18:32:56.000Z"},"item":[{"name":"Add Product","id":"ff77d4e4-2d8f-4b83-864d-400a1bcae199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Bluetooth Speaker\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 2999,\r\n  \"stock\": 20,\r\n  \"rating\": 4.6\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/products","urlObject":{"protocol":"http","port":"3000","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"46f2ba1f-628b-4533-930a-7271a092f61b","name":"Add Product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Bluetooth Speaker\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 2999,\r\n  \"stock\": 20,\r\n  \"rating\": 4.6\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/products"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"ETag","value":"W/\"89-b+kxGOZC8pgW7ltRembzhabaJS8\""},{"key":"Date","value":"Wed, 25 Feb 2026 12:37:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product Created\",\n    \"product\": {\n        \"id\": 6,\n        \"name\": \"Bluetooth Speaker\",\n        \"category\": \"Electronics\",\n        \"price\": 2999,\n        \"stock\": 20,\n        \"rating\": 4.6\n    }\n}"}],"_postman_id":"ff77d4e4-2d8f-4b83-864d-400a1bcae199"},{"name":"Update Full Product","id":"2696a344-3d81-4d96-b481-609e1cf967b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": 1,\r\n  \"name\": \"Gaming Mouse\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 1299,\r\n  \"stock\": 15,\r\n  \"rating\": 4.7\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/products/:id","urlObject":{"protocol":"http","port":"3000","path":["products",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[{"id":"807fa9e0-cf83-4e9c-a744-f2c6ec9011e3","name":"Update Full Product","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": 1,\r\n  \"name\": \"Gaming Mouse\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 1299,\r\n  \"stock\": 15,\r\n  \"rating\": 4.7\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/products/:id","protocol":"http","host":["localhost"],"port":"3000","path":["products",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"146"},{"key":"ETag","value":"W/\"92-1Vl1m0+d9siIzzLbNDei+4x0B8U\""},{"key":"Date","value":"Wed, 25 Feb 2026 12:37:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product replaced successfully\",\n    \"product\": {\n        \"id\": 1,\n        \"name\": \"Gaming Mouse\",\n        \"category\": \"Electronics\",\n        \"price\": 1299,\n        \"stock\": 15,\n        \"rating\": 4.7\n    }\n}"}],"_postman_id":"2696a344-3d81-4d96-b481-609e1cf967b6"},{"name":"Get All Products","id":"81bf8f4d-02ce-4f0e-a723-a2cdb8efcf8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Bluetooth Speaker\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 2999,\r\n  \"stock\": 20,\r\n  \"rating\": 4.6\r\n}"},"url":"http://localhost:3000/products","urlObject":{"protocol":"http","port":"3000","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e7b6c1bc-788f-4ad1-bfe6-e85783ad80e2","name":"Get All Products","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Bluetooth Speaker\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 2999,\r\n  \"stock\": 20,\r\n  \"rating\": 4.6\r\n}"},"url":"http://localhost:3000/products"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"552"},{"key":"ETag","value":"W/\"228-EuEahfcWR9NynaUoJEBo63PkxJs\""},{"key":"Date","value":"Wed, 25 Feb 2026 12:38:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Gaming Mouse\",\n        \"category\": \"Electronics\",\n        \"price\": 1299,\n        \"stock\": 15,\n        \"rating\": 4.7\n    },\n    {\n        \"id\": 2,\n        \"name\": \"Running Shoes\",\n        \"category\": \"Footwear\",\n        \"price\": 2499,\n        \"stock\": 40,\n        \"rating\": 4.5\n    },\n    {\n        \"id\": 3,\n        \"name\": \"Laptop Stand\",\n        \"category\": \"Accessories\",\n        \"price\": 999,\n        \"stock\": 30,\n        \"rating\": 4.2\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Smart Watch\",\n        \"category\": \"Electronics\",\n        \"price\": 4999,\n        \"stock\": 12,\n        \"rating\": 4.4\n    },\n    {\n        \"id\": 5,\n        \"name\": \"Backpack\",\n        \"category\": \"Fashion\",\n        \"price\": 1599,\n        \"stock\": 50,\n        \"rating\": 4.1\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Bluetooth Speaker\",\n        \"category\": \"Electronics\",\n        \"price\": 2999,\n        \"stock\": 20,\n        \"rating\": 4.6\n    }\n]"}],"_postman_id":"81bf8f4d-02ce-4f0e-a723-a2cdb8efcf8c"},{"name":"Get Product by id","id":"a512843b-ff8d-46e7-b9cb-6efe4cc224b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"0a31b5b8-f259-4b3e-9162-bb50d6daac68","name":"Get Product by id","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": 1,\r\n  \"name\": \"Gaming Mouse\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 1299,\r\n  \"stock\": 15,\r\n  \"rating\": 4.7\r\n}"},"url":{"raw":"http://localhost:3000/products/:id","protocol":"http","host":["localhost"],"port":"3000","path":["products",":id"],"variable":[{"key":"id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"ETag","value":"W/\"5c-dVl2qhOL3ivJqnFWZNxWXw9UxC0\""},{"key":"Date","value":"Wed, 25 Feb 2026 12:42:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Gaming Mouse\",\n    \"category\": \"Electronics\",\n    \"price\": 1299,\n    \"stock\": 15,\n    \"rating\": 4.7\n}"}],"_postman_id":"a512843b-ff8d-46e7-b9cb-6efe4cc224b5"},{"name":"Get Products by Category","id":"eb94f721-f7b3-4367-903c-d257d668443e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"22f54fce-9317-415f-8fcc-5243f5828c2f","name":"Get Products by Category","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Bluetooth Speaker\",\r\n  \"category\": \"Electronics\",\r\n  \"price\": 2999,\r\n  \"stock\": 20,\r\n  \"rating\": 4.6\r\n}"},"url":{"raw":"http://localhost:3000/products/category/:categoryName","protocol":"http","host":["localhost"],"port":"3000","path":["products","category",":categoryName"],"variable":[{"key":"categoryName","value":"Accessories"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"93"},{"key":"ETag","value":"W/\"5d-QubKIqi/aJVX7dAzjQhyxAadk/E\""},{"key":"Date","value":"Wed, 25 Feb 2026 12:44:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3,\n        \"name\": \"Laptop Stand\",\n        \"category\": \"Accessories\",\n        \"price\": 999,\n        \"stock\": 30,\n        \"rating\": 4.2\n    }\n]"}],"_postman_id":"eb94f721-f7b3-4367-903c-d257d668443e"},{"name":"Update Product Stock","id":"2b96e5e1-98cf-4325-b205-4031e923e703","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"stock\": 80\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/products/:id/stock","urlObject":{"protocol":"http","port":"3000","path":["products",":id","stock"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"2","key":"id"}]}},"response":[{"id":"d9df8cbf-2d4f-4a4b-be37-91774c0497d3","name":"Update Product Stock","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"stock\": 80\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/products/:id/stock","protocol":"http","host":["localhost"],"port":"3000","path":["products",":id","stock"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"90"},{"key":"ETag","value":"W/\"5a-KK9XG5LabToJI/dJZ1MgwGmFzF4\""},{"key":"Date","value":"Wed, 25 Feb 2026 12:53:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"name\": \"Running Shoes\",\n    \"category\": \"Footwear\",\n    \"price\": 2499,\n    \"stock\": 80,\n    \"rating\": 4.5\n}"}],"_postman_id":"2b96e5e1-98cf-4325-b205-4031e923e703"},{"name":"Update Product Price","id":"0340cdc8-4b97-48f7-a63f-976bd0a053ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"price\": 10999\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/products/:id/price","urlObject":{"protocol":"http","port":"3000","path":["products",":id","price"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"2","key":"id"}]}},"response":[{"id":"aa6469d2-d0f1-46b6-991f-84d874f288d1","name":"Update Product Price","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"price\": 11999\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/products/:id/price","protocol":"http","host":["localhost"],"port":"3000","path":["products",":id","price"],"variable":[{"key":"id","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"91"},{"key":"ETag","value":"W/\"5b-BnU9wOfMh9kLYpj44dgRKun+D2g\""},{"key":"Date","value":"Wed, 25 Feb 2026 13:04:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2,\n    \"name\": \"Running Shoes\",\n    \"category\": \"Footwear\",\n    \"price\": 11999,\n    \"stock\": 80,\n    \"rating\": 4.5\n}"}],"_postman_id":"0340cdc8-4b97-48f7-a63f-976bd0a053ae"}]}