{"info":{"_postman_id":"b4e22670-d01e-47e5-a05d-215a7c561ae8","name":"New Collection","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"29997574","collectionId":"b4e22670-d01e-47e5-a05d-215a7c561ae8","publishedId":"2sA3XWbdQF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-21T17:46:21.000Z"},"item":[{"name":"Authentication","item":[{"name":"Signup User","id":"3d027236-f7e3-45e4-8a6d-7b2a0d5d3a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mohamed Emara\",\n\t\t\"email\": \"test@gmail.com\",\n    \"password\": \"1234\",\n    \"phone\": \"1234567890\",\n    \"address\": \"Mansoura, Egypt\",\n    \"age\": 23\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/signup","urlObject":{"port":"3000","path":["auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b61224e7-299c-4829-af17-8827ca393cac","name":"Signup (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mohamed Emara\",\n    \"email\": \"emara@gmail.com\",\n    \"password\": \"1234\",\n    \"phone\": \"1234567890\",\n    \"address\": \"Mansoura, Egypt\",\n    \"age\": 23\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/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":"243"},{"key":"ETag","value":"W/\"f3-4LHCni0JAiSuisFCOKPfkNYIvho\""},{"key":"Date","value":"Fri, 21 Jun 2024 14:51:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"userId\": \"90f37dea-b7c2-4b5b-a5e4-dfff564bb4f7\",\n    \"name\": \"Mohamed Emara\",\n    \"email\": \"emara@gmail.com\",\n    \"address\": \"Mansoura, Egypt\",\n    \"phone\": \"1234567890\",\n    \"age\": 23,\n    \"createdAt\": \"2024-06-21T14:51:48.439Z\",\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\"\n}"},{"id":"9c491864-3b3b-4e4b-bd69-04cafade0ad3","name":"Signup (duplicate email)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mohamed Emara\",\n    \"email\": \"emara@gmail.com\",\n    \"password\": \"1234\",\n    \"phone\": \"1234567890\",\n    \"address\": \"Mansoura, Egypt\",\n    \"age\": 23\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/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":"82"},{"key":"ETag","value":"W/\"52-mfxP+KyDuFabiS1lydQoqGkiTMw\""},{"key":"Date","value":"Fri, 21 Jun 2024 14:52:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"This email is already registered, try login instead\"\n}"},{"id":"f9c5d2c0-a33c-43ea-97ab-843861de5c5d","name":"Signup (invalid email)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mohamed Emara\",\n    \"email\": \"mohamedemara\",\n    \"password\": \"1234\",\n    \"phone\": \"1234567890\",\n    \"address\": \"Mansoura, Egypt\",\n    \"age\": 23\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/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":"77"},{"key":"ETag","value":"W/\"4d-3V3Uy1KR57m8txxwRQ1zEUNG0HY\""},{"key":"Date","value":"Fri, 21 Jun 2024 14:53:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"email must be an email\"\n    ],\n    \"error\": \"Bad Request\",\n    \"statusCode\": 400\n}"},{"id":"9f024694-1c4b-43e6-ac93-e6c154dbc646","name":"Signup (missing required fields)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mohamed Emara\",\n    \"password\": \"1234\",\n    \"phone\": \"1234567890\",\n    \"address\": \"Mansoura, Egypt\",\n    \"age\": 23\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/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":"105"},{"key":"ETag","value":"W/\"69-R+KWQh4/hX0NjoDxR4/GZj1zrHE\""},{"key":"Date","value":"Fri, 21 Jun 2024 14:54:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"email must be an email\",\n        \"email should not be empty\"\n    ],\n    \"error\": \"Bad Request\",\n    \"statusCode\": 400\n}"}],"_postman_id":"3d027236-f7e3-45e4-8a6d-7b2a0d5d3a71"},{"name":"Login User","id":"bda71ebc-a669-44d4-ada9-f02b788338b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test@gmail.com\",\n    \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/login","urlObject":{"port":"3000","path":["auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e7d79eee-d727-4da9-b52a-a2e261b82d3e","name":"Login (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"emara@gmail.com\",\n    \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/login"},"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":"222"},{"key":"ETag","value":"W/\"de-pJQqBLRMmbrty/eci4jCp09C8kE\""},{"key":"Date","value":"Fri, 21 Jun 2024 14:55:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVtYXJhQGdtYWlsLmNvbSIsInVzZXJJZCI6IjkwZjM3ZGVhLWI3YzItNGI1Yi1hNWU0LWRmZmY1NjRiYjRmNyIsImlhdCI6MTcxODk4MTc1MH0.ZbBreRvsSpjaP47VeEJ87KL3U_q6GJG9czn82dDicGk\"\n}"},{"id":"2b0e8f43-60f3-4453-9c7c-81e7d447641a","name":"Login (missing required fields)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"emara@gmail.com\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/login"},"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":"111"},{"key":"ETag","value":"W/\"6f-k91IoqflRMVSBx//PkOjKs1yWg8\""},{"key":"Date","value":"Fri, 21 Jun 2024 14:58:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"password must be a string\",\n        \"password should not be empty\"\n    ],\n    \"error\": \"Bad Request\",\n    \"statusCode\": 400\n}"},{"id":"68f26f7d-a038-434a-9ba2-637ae21e3de5","name":"Login (wrong email or password)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"emara@gmail.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/login"},"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":"54"},{"key":"ETag","value":"W/\"36-B6wVGEmSccWJB32M9UNCImgUW6Y\""},{"key":"Date","value":"Fri, 21 Jun 2024 14:59:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"Wrong email or password\"\n}"}],"_postman_id":"bda71ebc-a669-44d4-ada9-f02b788338b7"}],"id":"6bac0eda-1086-49ee-961f-5e10e0870198","description":"<p>Signup &amp; Login users</p>\n","_postman_id":"6bac0eda-1086-49ee-961f-5e10e0870198"},{"name":"Product","item":[{"name":"Create Product","id":"81035413-f4d5-44da-b64c-7b5c2a50d1e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"ProductA\",\n    \"price\": 15\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/product","urlObject":{"port":"3000","path":["product"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"34454dbb-df83-42dd-9745-3cffd75a4824","name":"Unauthorized to create product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"ProductA\",\n    \"price\": 12.4\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/product"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:04:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"9638056b-6026-43f0-acbc-5971233d4bd1","name":"Create Product (success with token)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"ProductA\",\n    \"price\": 12.4,\n    \"description\": \"Product A description\",\n    \"stock\": 12\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/product"},"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":"171"},{"key":"ETag","value":"W/\"ab-AUQ4DpMzeuHkZJPbbTnQ5VpsfaM\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:07:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\",\n    \"name\": \"ProductA\",\n    \"description\": \"Product A description\",\n    \"price\": 12.4,\n    \"stock\": 12,\n    \"createdAt\": \"2024-06-21T15:07:02.206Z\"\n}"},{"id":"6f5a2907-be3e-4e9e-ab27-6cc1fc8a2ac6","name":"Missing required fields","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"ProductA\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/product"},"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":"145"},{"key":"ETag","value":"W/\"91-YuGEcCMz31tWmDzhGqwqKX507hY\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:08:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"price should not be empty\",\n        \"price must be a number conforming to the specified constraints\"\n    ],\n    \"error\": \"Bad Request\",\n    \"statusCode\": 400\n}"}],"_postman_id":"81035413-f4d5-44da-b64c-7b5c2a50d1e6"},{"name":"Update Product","id":"630701b7-a353-4f67-9315-388f12580c4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Product Name\",\n    \"stock\": 20,\n    \"price\": 100\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/product/f1842749-557c-48f2-8ab7-ee7bc2e9145c","urlObject":{"port":"3000","path":["product","f1842749-557c-48f2-8ab7-ee7bc2e9145c"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f2121918-59f1-463e-a3d7-36c8b0ed3fc5","name":"Unauthorized to update product","originalRequest":{"method":"PATCH","header":[],"url":"localhost:3000/product/9b9cc2cd-e926-4c36-bdcc-90233b903469"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:10:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"8c348759-1b30-4a70-b0af-a4b677345b88","name":"Successful update product","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Updated Product Name\",\n    \"stock\": 100,\n    \"price\": 14.6\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/product/9b9cc2cd-e926-4c36-bdcc-90233b903469"},"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":"184"},{"key":"ETag","value":"W/\"b8-TsDlaKsGeTJhkX8GBGT48c/R6o0\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:12:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\",\n    \"name\": \"Updated Product Name\",\n    \"description\": \"Product A description\",\n    \"price\": 14.6,\n    \"stock\": 100,\n    \"createdAt\": \"2024-06-21T15:07:02.206Z\"\n}"}],"_postman_id":"630701b7-a353-4f67-9315-388f12580c4c"}],"id":"5987c73f-56ed-4d67-a167-6ab5d1031b8b","_postman_id":"5987c73f-56ed-4d67-a167-6ab5d1031b8b","description":""},{"name":"Cart","item":[{"name":"Add Product to Cart","id":"90a7e86a-32b7-4232-9f02-eaf114d85b63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"f1842749-557c-48f2-8ab7-ee7bc2e9145c\",\n\t\t\"quantity\": 2\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/add","urlObject":{"port":"3000","path":["api","cart","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d46afae5-9eb8-4245-92d0-d306eb0ee14c","name":"Unauthorized add to cart","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"aa94ed64-125d-4f93-a896-75b87dbc6c37\", \n    \"quantity\": 2\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/add"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:16:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"75b13734-c3d1-4eb2-9128-51e7634104e6","name":"Add to Cart (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\", \n    \"quantity\": 2\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/add"},"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":"267"},{"key":"ETag","value":"W/\"10b-tPEJm33GssYUBDBfxkmyPgQ5rwU\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:17:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\",\n    \"items\": [\n        {\n            \"cartItemId\": \"5c85eeb8-1482-42b8-8aaa-22716339d878\",\n            \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\",\n            \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\",\n            \"quantity\": 2,\n            \"product\": {\n                \"name\": \"Updated Product Name\"\n            }\n        }\n    ]\n}"},{"id":"1f5e47e3-3e43-4994-99b2-b1218898dd3c","name":"missing required fields","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/add"},"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":"120"},{"key":"ETag","value":"W/\"78-G7qzNiq8p8M9M+AbK05ATb3o718\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:18:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": [\n        \"quantity must be a number conforming to the specified constraints\"\n    ],\n    \"error\": \"Bad Request\",\n    \"statusCode\": 400\n}"}],"_postman_id":"90a7e86a-32b7-4232-9f02-eaf114d85b63"},{"name":"View Cart","id":"3909874b-f564-4072-b731-f20944ef8d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/cart/fbd9c3fd-3fff-43c3-a993-ef0fe6ed40f7","urlObject":{"port":"3000","path":["api","cart","fbd9c3fd-3fff-43c3-a993-ef0fe6ed40f7"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"43d89705-898f-4199-9c85-e0fbe7f8cc55","name":"Unauthorized View Cart for Un-Logged-in users","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/cart/90f37dea-b7c2-4b5b-a5e4-dfff564bb4f7"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:20:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"d054f32f-466f-4e2b-bcfa-e072767c47d8","name":"View Cart for logged-in users","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/cart/90f37dea-b7c2-4b5b-a5e4-dfff564bb4f7"},"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":"279"},{"key":"ETag","value":"W/\"117-uiHTXjOOP9FVBIUF1txb6udUR3o\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:22:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\",\n    \"items\": [\n        {\n            \"cartItemId\": \"5c85eeb8-1482-42b8-8aaa-22716339d878\",\n            \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\",\n            \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\",\n            \"quantity\": 2,\n            \"product\": {\n                \"name\": \"Updated Product Name\"\n            }\n        }\n    ],\n    \"orders\": []\n}"}],"_postman_id":"3909874b-f564-4072-b731-f20944ef8d8f"},{"name":"Update Cart Product","id":"95620a8d-74ca-4d90-a349-6c2cea8b702f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"272a8f3c-fbae-48ab-8311-f8cda2860133\",\n    \"quantity\": 11\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/","urlObject":{"port":"3000","path":["api","cart",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fe6b5d3e-511e-4d77-8799-47e7c72af3a4","name":"Unauthorized to update cart","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\",\n    \"quantity\": 3\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:27:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"69f8ff27-133c-44f5-8f33-c23b29e656af","name":"Successful Update Cart Product","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\",\n    \"quantity\": 3\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/"},"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":"279"},{"key":"ETag","value":"W/\"117-uiHTXjOOP9FVBIUF1txb6udUR3o\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:29:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\",\n    \"items\": [\n        {\n            \"cartItemId\": \"5c85eeb8-1482-42b8-8aaa-22716339d878\",\n            \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\",\n            \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\",\n            \"quantity\": 2,\n            \"product\": {\n                \"name\": \"Updated Product Name\"\n            }\n        }\n    ],\n    \"orders\": []\n}"}],"_postman_id":"95620a8d-74ca-4d90-a349-6c2cea8b702f"},{"name":"Delete Product from cart","id":"04dd9c4d-880a-4d55-a9e5-7add706835d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"272a8f3c-fbae-48ab-8311-f8cda2860133\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/remove","urlObject":{"port":"3000","path":["api","cart","remove"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1cafcb21-4cfe-419f-b9d7-b62047227930","name":"Unsuccessful Product Removal","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"1abe890b-ae1d-4604-ac82-451b2ad3ea2b\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/remove"},"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":"73"},{"key":"ETag","value":"W/\"49-1sSqV/DoxYtFFUYtPE79lTS0TrA\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:31:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"message\": \"There is no product with this ID in your cart!\"\n}"},{"id":"cc4f806b-b9ad-4c11-a078-bf25e3650224","name":"Successful Remove Product","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/remove"},"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":"72"},{"key":"ETag","value":"W/\"48-WsBHVIpbXGEGxsbvz2oFRNui0tY\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:33:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\",\n    \"items\": [],\n    \"orders\": []\n}"},{"id":"9d51c600-25f2-4153-ad3d-1b3cbe141498","name":"Unauthorized to Remove Product","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"productId\": \"9b9cc2cd-e926-4c36-bdcc-90233b903469\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/cart/remove"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 15:35:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"}],"_postman_id":"04dd9c4d-880a-4d55-a9e5-7add706835d3"}],"id":"f6280651-2727-48b4-8b09-19659ad4dc5d","_postman_id":"f6280651-2727-48b4-8b09-19659ad4dc5d","description":""},{"name":"Orders","item":[{"name":"Create Order","id":"e81aa141-9390-40d9-ac51-8405a1b63370","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\": \"Mansoura\",\n\t\t\"method\": \"cash\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders","urlObject":{"port":"3000","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1fc61be1-44a8-4444-a173-e4503458652a","name":"Unauthorized to Create Order","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"address\": \"Mansoura\",\n    \"method\": \"cash\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:19:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"3bebb9f7-5cf5-4788-b37f-b6e69e7bd2d5","name":"Wrong method value","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\": \"Mansoura\",\n\t\t\"method\": \"online\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders"},"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":"64"},{"key":"ETag","value":"W/\"40-7ZaDRxPX7PTs4FZQPc9FmBlZosY\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:24:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"method can only be cash or credit\"\n}"},{"id":"e8618186-5b49-4961-a326-23e21692f8ac","name":"Can't create order of empty cart","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\": \"Mansoura\",\n\t\t\"method\": \"cash\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders"},"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":"70"},{"key":"ETag","value":"W/\"46-5z2424dxN5McGO2n662MnJAHaxA\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:30:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 400,\n    \"message\": \"Cart is empty! add items to cart first.\"\n}"},{"id":"8a027abd-470c-48eb-b044-04ee4101f219","name":"Create Order (successful)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\": \"Mansoura\",\n\t\t\"method\": \"cash\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders"},"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":"295"},{"key":"ETag","value":"W/\"127-fceumQcq4Mk0RnPojp1GSV1Tva0\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:40:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": \"8f47242b-7f11-4a48-9d20-44b8ad9b38a0\",\n    \"orderDate\": \"2024-06-21T16:40:36.758Z\",\n    \"status\": \"pending\",\n    \"totalAmount\": 102.2,\n    \"shippingAddress\": \"Mansoura\",\n    \"billingAddress\": \"Mansoura\",\n    \"paymentMethod\": \"cash\",\n    \"createdAt\": \"2024-06-21T16:40:36.758Z\",\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\"\n}"}],"_postman_id":"e81aa141-9390-40d9-ac51-8405a1b63370"},{"name":"Update Order Status","id":"8526dbe1-488b-42bf-ab65-d95bc9fb8e0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"shipped\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders/e116bf67-ce69-43e4-b691-75d2a6698d5c/status","urlObject":{"port":"3000","path":["api","orders","e116bf67-ce69-43e4-b691-75d2a6698d5c","status"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ed13a75b-cdb2-4ffa-b45d-09639e80c98d","name":"Unauthorized to Update Order","originalRequest":{"method":"PUT","header":[],"url":"localhost:3000/api/orders/8f47242b-7f11-4a48-9d20-44b8ad9b38a0/status"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:49:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"0025d2f6-72aa-447d-9080-d521c83dd64e","name":"Wrong status value","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"waiting\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders/8f47242b-7f11-4a48-9d20-44b8ad9b38a0/status"},"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":"94"},{"key":"ETag","value":"W/\"5e-zAzeMnya6OIgRvW+uM2LOivTQpc\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:50:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"message\": \"status must be pending, processing, shipped, delivered, or canceled\"\n}"},{"id":"33d59e0a-90de-453e-be31-d04e96e3c4f3","name":"Update Order Status (success)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"shipped\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/orders/8f47242b-7f11-4a48-9d20-44b8ad9b38a0/status"},"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":"295"},{"key":"ETag","value":"W/\"127-TB2akg+lrjJzey3tpBfz1ELi3Mk\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:52:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": \"8f47242b-7f11-4a48-9d20-44b8ad9b38a0\",\n    \"orderDate\": \"2024-06-21T16:40:36.758Z\",\n    \"status\": \"shipped\",\n    \"totalAmount\": 102.2,\n    \"shippingAddress\": \"Mansoura\",\n    \"billingAddress\": \"Mansoura\",\n    \"paymentMethod\": \"cash\",\n    \"createdAt\": \"2024-06-21T16:40:36.758Z\",\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\"\n}"}],"_postman_id":"8526dbe1-488b-42bf-ab65-d95bc9fb8e0e"},{"name":"View Order","id":"b4014d28-6133-4002-abed-e39816fc2c53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/orders/e116bf67-ce69-43e4-b691-75d2a6698d5c","urlObject":{"port":"3000","path":["api","orders","e116bf67-ce69-43e4-b691-75d2a6698d5c"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"417f4ea4-81f6-4d9b-8e0e-f205d180e849","name":"Unauthorized to view orders","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/orders/a024a6b4-2e54-44d8-93bb-4f64fae75950"},"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":"43"},{"key":"ETag","value":"W/\"2b-dGnJzt6gv1nJjX6DJ9RztDWptng\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:53:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"statusCode\": 401\n}"},{"id":"5cba29bf-ea03-41a6-9b40-68d656b3e75d","name":"Wrong productID","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/orders/a024a6b4-2e54-44d8-93bb-4f64fae75950"},"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":"57"},{"key":"ETag","value":"W/\"39-VQ082W21BTJWw7YHOT+TgwaWhJQ\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:55:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"message\": \"There is no order with this ID\"\n}"},{"id":"3ebb2809-2eee-433d-8262-50a445df8992","name":"View Order (success)","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/orders/8f47242b-7f11-4a48-9d20-44b8ad9b38a0"},"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":"295"},{"key":"ETag","value":"W/\"127-TB2akg+lrjJzey3tpBfz1ELi3Mk\""},{"key":"Date","value":"Fri, 21 Jun 2024 16:59:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": \"8f47242b-7f11-4a48-9d20-44b8ad9b38a0\",\n    \"orderDate\": \"2024-06-21T16:40:36.758Z\",\n    \"status\": \"shipped\",\n    \"totalAmount\": 102.2,\n    \"shippingAddress\": \"Mansoura\",\n    \"billingAddress\": \"Mansoura\",\n    \"paymentMethod\": \"cash\",\n    \"createdAt\": \"2024-06-21T16:40:36.758Z\",\n    \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\"\n}"}],"_postman_id":"b4014d28-6133-4002-abed-e39816fc2c53"}],"id":"fbc7732f-bc14-4f26-9582-3ee94e3c03dc","_postman_id":"fbc7732f-bc14-4f26-9582-3ee94e3c03dc","description":""},{"name":"User","item":[{"name":"View Order History","id":"2e3ecdaf-4127-4c38-a21b-12492d9ed67c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/users/fbd9c3fd-3fff-43c3-a993-ef0fe6ed40f7/orders","urlObject":{"port":"3000","path":["api","users","fbd9c3fd-3fff-43c3-a993-ef0fe6ed40f7","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"47e44fbf-b0f2-4881-ae8d-7ccf00726c17","name":"View Order History (success)","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/users/90f37dea-b7c2-4b5b-a5e4-dfff564bb4f7/orders"},"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":"604"},{"key":"ETag","value":"W/\"25c-H+pqXoHcZulDuWDR1pW5OnF1XGk\""},{"key":"Date","value":"Fri, 21 Jun 2024 17:41:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"orders\": [\n        {\n            \"orderId\": \"8f47242b-7f11-4a48-9d20-44b8ad9b38a0\",\n            \"orderDate\": \"2024-06-21T16:40:36.758Z\",\n            \"status\": \"shipped\",\n            \"totalAmount\": 102.2,\n            \"shippingAddress\": \"Mansoura\",\n            \"billingAddress\": \"Mansoura\",\n            \"paymentMethod\": \"cash\",\n            \"createdAt\": \"2024-06-21T16:40:36.758Z\",\n            \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\"\n        },\n        {\n            \"orderId\": \"90968422-90c2-4949-87a4-07d0a23c0649\",\n            \"orderDate\": \"2024-06-21T17:40:37.063Z\",\n            \"status\": \"pending\",\n            \"totalAmount\": 102.2,\n            \"shippingAddress\": \"Mansoura\",\n            \"billingAddress\": \"Mansoura\",\n            \"paymentMethod\": \"cash\",\n            \"createdAt\": \"2024-06-21T17:40:37.063Z\",\n            \"cartId\": \"7c9e0e84-65c9-4f44-bb1c-4d6ed533c633\"\n        }\n    ]\n}"},{"id":"00c88b00-3c2d-47f8-8813-949073bb51b2","name":"Wrong userId","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/users/1225dce4-1d1f-48a1-b5a3-8f7cf6a5ccfc/orders"},"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":"56"},{"key":"ETag","value":"W/\"38-G46ssYDwh0ry6CfPtmyexHFEuuA\""},{"key":"Date","value":"Fri, 21 Jun 2024 17:42:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"message\": \"There is no user with this ID\"\n}"}],"_postman_id":"2e3ecdaf-4127-4c38-a21b-12492d9ed67c"}],"id":"d4a952b1-a5e2-4c1e-9845-5ec001818c9e","_postman_id":"d4a952b1-a5e2-4c1e-9845-5ec001818c9e","description":""}]}