{"info":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"17672386","collectionId":"f2a66ae2-c6b7-4d42-9e72-636621582976","publishedId":"2s9XxyQsn1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-04T16:40:33.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","id":"51a1180e-f30e-44a2-87be-dec5effc8127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fullName\": \"Mustafa Mahmoud\",\n    \"email\" : \"mustafa.hamzawy32332@gmail.com\",\n    \"username\": \"hamzawy233322\",\n    \"phoneNumber\": \"+201121366579\",\n    \"password\": \"open12341234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/user/register","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["user","register"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"51a1180e-f30e-44a2-87be-dec5effc8127"},{"name":"Login","id":"ef39a2d5-6cb5-4ed8-88d2-2cf894b59b24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"emailOrUsername\": \"hamzawy1\",\n    \"password\": \"open1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/user/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["user","login"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef39a2d5-6cb5-4ed8-88d2-2cf894b59b24"},{"name":"Logout","id":"ee545c94-e9c0-4d27-8a3e-7734f4158dde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/user/logout","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["user","logout"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee545c94-e9c0-4d27-8a3e-7734f4158dde"},{"name":"Profile","id":"189cfd89-971a-456e-bae7-6a6b57a71e30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/user/profile","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["user","profile"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"189cfd89-971a-456e-bae7-6a6b57a71e30"}],"id":"3b2296c0-b18c-4e76-a289-95cb8654906f","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Notes</strong></th>\n<th><strong>Need Auth token</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Register</td>\n<td>All body data is required except the phoneNumber</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Login</td>\n<td>-Can send email or username in the body</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Profile</td>\n<td></td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Logout</td>\n<td></td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"3b2296c0-b18c-4e76-a289-95cb8654906f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}}},{"name":"Brand","item":[{"name":"Get all","id":"726fc461-68ec-4472-9326-176095b56ff4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/brand/all","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["brand","all"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"726fc461-68ec-4472-9326-176095b56ff4"},{"name":"Get one","id":"e4c4a590-868b-4586-8926-562165b7746f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/brand/64c53412d76e1924443600ab","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["brand","64c53412d76e1924443600ab"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e4c4a590-868b-4586-8926-562165b7746f"},{"name":"Add","id":"d86c9bbd-0724-41f7-840b-b487647f00be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"brandName\": \"Ikea\",\n    \"brandImage\": \"any.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/brand/add","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["brand","add"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d86c9bbd-0724-41f7-840b-b487647f00be"},{"name":"Update","id":"4976cae2-c544-4308-a0f9-6c3c1f768afc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"brandName\": \"Samsung\",\n    \"brandImage\" : \"samsung_icon.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/brand/update?id=64c54829062a5d4732a0828b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["brand","update"],"host":["http://localhost"],"query":[{"key":"id","value":"64c54829062a5d4732a0828b"}],"variable":[]}},"response":[],"_postman_id":"4976cae2-c544-4308-a0f9-6c3c1f768afc"},{"name":"Delete","id":"1777af8b-95e2-4cc5-8480-69ee5ab7213a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3005/brand/delete?id=64c5398fd76e1924443600cd","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["brand","delete"],"host":["http://localhost"],"query":[{"key":"id","value":"64c5398fd76e1924443600cd"}],"variable":[]}},"response":[],"_postman_id":"1777af8b-95e2-4cc5-8480-69ee5ab7213a"}],"id":"34f9c722-346c-4922-9915-4e1e18243764","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Notes</strong></th>\n<th><strong>Need Auth token</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Get All</td>\n<td>-</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Get one</td>\n<td>If the id is not found, response will be empty {}</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Add</td>\n<td>-</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Update</td>\n<td>-</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Delete</td>\n<td>If the id is not found, response will be {deleted: 0 } else {deleted: 1}</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"34f9c722-346c-4922-9915-4e1e18243764","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}}},{"name":"Category","item":[{"name":"Get all","id":"78fe555c-92e1-4e60-9599-10b329cf865e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/category/all","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["category","all"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"78fe555c-92e1-4e60-9599-10b329cf865e"},{"name":"Get one","id":"9671b652-6b7a-4eb6-b9f0-76c0df39ca0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/category/64c55fd491e9eee65323d241","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["category","64c55fd491e9eee65323d241"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9671b652-6b7a-4eb6-b9f0-76c0df39ca0c"},{"name":"Add","id":"e6973250-5f36-4ebb-9519-958b8863d6a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"categoryName\": \"Testing Category\",\n    \"categoryImage\": \"any.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/category/add","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["category","add"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6973250-5f36-4ebb-9519-958b8863d6a9"},{"name":"Update","id":"12bff0aa-8dd1-4726-b31b-1da0af12f341","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"categoryName\": \"Updated Name\",\n    \"categoryImage\" : \"new_image.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/category/update?id=64c55fd491e9eee65323d23a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["category","update"],"host":["http://localhost"],"query":[{"key":"id","value":"64c55fd491e9eee65323d23a"}],"variable":[]}},"response":[],"_postman_id":"12bff0aa-8dd1-4726-b31b-1da0af12f341"},{"name":"Delete","id":"251d5159-986a-483f-bc0a-19a13d34d2c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3005/category/delete?id=64c55fd491e9eee65323d241","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["category","delete"],"host":["http://localhost"],"query":[{"key":"id","value":"64c55fd491e9eee65323d241"}],"variable":[]}},"response":[],"_postman_id":"251d5159-986a-483f-bc0a-19a13d34d2c2"}],"id":"479f1170-ecca-4c63-ba21-6681047bd56f","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Notes</strong></th>\n<th><strong>Need Auth token</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Get All</td>\n<td>-</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Get one</td>\n<td>If the id is not found, response will be empty {}</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Add</td>\n<td>-</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Update</td>\n<td>-</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Delete</td>\n<td>If the id is not found, response will be {deleted: 0 } else {deleted: 1}</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"479f1170-ecca-4c63-ba21-6681047bd56f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}}},{"name":"Product","item":[{"name":"Get all","id":"3d105742-bec1-4379-8c66-4773e15fbc37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/product/all?page=2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["product","all"],"host":["http://localhost"],"query":[{"key":"page","value":"2"}],"variable":[]}},"response":[],"_postman_id":"3d105742-bec1-4379-8c66-4773e15fbc37"},{"name":"Get one","id":"08799290-d047-4487-ba2e-03375420cf5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/product/PRD017","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["product","PRD017"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"08799290-d047-4487-ba2e-03375420cf5d"},{"name":"Add","id":"cb1b16f7-2227-44e5-8522-1669422e8d53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n      \"productTitle\": \"Product Title 100\",\n      \"productImages\": [\"image100.jpg\", \"image101.jpg\"],\n      \"productDescription\": \"Description for Product 100\",\n      \"productPrice\": 25.0,\n      \"rate\": 4.5,\n      \"category\": \"64c55fd491e9eee65323d23a\"\n    \n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/product/add","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["product","add"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb1b16f7-2227-44e5-8522-1669422e8d53"},{"name":"Update","id":"6d6e2399-6a4a-4858-9035-6ad533389fc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n      \"productTitle\" : \"new title\",\n      \"productImages\": [\"new_image100.jpg\", \"new_image101.jpg\"],\n      \"productDescription\": \"new Description for Product 100\",\n      \"productPrice\": 35.0,\n      \"rate\": 3.5,\n      \"category\": \"64c55fd491e9eee65323d23c\",\n      \"isAvailable\" : false\n    \n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/product/update?id=64c67f8bff28a171e0e6823a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["product","update"],"host":["http://localhost"],"query":[{"key":"id","value":"64c67f8bff28a171e0e6823a"}],"variable":[]}},"response":[],"_postman_id":"6d6e2399-6a4a-4858-9035-6ad533389fc6"},{"name":"Delete","id":"ae7256c8-f84b-4212-b8ed-591512a80726","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3005/product/delete?id=64cd2e43b3d51f05daa4f09f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["product","delete"],"host":["http://localhost"],"query":[{"key":"id","value":"64cd2e43b3d51f05daa4f09f"}],"variable":[]}},"response":[],"_postman_id":"ae7256c8-f84b-4212-b8ed-591512a80726"}],"id":"a890b532-cb2a-4f6c-ad8c-e064d355c081","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Notes</strong></th>\n<th><strong>Need Auth token</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Get All</td>\n<td>-Set page number for pagination.</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Get one</td>\n<td>-Get by product code not id.  <br />-If the product code is not found, response will be empty {}</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Add</td>\n<td>-</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Update</td>\n<td>-</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Delete</td>\n<td>-If the id is not found, response will be {deleted: 0 } else {deleted: 1}</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"a890b532-cb2a-4f6c-ad8c-e064d355c081","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}}},{"name":"Cart","item":[{"name":"Get Cart","id":"286f84ab-d45b-46d3-82ad-376c9b9564a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/cart","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["cart"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"286f84ab-d45b-46d3-82ad-376c9b9564a1"},{"name":"Add to cart","id":"69cbb512-e200-4c06-bc17-aa83aa30a782","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product\": {\n        \"productId\": \"64c6a8cd593c48399d476c23\",\n        \"quantity\" : 2\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/cart/addToCart","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["cart","addToCart"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"69cbb512-e200-4c06-bc17-aa83aa30a782"},{"name":"Delete","id":"e2d68546-20ce-4f09-a571-c4fbfd7b0ac4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"64c6a8cd593c48399d476c22\" \n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/cart/deleteFromCart","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["cart","deleteFromCart"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2d68546-20ce-4f09-a571-c4fbfd7b0ac4"}],"id":"397a6054-2da7-42a7-a608-40f814817b17","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Notes</strong></th>\n<th><strong>Need Auth token</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Get Cart</td>\n<td>-returns the cart data for the currently logged in user.</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Add to cart</td>\n<td>-</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Delete</td>\n<td>-To delete a product from cart.</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"397a6054-2da7-42a7-a608-40f814817b17","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}}},{"name":"Search","item":[{"name":"Product By Filter","id":"b5f43fa9-d1a6-4f45-8d8f-da7cc8fb625c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/search/product?query=product&date=2023-07-30&rate=4.5&price=20&page=1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["search","product"],"host":["http://localhost"],"query":[{"key":"query","value":"product"},{"description":{"content":"<p>will search for products more recent than this date</p>\n","type":"text/plain"},"key":"date","value":"2023-07-30"},{"description":{"content":"<p>will search for products with bigger rate than this given rate</p>\n","type":"text/plain"},"key":"rate","value":"4.5"},{"description":{"content":"<p>will search for products with less price than this given price</p>\n","type":"text/plain"},"key":"price","value":"20"},{"description":{"content":"<p>for pagination</p>\n","type":"text/plain"},"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"b5f43fa9-d1a6-4f45-8d8f-da7cc8fb625c"},{"name":"Brand","id":"b1259e74-617a-4bd4-981e-826d8dee4db0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/search/brand?query=puma","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["search","brand"],"host":["http://localhost"],"query":[{"key":"query","value":"puma"}],"variable":[]}},"response":[],"_postman_id":"b1259e74-617a-4bd4-981e-826d8dee4db0"},{"name":"Category","id":"1f153d7d-befc-4f09-bb52-4261c8fdf55b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/search/category?query=Electronics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["search","category"],"host":["http://localhost"],"query":[{"key":"query","value":"Electronics"}],"variable":[]}},"response":[],"_postman_id":"1f153d7d-befc-4f09-bb52-4261c8fdf55b"}],"id":"fc0a670c-9345-48dc-8848-2867f3141fc2","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Product</td>\n<td>Query parameters must have both of the query_search and page number.  <br />High priority for title of the product.</td>\n</tr>\n<tr>\n<td>Product By Filter</td>\n<td>Allowed filters:  <br />- price  <br />- rate  <br />- date</td>\n</tr>\n<tr>\n<td>Brand</td>\n<td>Query parameters must have the query_search.</td>\n</tr>\n<tr>\n<td>Category</td>\n<td>Query parameters must have the query_search.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"fc0a670c-9345-48dc-8848-2867f3141fc2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}}},{"name":"Order","item":[{"name":"Get User Orders","id":"a4b62c93-a1c5-4aab-8cdd-c3d537255564","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3005/order/userOrders","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["order","userOrders"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4b62c93-a1c5-4aab-8cdd-c3d537255564"},{"name":"Make order","id":"e8a082e5-a2ef-4900-8123-dcb802008d9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"items\" : [\n        {\n            \"product\" : \"64c6a8cd593c48399d476c22\",\n            \"quantity\" : 1\n        },\n        {\n            \"product\" : \"64c6a8cd593c48399d476c23\",\n            \"quantity\" : 1\n        }\n    ],\n    \"totalPrice\" : 1234.6,\n    \"paymentMethod\" : \"paypal\",\n    \"shippingAddress\" : {\n        \"street\" : \"street 1\",\n        \"city\" : \"Cairo\",\n        \"postalCode\" : 12345,\n        \"country\" : \"Egypt\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/order/add","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["order","add"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8a082e5-a2ef-4900-8123-dcb802008d9c"},{"name":"Update Order Status","id":"0df0a26a-ec98-4059-a95d-6d2c56e5401a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"orderId\" : \"64ccfc8388c5a9e6ed55ad53\" , \n    \"status\" : \"deleivered\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3005/order/update","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}},"urlObject":{"port":"3005","path":["order","update"],"host":["http://localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0df0a26a-ec98-4059-a95d-6d2c56e5401a"}],"id":"8dad336f-8256-4e8e-bd5a-1d92781df681","description":"<p>Note: All endpoints need token</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Endpoint</strong></th>\n<th><strong>Notes</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Get User Orders</td>\n<td>-To get all orders that made by a user</td>\n</tr>\n<tr>\n<td>Make order</td>\n<td></td>\n</tr>\n<tr>\n<td>Update Order Status</td>\n<td>Status:  <br />- pending  <br />- processing  <br />- shipped  <br />- delivered  <br />- cancelled</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"8dad336f-8256-4e8e-bd5a-1d92781df681","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"f2a66ae2-c6b7-4d42-9e72-636621582976","id":"f2a66ae2-c6b7-4d42-9e72-636621582976","name":"eCommerce_express.js","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"cab605c9-48a0-4d6b-9d66-6ad1d12da502","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f916b995-8787-40d4-ae77-bd5c236638d6","type":"text/javascript","exec":[""]}}],"variable":[{"key":"URL","value":"http://localhost","type":"string"},{"key":"PORT","value":"3005","type":"string"}]}