{"info":{"_postman_id":"1a93f5a7-aa1c-4558-a5da-853349e38246","name":"E-commerce_Order_System","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"37843029","collectionId":"1a93f5a7-aa1c-4558-a5da-853349e38246","publishedId":"2sB2cd5yZS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-19T22:09:03.000Z"},"item":[{"name":"Authintication","item":[{"name":"Sign-Up","item":[{"name":"Error-Cases","item":[{"name":"Missing-values","id":"5dee6f0a-3978-4670-8ba0-45c6e7db14f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyh@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/signup","urlObject":{"path":["auth","signup"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"ba040ebe-11e2-4e65-8c1c-9c741d73cc29","name":"Missing-value","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyh@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"194"},{"key":"ETag","value":"W/\"c2-I8RnwlvV/hm6j598sB3Ywpu0sqg\""},{"key":"Date","value":"Thu, 17 Apr 2025 03:54:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"type\": \"field\",\n            \"msg\": \"password is required\",\n            \"path\": \"password\",\n            \"location\": \"body\"\n        },\n        {\n            \"type\": \"field\",\n            \"msg\": \"password must be at least 6 characters\",\n            \"path\": \"password\",\n            \"location\": \"body\"\n        }\n    ]\n}"}],"_postman_id":"5dee6f0a-3978-4670-8ba0-45c6e7db14f8"},{"name":"Email-Exist","id":"34713941-4816-471b-bcdf-91144b5ff1f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyhamo7@gmail.com\",\r\n    \"password\":123456766\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/signup","urlObject":{"path":["auth","signup"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"7f794e84-481b-4434-bbe6-38119a3427e3","name":"Email-Exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyhamo7@gmail.com\",\r\n    \"password\":123456766\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"121"},{"key":"ETag","value":"W/\"79-G/iDKRX0f3qx3Uj/X9iT/2lhFos\""},{"key":"Date","value":"Thu, 17 Apr 2025 03:58:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"type\": \"field\",\n            \"value\": \"gemyhamo7@gmail.com\",\n            \"msg\": \"Email already in use\",\n            \"path\": \"email\",\n            \"location\": \"body\"\n        }\n    ]\n}"}],"_postman_id":"34713941-4816-471b-bcdf-91144b5ff1f7"}],"id":"ef3065f6-ae45-405d-adad-085748b71672","_postman_id":"ef3065f6-ae45-405d-adad-085748b71672","description":""},{"name":"Success-Response","item":[{"name":"SignUp","event":[{"listen":"test","script":{"id":"9b165024-ed0c-4e57-928d-84b620ccc8e7","exec":["pm.environment.set(\"JWT\", pm.response.json().data.token );"],"type":"text/javascript","packages":{}}}],"id":"15121352-4090-4446-945d-1e7d842f431a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyhamo7@gmail.com\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/signup","urlObject":{"path":["auth","signup"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"376438a5-9508-41aa-82e6-2156145515f1","name":"Sucuess-Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyhamo7@gmail.com\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"233"},{"key":"ETag","value":"W/\"e9-8ozdoNmtaGaAbXYqek2tyzhRpF4\""},{"key":"Date","value":"Thu, 17 Apr 2025 03:24:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"User registered successfully\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6IkNVU1RPTUVSIiwiaWF0IjoxNzQ0ODYwMjQ5LCJleHAiOjE3NDUxMTk0NDl9.EbEpuiUqRwvrRwU2GQw-tGQU73IMxRhbsdE7aAghrC0\"\n}"}],"_postman_id":"15121352-4090-4446-945d-1e7d842f431a"}],"id":"b39e1dcc-b51d-493d-8994-d6adf03ec3e6","_postman_id":"b39e1dcc-b51d-493d-8994-d6adf03ec3e6","description":""}],"id":"f5e2c75b-6c8d-4856-bbd0-78fe4a0369d6","_postman_id":"f5e2c75b-6c8d-4856-bbd0-78fe4a0369d6","description":""},{"name":"Log-In","item":[{"name":"Success-Response","item":[{"name":"Login","event":[{"listen":"test","script":{"id":"4b29a9c3-f17d-4106-8c9e-d1d07db4db82","exec":["pm.environment.set(\"JWT\", pm.response.json().token );"],"type":"text/javascript","packages":{}}}],"id":"264b6495-2db0-4abe-a229-3db3cc951190","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyhamo7@gmail.com\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/login","urlObject":{"path":["auth","login"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"4a090090-b3f7-4a98-90a3-bf2f4194a241","name":"Login-Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemyhamo7@gmail.com\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"232"},{"key":"ETag","value":"W/\"e8-QeVB7RFrv+HlsmtbGwyPeZ64Xak\""},{"key":"Date","value":"Thu, 17 Apr 2025 03:25:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"User logged in successfully\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6IkNVU1RPTUVSIiwiaWF0IjoxNzQ0ODYwMzQ1LCJleHAiOjE3NDUxMTk1NDV9.x5Qy73rysPTWv4vQOdvrND5l8tUbuHlNwm0r40-HsKA\"\n}"},{"id":"cf1d897f-0be7-4ddc-9582-9e6b14cf8002","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"engmogamil@gmail.com\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"228"},{"key":"ETag","value":"W/\"e4-f0pYVhlQwqwiqzBNji23/jT1b74\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:11:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"User logged in successfully\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwicm9sZSI6IkFETUlOIiwiaWF0IjoxNzQ1MDkzNDg5LCJleHAiOjE3NDUzNTI2ODl9.fO89Cc9my6oeS1B4elbKzt6kDadaTO4OywzqXRkR7NA\"\n}"}],"_postman_id":"264b6495-2db0-4abe-a229-3db3cc951190"}],"id":"041477b8-5898-4163-ab49-2a0f2957f75a","_postman_id":"041477b8-5898-4163-ab49-2a0f2957f75a","description":""},{"name":"Error-Case","item":[{"name":"User-Not-Exist","id":"50c684d3-2207-48f4-9831-642065c1d58d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemy@gmail.com\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/login","urlObject":{"path":["auth","login"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"4e2c4b6c-bfa1-4b8f-8d38-645f82438258","name":"User-Not-Exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gemy@gmail.com\",\r\n    \"password\":\"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-9w4tQZ/gmDrKUmU9Xly8RICl5ZE\""},{"key":"Date","value":"Thu, 17 Apr 2025 04:06:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"User Not exist\"\n}"}],"_postman_id":"50c684d3-2207-48f4-9831-642065c1d58d"}],"id":"4a2f6f5d-79cf-4a6f-bb03-7d05f647f676","_postman_id":"4a2f6f5d-79cf-4a6f-bb03-7d05f647f676","description":""}],"id":"64369d4f-9d20-493e-a986-c85d72b1cb25","_postman_id":"64369d4f-9d20-493e-a986-c85d72b1cb25","description":""}],"id":"75ccba3b-f3b8-49d7-8698-87505c956cad","_postman_id":"75ccba3b-f3b8-49d7-8698-87505c956cad","description":""},{"name":"Category","item":[{"name":"create-category","id":"bd6f3e26-9515-4bb9-8b51-a78b9b76a1de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"electronics\",\r\n    \"description\":\"electronics category desc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/category/create","urlObject":{"path":["category","create"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"7322d1a9-b48d-4c01-a76b-547b687ce308","name":"category-response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"electronics\",\r\n    \"description\":\"electronics category desc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/category/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"220"},{"key":"ETag","value":"W/\"dc-cJ6n2MiGCGihvpJ06QkXFn763Rs\""},{"key":"Date","value":"Thu, 17 Apr 2025 05:06:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Category created successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"title\": \"electronics\",\n        \"description\": \"electronics category desc\",\n        \"createdAt\": \"2025-04-17T05:06:55.863Z\",\n        \"updatedAt\": \"2025-04-17T05:06:55.863Z\"\n    }\n}"}],"_postman_id":"bd6f3e26-9515-4bb9-8b51-a78b9b76a1de"},{"name":"updated-category","id":"6a7e8bc2-7015-41a4-b36d-62eab9256f63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"electronics\",\r\n    \"description\":\"electronics category description\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/category/update/1","urlObject":{"path":["category","update","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"2536a261-6f2d-4e99-a161-e062c1facdfa","name":"updated-category","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"electronics\",\r\n    \"description\":\"electronics category description\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/category/update/1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"227"},{"key":"ETag","value":"W/\"e3-UCTmtRe0d22+wyx7GpuvvPaOKK0\""},{"key":"Date","value":"Thu, 17 Apr 2025 05:09:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Category updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"title\": \"electronics\",\n        \"description\": \"electronics category description\",\n        \"createdAt\": \"2025-04-17T05:06:55.863Z\",\n        \"updatedAt\": \"2025-04-17T05:09:05.292Z\"\n    }\n}"}],"_postman_id":"6a7e8bc2-7015-41a4-b36d-62eab9256f63"}],"id":"b332c4d6-4929-4077-9f53-a69fbd888672","_postman_id":"b332c4d6-4929-4077-9f53-a69fbd888672","description":""},{"name":"Product","item":[{"name":"Product For Admin","item":[{"name":"Create Product","id":"8cad7803-8713-4ff2-bf49-a5590f055e8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Iphone 77 phone\",\n    \"description\": \"This is a detailed description of the phone product that must be at least 20 characters long\",\n     \"price\": 1000,\n    \"stock\": 10,\n    \"categoryId\": 1\n}"},"url":"{{Base_Url}}/product/create","description":"<p>Create a new product</p>\n","urlObject":{"path":["product","create"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"7d9d3da5-38c7-485c-8d60-ced306d12d92","name":"Create Product","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Iphone 77 phone\",\n    \"description\": \"This is a detailed description of the phone product that must be at least 20 characters long\",\n     \"price\": 1000,\n    \"stock\": 10,\n    \"categoryId\": 1\n}"},"url":"{{Base_Url}}/product/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"330"},{"key":"ETag","value":"W/\"14a-prDF/BztRFQrJzFXor+G86nosAI\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:22:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Product created successfully\",\n    \"data\": {\n        \"id\": 13,\n        \"title\": \"Iphone 77 phone\",\n        \"description\": \"This is a detailed description of the phone product that must be at least 20 characters long\",\n        \"price\": 1000,\n        \"stock\": 10,\n        \"categoryId\": 1,\n        \"createdAt\": \"2025-04-19T20:22:47.926Z\",\n        \"updatedAt\": \"2025-04-19T20:22:47.926Z\"\n    }\n}"}],"_postman_id":"8cad7803-8713-4ff2-bf49-a5590f055e8e"},{"name":"Update Product","id":"7a1e3b62-f058-4030-83c8-caaafa1e701d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"shawomi Product Title\",\n    \"description\": \"This is an updated description of the product that must be at least 20 characters long\",\n    \"stock\": 150,\n    \"price\": 149.99,\n    \"categoryId\":1\n}"},"url":"{{Base_Url}}/product/update/1","description":"<p>Update a product by ID</p>\n","urlObject":{"path":["product","update","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"eb86e227-085c-449b-a073-2e8dcc7ff9ec","name":"Update Product","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"shawomi Product Title\",\n    \"description\": \"This is an updated description of the product that must be at least 20 characters long\",\n    \"stock\": 150,\n    \"price\": 149.99,\n    \"categoryId\":1\n}"},"url":"{{Base_Url}}/product/update/1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"332"},{"key":"ETag","value":"W/\"14c-K5oVRRg42va4WWMw5EeIbp/0eZs\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:23:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Product updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"title\": \"shawomi Product Title\",\n        \"description\": \"This is an updated description of the product that must be at least 20 characters long\",\n        \"price\": 149.99,\n        \"stock\": 150,\n        \"categoryId\": 1,\n        \"createdAt\": \"2025-04-17T06:05:56.892Z\",\n        \"updatedAt\": \"2025-04-19T20:23:43.776Z\"\n    }\n}"}],"_postman_id":"7a1e3b62-f058-4030-83c8-caaafa1e701d"},{"name":"Delete Product","id":"bdeb0070-fce2-41a7-867f-0df1aa9b1bc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/product/:id","description":"<p>Delete a product by ID</p>\n","urlObject":{"path":["product",":id"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"923b7eba-f951-4af4-9d0a-000ffaa05030","description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"bdeb0070-fce2-41a7-867f-0df1aa9b1bc4"},{"name":"Create-Bulk-Product","id":"1b3df640-5f18-4385-881d-a935272c2248","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"products\": [\r\n    {\r\n      \"title\": \"Summer T-Shirt\",\r\n      \"description\": \"Comfortable cotton t-shirt for summer\",\r\n      \"price\": 19.99,\r\n      \"stock\": 100,\r\n      \"categoryId\": 1\r\n    },\r\n    {\r\n      \"title\": \"Winter Jacket\",\r\n      \"description\": \"Warm winter jacket with fleece lining\",\r\n      \"price\": 89.99,\r\n      \"stock\": 50,\r\n      \"categoryId\": 1\r\n    },\r\n    {\r\n      \"title\": \"Running Shoes\",\r\n      \"description\": \"Lightweight running shoes with cushioned sole\",\r\n      \"price\": 59.99,\r\n      \"stock\": 75,\r\n      \"categoryId\": 1\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/product/create-bulk","urlObject":{"path":["product","create-bulk"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"0c8bdd08-c065-417d-b19c-861b86d70f32","name":"create-bulk-product","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"products\": [\r\n    {\r\n      \"title\": \"Summer T-Shirt\",\r\n      \"description\": \"Comfortable cotton t-shirt for summer\",\r\n      \"price\": 19.99,\r\n      \"stock\": 100,\r\n      \"categoryId\": 1\r\n    },\r\n    {\r\n      \"title\": \"Winter Jacket\",\r\n      \"description\": \"Warm winter jacket with fleece lining\",\r\n      \"price\": 89.99,\r\n      \"stock\": 50,\r\n      \"categoryId\": 1\r\n    },\r\n    {\r\n      \"title\": \"Running Shoes\",\r\n      \"description\": \"Lightweight running shoes with cushioned sole\",\r\n      \"price\": 59.99,\r\n      \"stock\": 75,\r\n      \"categoryId\": 1\r\n    }\r\n  ]\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/product/create-bulk"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"83"},{"key":"ETag","value":"W/\"53-NCLaxuH4SKKKSHLe3TLVgG+SmyU\""},{"key":"Date","value":"Sat, 19 Apr 2025 21:01:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Successfully created 3 products\",\n    \"data\": {\n        \"count\": 3\n    }\n}"}],"_postman_id":"1b3df640-5f18-4385-881d-a935272c2248"}],"id":"22d40575-fda3-46e7-844f-ee04e881c0ad","_postman_id":"22d40575-fda3-46e7-844f-ee04e881c0ad","description":""},{"name":"Product For Customer","item":[{"name":"Get All Products","id":"0cd4d02a-f12b-4bce-b3c3-8798c27e95f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Base_Url}}/product/all","description":"<p>Retrieve all products with pagination. Use page and limit query parameters to control the pagination.</p>\n","urlObject":{"path":["product","all"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"f7e4ac3a-1ce3-4ecc-b90b-17880cb91014","name":"Get All Products","originalRequest":{"method":"GET","header":[],"url":"{{Base_Url}}/product/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"290"},{"key":"ETag","value":"W/\"122-a/W9WHnL1K4CfXPg1OG4DLgjl5I\""},{"key":"Date","value":"Thu, 17 Apr 2025 06:07:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"title\": \"shwami Product\",\n            \"description\": \"This is a detailed description of the phone product that must be at least 20 characters long\",\n            \"price\": 99,\n            \"quantity\": 10,\n            \"categoryId\": 1,\n            \"createdAt\": \"2025-04-17T06:05:56.892Z\",\n            \"updatedAt\": \"2025-04-17T06:05:56.892Z\"\n        }\n    ]\n}"}],"_postman_id":"0cd4d02a-f12b-4bce-b3c3-8798c27e95f1"},{"name":"Get Product by ID","id":"559a2c88-aed4-4973-84aa-94b52ba1a3e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Base_Url}}/product/get/1","description":"<p>Retrieve a specific product by ID</p>\n","urlObject":{"path":["product","get","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"53230f53-5d2b-49f0-a406-ef4a1f6c4686","name":"Get Product by ID","originalRequest":{"method":"GET","header":[],"url":"{{Base_Url}}/product/get/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"288"},{"key":"ETag","value":"W/\"120-PHhMhoClMdefyep8p4632xnTzv4\""},{"key":"Date","value":"Thu, 17 Apr 2025 06:08:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 1,\n        \"title\": \"shwami Product\",\n        \"description\": \"This is a detailed description of the phone product that must be at least 20 characters long\",\n        \"price\": 99,\n        \"quantity\": 10,\n        \"categoryId\": 1,\n        \"createdAt\": \"2025-04-17T06:05:56.892Z\",\n        \"updatedAt\": \"2025-04-17T06:05:56.892Z\"\n    }\n}"}],"_postman_id":"559a2c88-aed4-4973-84aa-94b52ba1a3e1"},{"name":"Get-Filter-Product","id":"e6f15936-a446-4e41-83f3-e148cbac6374","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{Base_Url}}/product/filter?categoryId=1&minPrice=10&maxPrice=200&inStock=true&search=laptop&sortBy=price&order=asc&page=1&limit=10","urlObject":{"path":["product","filter"],"host":["{{Base_Url}}"],"query":[{"key":"categoryId","value":"1"},{"key":"minPrice","value":"10"},{"key":"maxPrice","value":"200"},{"key":"inStock","value":"true"},{"key":"search","value":"laptop"},{"key":"sortBy","value":"price"},{"key":"order","value":"asc"},{"key":"page","value":"1"},{"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"a99ab793-dab3-40d8-95a0-727b3bf78082","name":"Get-Filter-Product","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{Base_Url}}/product/filter?categoryId=1&minPrice=10&maxPrice=200&inStock=true&search=laptop&sortBy=price&order=asc&page=1&limit=10","host":["{{Base_Url}}"],"path":["product","filter"],"query":[{"key":"categoryId","value":"1"},{"key":"minPrice","value":"10"},{"key":"maxPrice","value":"200"},{"key":"inStock","value":"true"},{"key":"search","value":"laptop"},{"key":"sortBy","value":"price"},{"key":"order","value":"asc"},{"key":"page","value":"1"},{"key":"limit","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2220"},{"key":"ETag","value":"W/\"8ac-rVaJYIzOSIwj2GCnGKcbfNzu0Yc\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:25:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"products\": [\n            {\n                \"id\": 11,\n                \"title\": \"Oriental Marble Chair\",\n                \"description\": \"Introducing the France-inspired Pizza, blending outstanding style with local craftsmanship\",\n                \"price\": 84.89,\n                \"stock\": 60,\n                \"categoryId\": 1,\n                \"createdAt\": \"2024-05-23T15:02:30.868Z\",\n                \"updatedAt\": \"2025-04-17T16:03:19.983Z\",\n                \"category\": {\n                    \"id\": 1,\n                    \"title\": \"electronics\",\n                    \"description\": \"electronics category description\",\n                    \"createdAt\": \"2025-04-17T05:06:55.863Z\",\n                    \"updatedAt\": \"2025-04-17T05:09:05.292Z\"\n                }\n            },\n            {\n                \"id\": 2,\n                \"title\": \"Samsung phone\",\n                \"description\": \"This is a detailed description of the phone product that must be at least 20 characters long\",\n                \"price\": 99,\n                \"stock\": 10,\n                \"categoryId\": 1,\n                \"createdAt\": \"2025-04-17T18:42:51.300Z\",\n                \"updatedAt\": \"2025-04-17T18:42:51.300Z\",\n                \"category\": {\n                    \"id\": 1,\n                    \"title\": \"electronics\",\n                    \"description\": \"electronics category description\",\n                    \"createdAt\": \"2025-04-17T05:06:55.863Z\",\n                    \"updatedAt\": \"2025-04-17T05:09:05.292Z\"\n                }\n            },\n            {\n                \"id\": 4,\n                \"title\": \"Ergonomic Wooden Keyboard\",\n                \"description\": \"New red Pants with ergonomic design for lovely comfort\",\n                \"price\": 108,\n                \"stock\": 14,\n                \"categoryId\": 1,\n                \"createdAt\": \"2024-12-18T02:19:04.993Z\",\n                \"updatedAt\": \"2025-04-18T02:40:02.355Z\",\n                \"category\": {\n                    \"id\": 1,\n                    \"title\": \"electronics\",\n                    \"description\": \"electronics category description\",\n                    \"createdAt\": \"2025-04-17T05:06:55.863Z\",\n                    \"updatedAt\": \"2025-04-17T05:09:05.292Z\"\n                }\n            },\n            {\n                \"id\": 6,\n                \"title\": \"Gorgeous Concrete Car\",\n                \"description\": \"Discover the regal new Gloves with an exciting mix of Concrete ingredients\",\n                \"price\": 135.28,\n                \"stock\": 45,\n                \"categoryId\": 1,\n                \"createdAt\": \"2024-10-09T17:45:23.807Z\",\n                \"updatedAt\": \"2025-04-18T09:07:14.821Z\",\n                \"category\": {\n                    \"id\": 1,\n                    \"title\": \"electronics\",\n                    \"description\": \"electronics category description\",\n                    \"createdAt\": \"2025-04-17T05:06:55.863Z\",\n                    \"updatedAt\": \"2025-04-17T05:09:05.292Z\"\n                }\n            },\n            {\n                \"id\": 1,\n                \"title\": \"shawomi Product Title\",\n                \"description\": \"This is an updated description of the product that must be at least 20 characters long\",\n                \"price\": 149.99,\n                \"stock\": 150,\n                \"categoryId\": 1,\n                \"createdAt\": \"2025-04-17T06:05:56.892Z\",\n                \"updatedAt\": \"2025-04-19T20:23:43.776Z\",\n                \"category\": {\n                    \"id\": 1,\n                    \"title\": \"electronics\",\n                    \"description\": \"electronics category description\",\n                    \"createdAt\": \"2025-04-17T05:06:55.863Z\",\n                    \"updatedAt\": \"2025-04-17T05:09:05.292Z\"\n                }\n            }\n        ],\n        \"pagination\": {\n            \"total\": 5,\n            \"pages\": 1,\n            \"currentPage\": 1,\n            \"limit\": 10\n        }\n    }\n}"}],"_postman_id":"e6f15936-a446-4e41-83f3-e148cbac6374"}],"id":"3ad03a21-5a1f-4d8e-9839-fe5958655228","_postman_id":"3ad03a21-5a1f-4d8e-9839-fe5958655228","description":""}],"id":"b378c2d6-dc85-49d7-9308-d3d28be1d7cc","_postman_id":"b378c2d6-dc85-49d7-9308-d3d28be1d7cc","description":""},{"name":"Cart","item":[{"name":"Add-To-Cart","id":"809cec52-c846-4a7a-8e44-41ff7b9ffa73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"userId\":1,\n   \"productId\":7,\n   \"quantity\":3\n}"},"url":"{{Base_Url}}/cart/create","description":"<p>Create a new product</p>\n","urlObject":{"path":["cart","create"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"f83dc90d-d90c-4a54-9c4f-9084599aa25c","name":"Add-To-Cart","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"userId\":1,\n   \"productId\":7,\n   \"quantity\":3\n}"},"url":"{{Base_Url}}/cart/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"211"},{"key":"ETag","value":"W/\"d3-ozExFPYbVKtD8KiBflGxs8k7DQE\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:36:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Cart created successfully\",\n    \"data\": {\n        \"id\": 3,\n        \"userId\": 1,\n        \"productId\": 7,\n        \"quantity\": 3,\n        \"totalPrice\": 2434.95,\n        \"createdAt\": \"2025-04-19T20:36:44.734Z\",\n        \"updatedAt\": \"2025-04-19T20:36:44.734Z\"\n    }\n}"}],"_postman_id":"809cec52-c846-4a7a-8e44-41ff7b9ffa73"},{"name":"Get-All-Cart-ADMIN","id":"195e3b9e-157a-4628-a6be-71b37311894e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/cart/all","description":"<p>Retrieve all products with pagination. Use page and limit query parameters to control the pagination.</p>\n","urlObject":{"path":["cart","all"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"86f3bf10-9d2f-4b15-9525-bf44ac26e71e","name":"Get-All-Cart-ADMIN","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/cart/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"316"},{"key":"ETag","value":"W/\"13c-kWGHOv33l0UKSs/QzGSM1edtjV0\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:27:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"userId\": 1,\n            \"productId\": 1,\n            \"quantity\": 3,\n            \"totalPrice\": 449.97,\n            \"createdAt\": \"2025-04-17T10:38:18.322Z\",\n            \"updatedAt\": \"2025-04-17T10:38:18.322Z\"\n        },\n        {\n            \"id\": 2,\n            \"userId\": 1,\n            \"productId\": 4,\n            \"quantity\": 3,\n            \"totalPrice\": 324,\n            \"createdAt\": \"2025-04-18T15:53:13.121Z\",\n            \"updatedAt\": \"2025-04-18T15:53:13.121Z\"\n        }\n    ]\n}"}],"_postman_id":"195e3b9e-157a-4628-a6be-71b37311894e"},{"name":"Get Cart by ID","id":"83e47fb4-9031-4512-bbdf-3816641f6c53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/cart/get/1","description":"<p>Retrieve a specific product by ID</p>\n","urlObject":{"path":["cart","get","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"ea2b1c55-0efa-4c6b-bf3b-3ee08257c8e9","name":"Get Cart by ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{Base_Url}}/cart/get/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"172"},{"key":"ETag","value":"W/\"ac-wk6xUjYFvl/kTpa61IAKlh49Uf0\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:38:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 1,\n        \"userId\": 1,\n        \"productId\": 1,\n        \"quantity\": 3,\n        \"totalPrice\": 449.97,\n        \"createdAt\": \"2025-04-17T10:38:18.322Z\",\n        \"updatedAt\": \"2025-04-17T10:38:18.322Z\"\n    }\n}"}],"_postman_id":"83e47fb4-9031-4512-bbdf-3816641f6c53"},{"name":"Update Cart","id":"a3488036-5dec-42ce-9fc7-f8008a6bdc4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"userId\":1,\n    \"productId\":1,\n    \"quantity\":9\n}"},"url":"{{Base_Url}}/cart/update/1","description":"<p>Update a product by ID</p>\n","urlObject":{"path":["cart","update","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"22ddf474-3ed8-44ab-b26e-56da0f544a0d","name":"Update Cart","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"userId\":1,\n    \"productId\":1,\n    \"quantity\":9\n}"},"url":"{{Base_Url}}/cart/update/1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"210"},{"key":"ETag","value":"W/\"d2-zVQmAdLCghYkDXNMUf1H3e7fEjE\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:38:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Cart updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"userId\": 1,\n        \"productId\": 1,\n        \"quantity\": 9,\n        \"totalPrice\": 449.97,\n        \"createdAt\": \"2025-04-17T10:38:18.322Z\",\n        \"updatedAt\": \"2025-04-19T20:38:38.606Z\"\n    }\n}"}],"_postman_id":"a3488036-5dec-42ce-9fc7-f8008a6bdc4a"},{"name":"Delete Product","id":"5993fb1b-6a2f-469d-8160-f5bc4a3ac6d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/product/:id","description":"<p>Delete a product by ID</p>\n","urlObject":{"path":["product",":id"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"923b7eba-f951-4af4-9d0a-000ffaa05030","description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"5993fb1b-6a2f-469d-8160-f5bc4a3ac6d4"}],"id":"26626800-2ece-4840-bef7-66ab4a23e4b8","_postman_id":"26626800-2ece-4840-bef7-66ab4a23e4b8","description":""},{"name":"Order","item":[{"name":"Order For Admin","item":[{"name":"Get All Orders","id":"bae338b6-7640-4dfd-8cb6-4a40839d52ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/all","description":"<p>Retrieve all products with pagination. Use page and limit query parameters to control the pagination.</p>\n","urlObject":{"path":["order","all"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"e4684cef-1d85-4f4f-9a80-7005b9d1ad59","name":"Get All Orders","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"443"},{"key":"ETag","value":"W/\"1bb-5eaaJU5BEu35VdpTzUQdl+6/5C4\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:30:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"userId\": 1,\n            \"cartId\": 2,\n            \"shippingAddress\": \"Rosseta\",\n            \"taxPrice\": 0,\n            \"shippingPrice\": 0,\n            \"totalPrice\": 324,\n            \"status\": \"PROCESSING\",\n            \"createdAt\": \"2025-04-18T15:57:04.809Z\",\n            \"updatedAt\": \"2025-04-18T17:39:00.160Z\"\n        },\n        {\n            \"id\": 1,\n            \"userId\": 1,\n            \"cartId\": 1,\n            \"shippingAddress\": \"Alexandria\",\n            \"taxPrice\": 0,\n            \"shippingPrice\": 0,\n            \"totalPrice\": 449.97,\n            \"status\": \"PAID\",\n            \"createdAt\": \"2025-04-17T14:21:24.710Z\",\n            \"updatedAt\": \"2025-04-19T06:07:28.389Z\"\n        }\n    ]\n}"}],"_postman_id":"bae338b6-7640-4dfd-8cb6-4a40839d52ef"},{"name":"get-Order","id":"4bd4f3b7-cb58-4dad-ba2e-cf11ff85dcc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/get/1","description":"<p>Retrieve a specific product by ID</p>\n","urlObject":{"path":["order","get","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"933aa5af-064b-4f80-b86b-59d7b757a28f","name":"get-Order","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/get/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"329"},{"key":"ETag","value":"W/\"149-Fy9c06W3EAh3Q1GfmUhwLKw6/Rk\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:31:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": 1,\n        \"userId\": 1,\n        \"cartId\": 1,\n        \"shippingAddress\": \"Alexandria\",\n        \"taxPrice\": 0,\n        \"shippingPrice\": 0,\n        \"totalPrice\": 449.97,\n        \"status\": \"PAID\",\n        \"createdAt\": \"2025-04-17T14:21:24.710Z\",\n        \"updatedAt\": \"2025-04-19T06:07:28.389Z\",\n        \"user\": {\n            \"email\": \"gemyhamo7@gmail.com\"\n        },\n        \"cart\": {\n            \"productId\": 1,\n            \"quantity\": 3,\n            \"totalPrice\": 449.97\n        }\n    }\n}"}],"_postman_id":"4bd4f3b7-cb58-4dad-ba2e-cf11ff85dcc0"},{"name":"Update-Order-Status","id":"e238e192-ffe3-4cf2-ad1d-f08ba00ab907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\":\"PAID\"\n}"},"url":"{{Base_Url}}/order/update/1","description":"<p>Update a product by ID</p>\n","urlObject":{"path":["order","update","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"b8b26096-3797-466b-89ec-744945ffe073","name":"Update-Order-Status","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"status\":\"PAID\"\n}"},"url":"{{Base_Url}}/order/update/1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"312"},{"key":"ETag","value":"W/\"138-Wq914jB5SmuamfZrHcp6QOMcicM\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:34:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Order updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"userId\": 1,\n        \"cartId\": 1,\n        \"shippingAddress\": \"Alexandria\",\n        \"taxPrice\": 0,\n        \"shippingPrice\": 0,\n        \"totalPrice\": 449.97,\n        \"status\": \"PAID\",\n        \"createdAt\": \"2025-04-17T14:21:24.710Z\",\n        \"updatedAt\": \"2025-04-19T20:34:10.754Z\",\n        \"user\": {\n            \"email\": \"gemyhamo7@gmail.com\"\n        }\n    }\n}"}],"_postman_id":"e238e192-ffe3-4cf2-ad1d-f08ba00ab907"},{"name":"Order-Data-Csv","id":"0c9cb21e-36c4-4ae2-8a81-4fb463712b0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/Orders/data","urlObject":{"path":["order","Orders","data"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"3d1c4b93-e9c4-4efe-b634-b793897d50e4","name":"Order-Data-Csv","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/Orders/data"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Disposition","value":"attachment; filename=\"orders.csv\""},{"key":"Accept-Ranges","value":"bytes"},{"key":"Cache-Control","value":"public, max-age=0"},{"key":"Last-Modified","value":"Sat, 19 Apr 2025 20:35:21 GMT"},{"key":"ETag","value":"W/\"134-1964fc34db7\""},{"key":"Content-Type","value":"text/csv; charset=utf-8"},{"key":"Content-Length","value":"308"},{"key":"Date","value":"Sat, 19 Apr 2025 20:35:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Order ID,User ID,Product,Shipping Address,Total Price,Status,Created At\n2,1,Ergonomic Wooden Keyboard,Rosseta,324,PROCESSING,Fri Apr 18 2025 17:57:04 GMT+0200 (Eastern European Standard Time)\n1,1,shawomi Product Title,Alexandria,449.97,PAID,Thu Apr 17 2025 16:21:24 GMT+0200 (Eastern European Standard Time)\n"}],"_postman_id":"0c9cb21e-36c4-4ae2-8a81-4fb463712b0e"},{"name":"Delete Product","id":"42ab1649-3ff1-4f2e-8de3-fde921ee7943","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/product/:id","description":"<p>Delete a product by ID</p>\n","urlObject":{"path":["product",":id"],"host":["{{base_url}}"],"query":[],"variable":[{"id":"923b7eba-f951-4af4-9d0a-000ffaa05030","description":{"content":"<p>Product ID</p>\n","type":"text/plain"},"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"42ab1649-3ff1-4f2e-8de3-fde921ee7943"}],"id":"48127d04-5650-4d4a-bb5a-5a493c43b0b5","_postman_id":"48127d04-5650-4d4a-bb5a-5a493c43b0b5","description":""},{"name":"Order For Customer","item":[{"name":"create-Order","id":"2f863103-e973-49b7-93ae-289541adb227","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"userId\":1,\n    \"cartId\":2,\n    \"shippingAddress\":\"Rosseta\"\n}"},"url":"{{Base_Url}}/order/create","description":"<p>Create a new product</p>\n","urlObject":{"path":["order","create"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f863103-e973-49b7-93ae-289541adb227"},{"name":"Get-Order-History","id":"735beed3-98ee-4ef9-9117-d087cfda4b48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/orderHistory/1","description":"<p>Retrieve a specific product by ID</p>\n","urlObject":{"path":["order","orderHistory","1"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"67caf63c-7569-443e-8d99-7b91b230f321","name":"Get-Order-History","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/order/orderHistory/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"863"},{"key":"ETag","value":"W/\"35f-o2y8nufjMW04HLU/N9ItyDn9w0c\""},{"key":"Date","value":"Sat, 19 Apr 2025 22:23:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"userId\": 1,\n            \"cartId\": 2,\n            \"shippingAddress\": \"Rosseta\",\n            \"taxPrice\": 0,\n            \"shippingPrice\": 0,\n            \"totalPrice\": 324,\n            \"status\": \"PROCESSING\",\n            \"createdAt\": \"2025-04-18T15:57:04.809Z\",\n            \"updatedAt\": \"2025-04-19T21:39:00.002Z\",\n            \"cart\": {\n                \"id\": 2,\n                \"userId\": 1,\n                \"productId\": 4,\n                \"quantity\": 3,\n                \"totalPrice\": 324,\n                \"createdAt\": \"2025-04-18T15:53:13.121Z\",\n                \"updatedAt\": \"2025-04-18T15:53:13.121Z\",\n                \"product\": {\n                    \"title\": \"Ergonomic Wooden Keyboard\",\n                    \"price\": 108\n                }\n            }\n        },\n        {\n            \"id\": 1,\n            \"userId\": 1,\n            \"cartId\": 1,\n            \"shippingAddress\": \"Alexandria\",\n            \"taxPrice\": 0,\n            \"shippingPrice\": 0,\n            \"totalPrice\": 449.97,\n            \"status\": \"PAID\",\n            \"createdAt\": \"2025-04-17T14:21:24.710Z\",\n            \"updatedAt\": \"2025-04-19T20:34:10.754Z\",\n            \"cart\": {\n                \"id\": 1,\n                \"userId\": 1,\n                \"productId\": 1,\n                \"quantity\": 9,\n                \"totalPrice\": 449.97,\n                \"createdAt\": \"2025-04-17T10:38:18.322Z\",\n                \"updatedAt\": \"2025-04-19T20:38:38.606Z\",\n                \"product\": {\n                    \"title\": \"shawomi Product Title\",\n                    \"price\": 149.99\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"735beed3-98ee-4ef9-9117-d087cfda4b48"},{"name":"create-checkout-session","id":"54ca7b50-626b-4dcb-bbd8-9fb94e0c98d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/payment/create-checkout-session/2","urlObject":{"path":["payment","create-checkout-session","2"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"967f5da2-c4df-4c0b-9f92-5db59965f41d","name":"create-checkout-session","originalRequest":{"method":"POST","header":[],"url":"{{Base_Url}}/payment/create-checkout-session/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"371"},{"key":"ETag","value":"W/\"173-awwo5Sd8zRT1MiVxii2MR9eneGQ\""},{"key":"Date","value":"Fri, 18 Apr 2025 17:38:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://checkout.stripe.com/c/pay/cs_test_a19xOWlaJwcfx5UfTatPJR5TEq6uQRigHo9mpri6xsQCtqKJcuGv4V7QKB#fidkdWxOYHwnPyd1blpxYHZxWjA0V0NCT1FUR0ZiSWBXMFV8dDNqUDF1S3V%2FXE1Nb2l3X3FTcVBHcHxxYjdWYF1OUzJJN1RiYXNIdTxKa2J9YGkxNXJxSzA1VWhfNlBcdGp2XWM0YkpSakJiNTU1VG5OYUJdZicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl\"\n}"}],"_postman_id":"54ca7b50-626b-4dcb-bbd8-9fb94e0c98d2"}],"id":"5fda40ae-8591-47a5-a78a-c9562f199d0f","_postman_id":"5fda40ae-8591-47a5-a78a-c9562f199d0f","description":""}],"id":"6c26e615-7a59-4fa5-a654-43f33aeb993e","_postman_id":"6c26e615-7a59-4fa5-a654-43f33aeb993e","description":""},{"name":"Dashboard-Admin","item":[{"name":"get-revenue","id":"d7d03922-4e1d-4f17-b418-5fc073870f13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/revenue","urlObject":{"path":["dashboard","revenue"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"af6b75ff-3be2-46c7-9e76-1aa8400e1650","name":"Total-Revnue","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/revenue"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-MVsEcgOSxSTsox172Y+4yPNQGEg\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:21:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"totalRevenue\": 773.97\n    }\n}"}],"_postman_id":"d7d03922-4e1d-4f17-b418-5fc073870f13"},{"name":"get-total-orders","id":"37fde7d8-9007-4a4f-a622-1046e592fb6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/orders/total","urlObject":{"path":["dashboard","orders","total"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"69f43b90-b334-43c6-bbbf-74e13d50baed","name":"Total-Order","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/orders/total"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-UUJJYN7GpRLIc1SbgQtHIkw9kgI\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:20:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"totalOrders\": 2\n    }\n}"}],"_postman_id":"37fde7d8-9007-4a4f-a622-1046e592fb6f"},{"name":"get-recent-orders","id":"fa06cd60-9ba7-4227-93e1-57b3ab4273a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/orders/recent","urlObject":{"path":["dashboard","orders","recent"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"a93e4a06-f610-41fc-85a5-00f268202be3","name":"Recent-Order","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/orders/recent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1312"},{"key":"ETag","value":"W/\"520-V2/VgwBDlXV/juDxcNEjCK+obTI\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:19:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"recentOrders\": [\n            {\n                \"id\": 2,\n                \"userId\": 1,\n                \"cartId\": 2,\n                \"shippingAddress\": \"Rosseta\",\n                \"taxPrice\": 0,\n                \"shippingPrice\": 0,\n                \"totalPrice\": 324,\n                \"status\": \"PROCESSING\",\n                \"createdAt\": \"2025-04-18T15:57:04.809Z\",\n                \"updatedAt\": \"2025-04-18T17:39:00.160Z\",\n                \"user\": {\n                    \"id\": 1,\n                    \"email\": \"gemyhamo7@gmail.com\",\n                    \"password\": \"$2b$10$bgXNxYJupetALd0tBxjGU.6PR3wYVOSXM40zcAc1U9PADUj2msV7S\",\n                    \"role\": \"CUSTOMER\",\n                    \"createdAt\": \"2025-04-17T03:24:09.594Z\",\n                    \"updatedAt\": \"2025-04-17T03:24:09.594Z\"\n                },\n                \"cart\": {\n                    \"id\": 2,\n                    \"userId\": 1,\n                    \"productId\": 4,\n                    \"quantity\": 3,\n                    \"totalPrice\": 324,\n                    \"createdAt\": \"2025-04-18T15:53:13.121Z\",\n                    \"updatedAt\": \"2025-04-18T15:53:13.121Z\",\n                    \"product\": {\n                        \"title\": \"Ergonomic Wooden Keyboard\",\n                        \"price\": 108\n                    }\n                }\n            },\n            {\n                \"id\": 1,\n                \"userId\": 1,\n                \"cartId\": 1,\n                \"shippingAddress\": \"Alexandria\",\n                \"taxPrice\": 0,\n                \"shippingPrice\": 0,\n                \"totalPrice\": 449.97,\n                \"status\": \"PAID\",\n                \"createdAt\": \"2025-04-17T14:21:24.710Z\",\n                \"updatedAt\": \"2025-04-19T06:07:28.389Z\",\n                \"user\": {\n                    \"id\": 1,\n                    \"email\": \"gemyhamo7@gmail.com\",\n                    \"password\": \"$2b$10$bgXNxYJupetALd0tBxjGU.6PR3wYVOSXM40zcAc1U9PADUj2msV7S\",\n                    \"role\": \"CUSTOMER\",\n                    \"createdAt\": \"2025-04-17T03:24:09.594Z\",\n                    \"updatedAt\": \"2025-04-17T03:24:09.594Z\"\n                },\n                \"cart\": {\n                    \"id\": 1,\n                    \"userId\": 1,\n                    \"productId\": 1,\n                    \"quantity\": 3,\n                    \"totalPrice\": 449.97,\n                    \"createdAt\": \"2025-04-17T10:38:18.322Z\",\n                    \"updatedAt\": \"2025-04-17T10:38:18.322Z\",\n                    \"product\": {\n                        \"title\": \"shawomi Product Title\",\n                        \"price\": 149.99\n                    }\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"fa06cd60-9ba7-4227-93e1-57b3ab4273a5"},{"name":"get-top-products-Delevierd","id":"774b12d5-d5e8-447e-a2a5-9ad21c39633d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/products/top","urlObject":{"path":["dashboard","products","top"],"host":["{{Base_Url}}"],"query":[],"variable":[]}},"response":[{"id":"490850d3-3ae3-430f-af09-68ca292add2b","name":"top-products","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{JWT}}","type":"text"}],"url":"{{Base_Url}}/dashboard/products/top"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-b+1NUA2+Hk9B9aSnN6+q/X74TzA\""},{"key":"Date","value":"Sat, 19 Apr 2025 20:18:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"topProducts\": []\n    }\n}"}],"_postman_id":"774b12d5-d5e8-447e-a2a5-9ad21c39633d"}],"id":"d7cad0a7-2934-41ac-a672-594b2ab81c61","_postman_id":"d7cad0a7-2934-41ac-a672-594b2ab81c61","description":""}]}