{"info":{"_postman_id":"aa014edf-a99a-455f-8441-86931c0736d7","name":"smartList","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"26738001","collectionId":"aa014edf-a99a-455f-8441-86931c0736d7","publishedId":"2s9Y5ZuMEH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-28T18:37:09.000Z"},"item":[{"name":"user","item":[{"name":"register","id":"568897d7-e068-465f-9f2b-7c6de6062b08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Leia\",\n  \"last_name\": \"Sirius\",\n  \"githubAccount\": \"Sirius\",\n  \"email\": \"tesla@teste.com\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/register","urlObject":{"protocol":"http","port":"8000","path":["api","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8ec80263-ba89-462f-9d25-a2bfa4c1f155","name":"badRequest","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Leia\",\n  \"last_name\": \"Sirius\",\n  \"githubAccount\": \"Sirius\",\n  \"email\": \"leia@teste.com\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/registerr"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"ETag","value":"W/\"52-rtf1doYRdCLGE6S3h+hfb0HZetg\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:23:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"Email already exists, go to login page\"\n}"},{"id":"e6b7676f-a2b1-40d3-90ad-ca299ff0b222","name":"forbidden","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Leia\",\n  \"last_name\": \"Sirius\",\n  \"githubAccount\": \"Sirius\",\n  \"email\": \"leia@teste.com\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/registerre"},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"9"},{"key":"ETag","value":"W/\"9-PatfYBLj4Um1qTm5zrukoLhNyPU\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:25:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Forbidden"},{"id":"bc6abcb3-1364-491d-9476-6235764b845f","name":"failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-tocGjmpRJcKG2xUypBjXUS20XyE\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:26:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"All user data is required\"\n}"},{"id":"30713ec2-9a7b-49bc-991d-79b1dbf8549e","name":"registered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"first_name\": \"Leia\",\n  \"last_name\": \"Sirius\",\n  \"githubAccount\": \"Sirius\",\n  \"email\": \"leia@teste.com\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"189"},{"key":"ETag","value":"W/\"bd-XsUEeZ1M8uHMccsvAXKwZVDRdko\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:27:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": {\n        \"first_name\": \"Leia\",\n        \"last_name\": \"Sirius\",\n        \"email\": \"leia@teste.com\",\n        \"password\": \"$2b$10$hDxo0vwYnETGLGGJU.Cp4.Wmnd7N8Aw9F843QLzP9fcOXwE69QIoS\",\n        \"_id\": \"64ece6fbfcb1f48a7dd3e4b1\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"568897d7-e068-465f-9f2b-7c6de6062b08"},{"name":"login","id":"253dfa8f-3f52-42d0-8cf4-b4f76923b975","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"leila@teste.com\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/login","urlObject":{"protocol":"http","port":"8000","path":["api","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5930d4ea-5960-4588-9cc4-cbe18e991be8","name":"forbiden","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/loginn"},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"9"},{"key":"ETag","value":"W/\"9-PatfYBLj4Um1qTm5zrukoLhNyPU\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:29:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Forbidden"},{"id":"19c1ee93-da81-40e9-835a-178c639f6e03","name":"failed- missing data","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"74"},{"key":"ETag","value":"W/\"4a-XefBdPpyhpb0fvSgF03T4vbVDJM\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:34:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"Email or password are missing.\"\n}"},{"id":"86f17d86-994d-418d-98af-4a5ff7f61e29","name":"email not exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"leilaa@teste.com\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-L7cnh5CCx58jG93jQrX0Zz9eMCA\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:34:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"Email or password do not exist.\"\n}"},{"id":"6104190b-5c61-4f91-b837-e99ecd2dc6b5","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"email\": \"leila@teste.com\",\n  \"password\": \"123abc\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"185"},{"key":"ETag","value":"W/\"b9-QH8W6mzZlTpqMoUW6SQZxuV7LgU\""},{"key":"Date","value":"Mon, 28 Aug 2023 18:35:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"userLoginTokken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxlaWxhQHRlc3RlLmNvbSIsImlhdCI6MTY5MzI0NzcwNSwiZXhwIjoxNjkzMjUxMzA1fQ.xDoemskjXpmE-ow-YPKtU11FgRMvGFHJ9lyqm7DKEKE\"\n}"}],"_postman_id":"253dfa8f-3f52-42d0-8cf4-b4f76923b975"}],"id":"d0faed15-7837-41ca-8f8f-a4efb8fca6f4","_postman_id":"d0faed15-7837-41ca-8f8f-a4efb8fca6f4","description":""},{"name":"product","item":[{"name":"Get product by name","id":"3da92414-9c45-4b45-8454-21c5360bdb78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/products?name=ba","urlObject":{"protocol":"http","port":"8000","path":["api","products"],"host":["localhost"],"query":[{"key":"name","value":"ba"}],"variable":[]}},"response":[{"id":"d9c46631-dcef-481b-9c7d-fa7a9a21751a","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8000/api/products?name=ba","protocol":"http","host":["localhost"],"port":"8000","path":["api","products"],"query":[{"key":"name","value":"ba"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"272"},{"key":"ETag","value":"W/\"110-5IUGtNHRySVt8JfX8O4Q4CRosqc\""},{"key":"Date","value":"Tue, 29 Aug 2023 14:14:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"product\": [\n        {\n            \"_id\": \"64edf10361e4f6f5a4619e09\",\n            \"product_name\": \"banana\",\n            \"image\": \"fczCr7MdE7U\",\n            \"category_id\": \"64edda537c57f32231f9f1af\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3f6fc31b422d6e632b2\",\n            \"product_name\": \"basil\",\n            \"image\": \"rICRgergpIc\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"3da92414-9c45-4b45-8454-21c5360bdb78"},{"name":"Get all products","id":"04904d19-90a1-4c71-97d9-e96dde495bf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/products","urlObject":{"protocol":"http","port":"8000","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ebc0af4c-8f4b-443c-bd93-d1eb4af4f497","name":"success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImxlaWxhQHRlc3RlLmNvbSIsImlhdCI6MTY5MzMwMTkwNywiZXhwIjoxNjkzMzA1NTA3fQ.twPyx2B9-QlQ6aQdzmngKuc71I51d_6q-4AUPidqJeg","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4239"},{"key":"ETag","value":"W/\"108f-6IV4hLjRuwalHRQhelDrPfAaNwo\""},{"key":"Date","value":"Tue, 29 Aug 2023 14:16:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"allProduct\": [\n        {\n            \"_id\": \"64edf10361e4f6f5a4619e09\",\n            \"product_name\": \"banana\",\n            \"image\": \"fczCr7MdE7U\",\n            \"category_id\": \"64edda537c57f32231f9f1af\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf1e2fc31b422d6e63271\",\n            \"product_name\": \"orange\",\n            \"image\": \"nibgG33H0F8\",\n            \"category_id\": \"64edda537c57f32231f9f1af\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf24dfc31b422d6e6327a\",\n            \"product_name\": \"apple\",\n            \"image\": \"zLCR7RsxYGs\",\n            \"category_id\": \"64edda537c57f32231f9f1af\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf257fc31b422d6e6327e\",\n            \"product_name\": \"strawberry\",\n            \"image\": \"xnRg3xDcNnE\",\n            \"category_id\": \"64edda537c57f32231f9f1af\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf260fc31b422d6e63282\",\n            \"product_name\": \"pineapple\",\n            \"image\": \"yx3-a7ualMM\",\n            \"category_id\": \"64edda537c57f32231f9f1af\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf38efc31b422d6e6328e\",\n            \"product_name\": \"carrots\",\n            \"image\": \"qrdbYqxnets\",\n            \"category_id\": \"64edda477c57f32231f9f1ab\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3a1fc31b422d6e63292\",\n            \"product_name\": \"tomatoes\",\n            \"image\": \"UD_j10SKj5g\",\n            \"category_id\": \"64edda477c57f32231f9f1ab\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3abfc31b422d6e63296\",\n            \"product_name\": \"potatoes\",\n            \"image\": \"B0s3Xndk6tw\",\n            \"category_id\": \"64edda477c57f32231f9f1ab\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3b6fc31b422d6e6329a\",\n            \"product_name\": \"broccoli\",\n            \"image\": \"l55IGtwI8mI\",\n            \"category_id\": \"64edda477c57f32231f9f1ab\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3c1fc31b422d6e6329e\",\n            \"product_name\": \"spinach\",\n            \"image\": \"6AAptb2kBak\",\n            \"category_id\": \"64edda477c57f32231f9f1ab\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3ccfc31b422d6e632a2\",\n            \"product_name\": \"garlic clove\",\n            \"image\": \"PR79IfX9Hi8\",\n            \"category_id\": \"64edda477c57f32231f9f1ab\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3d7fc31b422d6e632a6\",\n            \"product_name\": \"soy sauce\",\n            \"image\": \"McP48IRa7Mo\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3e1fc31b422d6e632aa\",\n            \"product_name\": \"salt\",\n            \"image\": \"u_Mwofs_zu0\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3ebfc31b422d6e632ae\",\n            \"product_name\": \"onion\",\n            \"image\": \"bC1fXU1v98U\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3f6fc31b422d6e632b2\",\n            \"product_name\": \"basil\",\n            \"image\": \"rICRgergpIc\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf3fffc31b422d6e632b6\",\n            \"product_name\": \"ginger\",\n            \"image\": \"1q4IIdEnIWA\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf409fc31b422d6e632ba\",\n            \"product_name\": \"olive oil\",\n            \"image\": \"iCgfwfqgdzo\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf413fc31b422d6e632be\",\n            \"product_name\": \"sesame\",\n            \"image\": \"k-JORnd7LnY\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf41cfc31b422d6e632c2\",\n            \"product_name\": \"mustard\",\n            \"image\": \"LBPpGIKzXok\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf426fc31b422d6e632c6\",\n            \"product_name\": \"honey\",\n            \"image\": \"Asj5DFw8UAw\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf438fc31b422d6e632ca\",\n            \"product_name\": \"paprica\",\n            \"image\": \"LvHMwt0pNJE\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf443fc31b422d6e632ce\",\n            \"product_name\": \"black pepper\",\n            \"image\": \"jtKNexfk33c\",\n            \"category_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf45bfc31b422d6e632d5\",\n            \"product_name\": \"romano cheese\",\n            \"image\": \"KaK2jp8ie8s\",\n            \"category_id\": \"64edda287c57f32231f9f19f\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf468fc31b422d6e632d9\",\n            \"product_name\": \"mozzarella\",\n            \"image\": \"i6DmdS7kVVc\",\n            \"category_id\": \"64edda287c57f32231f9f19f\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf473fc31b422d6e632dd\",\n            \"product_name\": \"eggs\",\n            \"image\": \"eIzzzwtkBjU\",\n            \"category_id\": \"64edda1d7c57f32231f9f19b\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf47ffc31b422d6e632e1\",\n            \"product_name\": \"pancetta\",\n            \"image\": \"Ov17i1UtCCU\",\n            \"category_id\": \"64edda1d7c57f32231f9f19b\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf489fc31b422d6e632e5\",\n            \"product_name\": \"chicken breasts\",\n            \"image\": \"9zLa37VNL38\",\n            \"category_id\": \"64edda1d7c57f32231f9f19b\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf494fc31b422d6e632e9\",\n            \"product_name\": \"deodorant\",\n            \"image\": \"Uirh8KpGMrU\",\n            \"category_id\": \"64edda0b7c57f32231f9f197\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf49efc31b422d6e632ed\",\n            \"product_name\": \"soap\",\n            \"image\": \"WeEaKXZkBsQ\",\n            \"category_id\": \"64edda0b7c57f32231f9f197\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf4a8fc31b422d6e632f1\",\n            \"product_name\": \"shampoo\",\n            \"image\": \"X2BZgaPkQRs\",\n            \"category_id\": \"64edda0b7c57f32231f9f197\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf4b1fc31b422d6e632f5\",\n            \"product_name\": \"hangers\",\n            \"image\": \"Jbh7Q32I5so\",\n            \"category_id\": \"64edd98fd5fb0af242f009d5\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edf4bcfc31b422d6e632f9\",\n            \"product_name\": \"laundry detergent\",\n            \"image\": \"TyBnT0wowmw\",\n            \"category_id\": \"64edd98fd5fb0af242f009d5\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"04904d19-90a1-4c71-97d9-e96dde495bf5"},{"name":"add new Product","id":"2e0650d2-b034-407f-994e-b37d78feeb90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":" {\n    \"product_name\": \"ovo\"\n  }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/products","urlObject":{"protocol":"http","port":"8000","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8d2e1b23-87c0-4241-9a4e-03612829076a","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"orange\",\n    \"image\": \"nibgG33H0F8\",\n    \"category_id\": \"64edda537c57f32231f9f1af\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"148"},{"key":"ETag","value":"W/\"94-9PpepCAfz9t9dKvEd3CKvPBDcaA\""},{"key":"Date","value":"Tue, 29 Aug 2023 13:25:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdproduct\": {\n        \"product_name\": \"orange\",\n        \"image\": \"nibgG33H0F8\",\n        \"category_id\": \"64edda537c57f32231f9f1af\",\n        \"_id\": \"64edf1e2fc31b422d6e63271\",\n        \"__v\": 0\n    }\n}"},{"id":"763b7de0-9d4e-4881-9d3b-f162d6f34e4a","name":"error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \n    \"image\": \"nibgG33H0F8\",\n    \"category_id\": \"64edda537c57f32231f9f1af\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"96"},{"key":"ETag","value":"W/\"60-dCldZhnj9o4/Klswb9cm2YFWiP0\""},{"key":"Date","value":"Tue, 29 Aug 2023 13:26:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"You need to provide at least the name of the product\"\n}"},{"id":"a80ea5a4-8c2a-4cb6-997c-787ac837ae78","name":"duplicated","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product_name\": \"orange\",\n    \"image\": \"nibgG33H0F8\",\n    \"category_id\": \"64edda537c57f32231f9f1af\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/products"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"162"},{"key":"ETag","value":"W/\"a2-cSadNyUnPwxcB2ZpN08aRt3Jw8k\""},{"key":"Date","value":"Tue, 29 Aug 2023 13:27:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"E11000 duplicate key error collection: smart_list.products index: product_name_1 dup key: { product_name: \\\"orange\\\" }\"\n}"}],"_postman_id":"2e0650d2-b034-407f-994e-b37d78feeb90"}],"id":"40ffdf24-be76-431f-8b59-276d003b5c0f","_postman_id":"40ffdf24-be76-431f-8b59-276d003b5c0f","description":""},{"name":"category","item":[{"name":"add new category","id":"f4f39dda-fd39-4d58-9f11-92a879179c97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"category\": \"Fruits\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/categories","urlObject":{"protocol":"http","port":"8000","path":["api","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9ffe829f-c75d-4c10-8293-3d50c9a5c32c","name":"add existent category","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"category\": \"Fruits\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"87"},{"key":"ETag","value":"W/\"57-nj111v8ry/a4hKoDR8bv/3C/m8s\""},{"key":"Date","value":"Tue, 29 Aug 2023 11:45:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"Category already exists in categories list.\"\n}"},{"id":"e0c242f5-f4b4-4ba5-a71c-f1967ba9368c","name":"add new category","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"category\": \"Drinks\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"87"},{"key":"ETag","value":"W/\"57-IYJgOIEdq7J3CnOdoe0DuvxeXis\""},{"key":"Date","value":"Tue, 29 Aug 2023 11:48:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdCategory\": {\n        \"category_name\": \"drinks\",\n        \"_id\": \"64eddb09e328a5b2f01a1274\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"f4f39dda-fd39-4d58-9f11-92a879179c97"},{"name":"get category by name","id":"5467ad3d-6d35-4e7f-a206-71427bf7787f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/categories?name=cheeses","urlObject":{"protocol":"http","port":"8000","path":["api","categories"],"host":["localhost"],"query":[{"key":"name","value":"cheeses"}],"variable":[]}},"response":[{"id":"15dac355-6889-473c-8525-0ad1a6481c53","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8000/api/categories?name=cheesesss","protocol":"http","host":["localhost"],"port":"8000","path":["api","categories"],"query":[{"key":"name","value":"cheesesss"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"83"},{"key":"ETag","value":"W/\"53-rln/8TRjUyl3YU1rnfNcOtZrS5Q\""},{"key":"Date","value":"Tue, 29 Aug 2023 12:09:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"category\": [\n        {\n            \"_id\": \"64edda287c57f32231f9f19f\",\n            \"category_name\": \"cheeses\",\n            \"__v\": 0\n        }\n    ]\n}"},{"id":"6e0b51c9-f944-4874-86e1-c9ce5181a811","name":"success to get product by letters","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8000/api/categories?name=h","protocol":"http","host":["localhost"],"port":"8000","path":["api","categories"],"query":[{"key":"name","value":"h"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"81"},{"key":"ETag","value":"W/\"51-OTPXm63MaW4QGnvDkQXQoooE3yE\""},{"key":"Date","value":"Tue, 29 Aug 2023 12:48:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"category\": {\n        \"_id\": \"64edda287c57f32231f9f19f\",\n        \"category_name\": \"cheeses\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"5467ad3d-6d35-4e7f-a206-71427bf7787f"},{"name":"get categories","id":"0e2ec37a-2aba-4d2b-a463-06c6c82d7099","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/categories","urlObject":{"protocol":"http","port":"8000","path":["api","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fe1c5d59-d0e5-4e7e-af53-181e8a529a00","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"652"},{"key":"ETag","value":"W/\"28c-2kRRtxN0GUX3HJplh86L8A7uobA\""},{"key":"Date","value":"Tue, 29 Aug 2023 12:53:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"categories\": [\n        {\n            \"_id\": \"64edd98fd5fb0af242f009d5\",\n            \"category_name\": \"household\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edda0b7c57f32231f9f197\",\n            \"category_name\": \"health and beauty\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edda1d7c57f32231f9f19b\",\n            \"category_name\": \"proteins\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edda287c57f32231f9f19f\",\n            \"category_name\": \"cheeses\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edda347c57f32231f9f1a3\",\n            \"category_name\": \"pasta\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edda3d7c57f32231f9f1a7\",\n            \"category_name\": \"condiments\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edda477c57f32231f9f1ab\",\n            \"category_name\": \"vegetables\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64edda537c57f32231f9f1af\",\n            \"category_name\": \"fruits\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64eddb09e328a5b2f01a1274\",\n            \"category_name\": \"drinks\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"0e2ec37a-2aba-4d2b-a463-06c6c82d7099"}],"id":"0d650f07-38e1-4734-9412-8843d95ce48e","_postman_id":"0d650f07-38e1-4734-9412-8843d95ce48e","description":""},{"name":"recipe","item":[{"name":"add recipe","id":"9e9f12a2-0e78-4b07-ab3a-5c99778ea1f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n      \"photo\": \"qczubsyHofQ\",\n      \"name\": \"Chocolate Chip Cookies\",\n      \"timeToPrepare\": \"15 minutes\",\n      \"ingredients\": [\n        \"1 cup (2 sticks) unsalted butter, softened\",\n        \"3/4 cup granulated sugar\",\n        \"3/4 cup brown sugar, packed\",\n        \"2 large eggs\",\n        \"1 teaspoon vanilla extract\",\n        \"2 1/4 cups all-purpose flour\",\n        \"1 teaspoon baking soda\",\n        \"1/2 teaspoon salt\",\n        \"2 cups semisweet chocolate chips\"\n      ],\n      \"instructions\": \"Preheat the oven to 375°F (190°C). In a mixing bowl, cream together the softened butter, granulated sugar, and brown sugar until smooth. Beat in the eggs one at a time, then stir in the vanilla. In a separate bowl, whisk together the flour, baking soda, and salt. Gradually add this dry mixture to the wet ingredients, mixing just until combined. Stir in the chocolate chips. Drop rounded tablespoons of cookie dough onto ungreased baking sheets. Bake for 9 to 11 minutes in the preheated oven, or until the edges are golden brown. Allow cookies to cool on baking sheets for a few minutes before transferring to wire racks to cool completely.\"\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/recipes","urlObject":{"protocol":"http","port":"8000","path":["api","recipes"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"84d327d5-ffc8-459a-9ed9-1e528fc98252","name":"error when adding recipe already exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n      \"photo\": \"_GM0Zvw3PzY\",\n      \"name\": \"Caprese Salad\",\n      \"timeToPrepare\": \"10 minutes\",\n      \"ingredients\": [\n        \"4 large tomatoes, sliced\",\n        \"1/2 lb (225g) fresh mozzarella cheese, sliced\",\n        \"1/4 cup fresh basil leaves\",\n        \"2 tablespoons extra virgin olive oil\",\n        \"Balsamic glaze for drizzling (optional)\",\n        \"Salt and black pepper to taste\"\n      ],\n      \"instructions\": \"Alternate slices of tomato and mozzarella on a serving platter. Tuck fresh basil leaves between the slices. Drizzle extra virgin olive oil over the salad. Season with salt and black pepper to taste. Optional: Drizzle balsamic glaze over the top for extra flavor. Serve immediately.\"\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/recipes"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"68"},{"key":"ETag","value":"W/\"44-WeTojM2nYIg7r90kj/i9mwAbpng\""},{"key":"Date","value":"Mon, 04 Sep 2023 08:28:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Failed\",\n    \"error\": \"Recipe already exists in recipe list.\"\n}"},{"id":"c83fe3b0-7567-425f-80b7-8b44933ed4c2","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n      \"photo\": \"qczubsyHofQ\",\n      \"name\": \"Chocolate Chip Cookies\",\n      \"timeToPrepare\": \"15 minutes\",\n      \"ingredients\": [\n        \"1 cup (2 sticks) unsalted butter, softened\",\n        \"3/4 cup granulated sugar\",\n        \"3/4 cup brown sugar, packed\",\n        \"2 large eggs\",\n        \"1 teaspoon vanilla extract\",\n        \"2 1/4 cups all-purpose flour\",\n        \"1 teaspoon baking soda\",\n        \"1/2 teaspoon salt\",\n        \"2 cups semisweet chocolate chips\"\n      ],\n      \"instructions\": \"Preheat the oven to 375°F (190°C). In a mixing bowl, cream together the softened butter, granulated sugar, and brown sugar until smooth. Beat in the eggs one at a time, then stir in the vanilla. In a separate bowl, whisk together the flour, baking soda, and salt. Gradually add this dry mixture to the wet ingredients, mixing just until combined. Stir in the chocolate chips. Drop rounded tablespoons of cookie dough onto ungreased baking sheets. Bake for 9 to 11 minutes in the preheated oven, or until the edges are golden brown. Allow cookies to cool on baking sheets for a few minutes before transferring to wire racks to cool completely.\"\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/recipes"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1011"},{"key":"ETag","value":"W/\"3f3-i2lRF7uU/ecP1CvUnumgvvYaF0Y\""},{"key":"Date","value":"Mon, 04 Sep 2023 08:29:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdRecipe\": {\n        \"_id\": \"64f5913bef335370b79e0784\",\n        \"user_id\": \"64f5913bef335370b79e0780\",\n        \"userRecipes\": [\n            {\n                \"photo\": \"rjCusxrJg7k\",\n                \"name\": \"Vegetable Curry\",\n                \"timeToPrepare\": \"45 minutes\",\n                \"ingredients\": [\n                    \"2 cups mixed vegetables (e.g., potatoes, carrots, bell peppers, peas)\",\n                    \"1 onion, chopped\",\n                    \"2 cloves garlic, minced\",\n                    \"1-inch piece of ginger, minced\",\n                    \"2 tablespoons curry powder\",\n                    \"1 can (14 oz) coconut milk\",\n                    \"2 tablespoons vegetable oil\",\n                    \"Salt and chili powder to taste\",\n                    \"Fresh cilantro for garnish\"\n                ],\n                \"instructions\": \"In a large pan, heat vegetable oil over medium heat. Add chopped onion, minced garlic, and minced ginger. Sauté until fragrant and onion is translucent. Add curry powder and cook for another 2 minutes, stirring constantly. Add mixed vegetables and sauté for 5 minutes. Pour in the coconut milk and season with salt and chili powder. Bring to a simmer and cook until vegetables are tender. Garnish with fresh cilantro and serve with rice or naan bread.\",\n                \"_id\": \"64f5927cef335370b79e07ad\"\n            }\n        ],\n        \"__v\": 0\n    }\n}"}],"_postman_id":"9e9f12a2-0e78-4b07-ab3a-5c99778ea1f4"},{"name":"get recipes","id":"53c8c4af-4e48-42dc-959a-a48c2442e5da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/recipes","urlObject":{"protocol":"http","port":"8000","path":["api","recipes"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"49c9ce62-0d6c-49d8-8aa2-f90abd3bb9f3","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/recipes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4747"},{"key":"ETag","value":"W/\"128b-9bq7wX1lpJtNVFafGEisFKqOY9Q\""},{"key":"Date","value":"Mon, 04 Sep 2023 08:36:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"64f5913bef335370b79e0784\",\n        \"user_id\": \"64f5913bef335370b79e0780\",\n        \"userRecipes\": [\n            {\n                \"photo\": \"rjCusxrJg7k\",\n                \"name\": \"Vegetable Curry\",\n                \"timeToPrepare\": \"45 minutes\",\n                \"ingredients\": [\n                    \"2 cups mixed vegetables (e.g., potatoes, carrots, bell peppers, peas)\",\n                    \"1 onion, chopped\",\n                    \"2 cloves garlic, minced\",\n                    \"1-inch piece of ginger, minced\",\n                    \"2 tablespoons curry powder\",\n                    \"1 can (14 oz) coconut milk\",\n                    \"2 tablespoons vegetable oil\",\n                    \"Salt and chili powder to taste\",\n                    \"Fresh cilantro for garnish\"\n                ],\n                \"instructions\": \"In a large pan, heat vegetable oil over medium heat. Add chopped onion, minced garlic, and minced ginger. Sauté until fragrant and onion is translucent. Add curry powder and cook for another 2 minutes, stirring constantly. Add mixed vegetables and sauté for 5 minutes. Pour in the coconut milk and season with salt and chili powder. Bring to a simmer and cook until vegetables are tender. Garnish with fresh cilantro and serve with rice or naan bread.\",\n                \"_id\": \"64f5927cef335370b79e07ad\"\n            },\n            {\n                \"photo\": \"qczubsyHofQ\",\n                \"name\": \"Chocolate Chip Cookies\",\n                \"timeToPrepare\": \"15 minutes\",\n                \"ingredients\": [\n                    \"1 cup (2 sticks) unsalted butter, softened\",\n                    \"3/4 cup granulated sugar\",\n                    \"3/4 cup brown sugar, packed\",\n                    \"2 large eggs\",\n                    \"1 teaspoon vanilla extract\",\n                    \"2 1/4 cups all-purpose flour\",\n                    \"1 teaspoon baking soda\",\n                    \"1/2 teaspoon salt\",\n                    \"2 cups semisweet chocolate chips\"\n                ],\n                \"instructions\": \"Preheat the oven to 375°F (190°C). In a mixing bowl, cream together the softened butter, granulated sugar, and brown sugar until smooth. Beat in the eggs one at a time, then stir in the vanilla. In a separate bowl, whisk together the flour, baking soda, and salt. Gradually add this dry mixture to the wet ingredients, mixing just until combined. Stir in the chocolate chips. Drop rounded tablespoons of cookie dough onto ungreased baking sheets. Bake for 9 to 11 minutes in the preheated oven, or until the edges are golden brown. Allow cookies to cool on baking sheets for a few minutes before transferring to wire racks to cool completely.\",\n                \"_id\": \"64f5956a8259a30087f73b9d\"\n            }\n        ],\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64f59170ef335370b79e078b\",\n        \"user_id\": \"64f59170ef335370b79e0787\",\n        \"userRecipes\": [\n            {\n                \"photo\": \"VEpZ1z1Slwo\",\n                \"name\": \"Chicken Stir-Fry\",\n                \"timeToPrepare\": \"20 minutes\",\n                \"ingredients\": [\n                    \"1 lb (450g) boneless, skinless chicken breasts, sliced into thin strips\",\n                    \"2 cups mixed vegetables (bell peppers, broccoli, carrots, snap peas)\",\n                    \"3 cloves garlic, minced\",\n                    \"1 tablespoon ginger, minced\",\n                    \"3 tablespoons soy sauce\",\n                    \"1 tablespoon honey\",\n                    \"2 tablespoons vegetable oil\",\n                    \"Cooked rice for serving\"\n                ],\n                \"instructions\": \"In a small bowl, whisk together soy sauce and honey. Set aside. Heat vegetable oil in a large skillet or wok over high heat. Add minced garlic and ginger, and stir-fry for about 30 seconds until fragrant. Add chicken strips and cook until no longer pink, then remove from the skillet. Add mixed vegetables to the skillet and stir-fry until crisp-tender. Return the cooked chicken to the skillet, pour the soy sauce and honey mixture over everything, and stir-fry for 2-3 minutes. Serve hot over cooked rice.\",\n                \"_id\": \"64f591eeef335370b79e0799\"\n            },\n            {\n                \"photo\": \"mVwQrsnnbHg\",\n                \"name\": \"Spaghetti Carbonara\",\n                \"timeToPrepare\": \"30 minutes\",\n                \"ingredients\": [\n                    \"8 oz (225g) spaghetti\",\n                    \"2 large eggs\",\n                    \"1 cup grated Pecorino Romano cheese\",\n                    \"4 oz (115g) pancetta, diced\",\n                    \"2 cloves garlic, minced\",\n                    \"Salt and black pepper to taste\",\n                    \"Fresh parsley for garnish\"\n                ],\n                \"instructions\": \"Cook the spaghetti in boiling salted water until al dente. Drain and set aside. In a bowl, whisk together the eggs and grated Pecorino Romano cheese. Season with black pepper. In a skillet, cook the diced pancetta until crispy. Add minced garlic and sauté for 1 minute. Add the cooked spaghetti to the skillet with the pancetta and garlic. Toss to combine. Remove the skillet from heat and quickly pour the egg and cheese mixture over the pasta. Toss vigorously to coat the pasta and create a creamy sauce. Serve immediately, garnished with chopped fresh parsley.\",\n                \"_id\": \"64f59219ef335370b79e079d\"\n            },\n            {\n                \"photo\": \"_GM0Zvw3PzY\",\n                \"name\": \"Caprese Salad\",\n                \"timeToPrepare\": \"10 minutes\",\n                \"ingredients\": [\n                    \"4 large tomatoes, sliced\",\n                    \"1/2 lb (225g) fresh mozzarella cheese, sliced\",\n                    \"1/4 cup fresh basil leaves\",\n                    \"2 tablespoons extra virgin olive oil\",\n                    \"Balsamic glaze for drizzling (optional)\",\n                    \"Salt and black pepper to taste\"\n                ],\n                \"instructions\": \"Alternate slices of tomato and mozzarella on a serving platter. Tuck fresh basil leaves between the slices. Drizzle extra virgin olive oil over the salad. Season with salt and black pepper to taste. Optional: Drizzle balsamic glaze over the top for extra flavor. Serve immediately.\",\n                \"_id\": \"64f59241ef335370b79e07a2\"\n            }\n        ],\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64f5919bef335370b79e0792\",\n        \"user_id\": \"64f5919bef335370b79e078e\",\n        \"userRecipes\": [],\n        \"__v\": 0\n    }\n]"}],"_postman_id":"53c8c4af-4e48-42dc-959a-a48c2442e5da"},{"name":"get recipe by id","id":"298085c6-a365-416e-af53-844651c4eecc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/recipes/64f591eeef335370b79e0799","urlObject":{"protocol":"http","port":"8000","path":["api","recipes","64f591eeef335370b79e0799"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0e4117a1-58c9-48b5-9923-9ee1209ad181","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/recipes/64f591eeef335370b79e0799"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1009"},{"key":"ETag","value":"W/\"3f1-RgM7gT1fISPVA4GEZzegnTewIvU\""},{"key":"Date","value":"Mon, 04 Sep 2023 09:01:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"64f59170ef335370b79e078b\",\n        \"userRecipes\": [\n            {\n                \"photo\": \"VEpZ1z1Slwo\",\n                \"name\": \"Chicken Stir-Fry\",\n                \"timeToPrepare\": \"20 minutes\",\n                \"ingredients\": [\n                    \"1 lb (450g) boneless, skinless chicken breasts, sliced into thin strips\",\n                    \"2 cups mixed vegetables (bell peppers, broccoli, carrots, snap peas)\",\n                    \"3 cloves garlic, minced\",\n                    \"1 tablespoon ginger, minced\",\n                    \"3 tablespoons soy sauce\",\n                    \"1 tablespoon honey\",\n                    \"2 tablespoons vegetable oil\",\n                    \"Cooked rice for serving\"\n                ],\n                \"instructions\": \"In a small bowl, whisk together soy sauce and honey. Set aside. Heat vegetable oil in a large skillet or wok over high heat. Add minced garlic and ginger, and stir-fry for about 30 seconds until fragrant. Add chicken strips and cook until no longer pink, then remove from the skillet. Add mixed vegetables to the skillet and stir-fry until crisp-tender. Return the cooked chicken to the skillet, pour the soy sauce and honey mixture over everything, and stir-fry for 2-3 minutes. Serve hot over cooked rice.\",\n                \"_id\": \"64f591eeef335370b79e0799\"\n            }\n        ]\n    }\n]"}],"_postman_id":"298085c6-a365-416e-af53-844651c4eecc"},{"name":"edit recipe","id":"13e3e2a0-5979-43e5-ab40-23f02bca0ec4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \n\"timeToPrepare\": \"45 minutes\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/recipes/64f5927cef335370b79e07ad","urlObject":{"protocol":"http","port":"8000","path":["api","recipes","64f5927cef335370b79e07ad"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8375324b-19b7-46f5-9574-cc16400ab1cc","name":"user does not have permission","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Vegetable Curry\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/recipes/64f59241ef335370b79e07a2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-JRsU1Osm+D6Db3noMlHqlLbAGpw\""},{"key":"Date","value":"Mon, 04 Sep 2023 10:03:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"You are not owner of this recipe\""},{"id":"e71de8ff-74cf-4bd5-a8c1-d1d787d3b09a","name":"unauthorized","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \n\"timeToPrepare\": \"45 minutes\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/recipes/64f59241ef335370b79e07a2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-gtD9YX+vqPSlGzqsajDsrcl5Ans\""},{"key":"Date","value":"Mon, 04 Sep 2023 10:13:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"error\": \"You are not owner of this recipe\"\n}"},{"id":"6665bb57-3c68-4a59-92ff-8562764d8f93","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \n\"timeToPrepare\": \"45 minutes\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/recipes/64f5927cef335370b79e07ad"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"19"},{"key":"ETag","value":"W/\"13-3HJkocl6ImHtM5/vXWZzBpelKi4\""},{"key":"Date","value":"Mon, 04 Sep 2023 10:16:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"Recipe was edited\""}],"_postman_id":"13e3e2a0-5979-43e5-ab40-23f02bca0ec4"},{"name":"Delete recipe","id":"f2fc06fd-d029-41b6-b295-ec0fdc0aea32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8000/api/recipes/64f5927cef335370b79e07ad","urlObject":{"protocol":"http","port":"8000","path":["api","recipes","64f5927cef335370b79e07ad"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2fdea717-958a-4d2c-9c9d-ded5aec3a9de","name":"unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/recipes/64f59241ef335370b79e07a2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-gtD9YX+vqPSlGzqsajDsrcl5Ans\""},{"key":"Date","value":"Mon, 04 Sep 2023 10:17:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\",\n    \"error\": \"You are not owner of this recipe\"\n}"},{"id":"6d63295b-fd1d-4a91-9d5e-8c81e982d3e6","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/recipes/64f5927cef335370b79e07ad"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"20"},{"key":"ETag","value":"W/\"14-UcfCpOi8UaXRZ2RMjQ90k8rLuQk\""},{"key":"Date","value":"Mon, 04 Sep 2023 10:18:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"Recipe was deleted\""}],"_postman_id":"f2fc06fd-d029-41b6-b295-ec0fdc0aea32"}],"id":"4f99d41b-fe49-4359-a192-5c67f77d5ff5","_postman_id":"4f99d41b-fe49-4359-a192-5c67f77d5ff5","description":""},{"name":"shoppingList","item":[{"name":"create new user List","id":"2473dad2-908e-43a5-ae48-a1cf6598e200","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n            \"listName\": \"Portugal\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a1adbd55-c8f2-4aec-b76a-85164a9b33c7","name":"list already exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n            \"listName\": \"Grocery List\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-DqBi1kfIboX42bUs9UdIoC1LlsI\""},{"key":"Date","value":"Thu, 31 Aug 2023 15:42:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"Shopping list already exist.\"\n}"},{"id":"77736411-09e9-4e57-a8a7-1390b322d7d6","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n            \"listName\": \"Carrefour Supermarket\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"336"},{"key":"ETag","value":"W/\"150-xjRThCX53oRP0HPeNf9jWUJE4Mk\""},{"key":"Date","value":"Thu, 31 Aug 2023 15:44:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdList\": {\n        \"_id\": \"64f05c73f86e08a8be3cfe86\",\n        \"user_id\": \"64ef5a30d89eb5d58b551f9b\",\n        \"lists\": [\n            {\n                \"listName\": \"Grocery List\",\n                \"productLists\": [],\n                \"_id\": \"64f09bcc79882eb3b6970142\"\n            },\n            {\n                \"listName\": \"brasil\",\n                \"productLists\": [],\n                \"_id\": \"64f0a79a34b37ab551767bdd\"\n            },\n            {\n                \"listName\": \"Grocery List\",\n                \"productLists\": [],\n                \"_id\": \"64f0acec59f3897f458db6a4\"\n            }\n        ],\n        \"__v\": 0\n    }\n}"}],"_postman_id":"2473dad2-908e-43a5-ae48-a1cf6598e200"},{"name":"get all user shopping list","id":"1291c3a8-c459-4b2b-ba8f-f2ead91aa5f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fff41a74-8f60-4b6f-b360-028ef5a0046b","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"320"},{"key":"ETag","value":"W/\"140-6uw3khK8mArEMA1sDkSbDSde61g\""},{"key":"Date","value":"Thu, 31 Aug 2023 15:55:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"listName\": \"Grocery List\",\n        \"productLists\": [],\n        \"_id\": \"64f09bcc79882eb3b6970142\"\n    },\n    {\n        \"listName\": \"brasil\",\n        \"productLists\": [],\n        \"_id\": \"64f0a79a34b37ab551767bdd\"\n    },\n    {\n        \"listName\": \"Grocery List\",\n        \"productLists\": [],\n        \"_id\": \"64f0acec59f3897f458db6a4\"\n    },\n    {\n        \"listName\": \"Carrefour Supermarket\",\n        \"productLists\": [],\n        \"_id\": \"64f0b55b493587e8a650e2c5\"\n    }\n]"},{"id":"1610aa5e-ad2d-4ae1-a4f0-7811f5916250","name":"user not registered","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists"},"status":"Forbidden","code":403,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"9"},{"key":"ETag","value":"W/\"9-PatfYBLj4Um1qTm5zrukoLhNyPU\""},{"key":"Date","value":"Fri, 01 Sep 2023 08:04:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Forbidden"}],"_postman_id":"1291c3a8-c459-4b2b-ba8f-f2ead91aa5f6"},{"name":"edit shopping list","id":"ecd6c171-f0bc-4cfe-a966-e882be716195","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"listName\": \"Supermarket\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f1ac41f0179fc1153ffe8c","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists","64f1ac41f0179fc1153ffe8c"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a516202f-096a-4443-82f0-b83e6e3b4c42","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"320"},{"key":"ETag","value":"W/\"140-6uw3khK8mArEMA1sDkSbDSde61g\""},{"key":"Date","value":"Thu, 31 Aug 2023 15:55:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"listName\": \"Grocery List\",\n        \"productLists\": [],\n        \"_id\": \"64f09bcc79882eb3b6970142\"\n    },\n    {\n        \"listName\": \"brasil\",\n        \"productLists\": [],\n        \"_id\": \"64f0a79a34b37ab551767bdd\"\n    },\n    {\n        \"listName\": \"Grocery List\",\n        \"productLists\": [],\n        \"_id\": \"64f0acec59f3897f458db6a4\"\n    },\n    {\n        \"listName\": \"Carrefour Supermarket\",\n        \"productLists\": [],\n        \"_id\": \"64f0b55b493587e8a650e2c5\"\n    }\n]"}],"_postman_id":"ecd6c171-f0bc-4cfe-a966-e882be716195"},{"name":"delete shopping list","id":"58a8a55e-8c39-4312-9c48-d6a81b4f770a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f19a2d24e9b5d94694fd40","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists","64f19a2d24e9b5d94694fd40"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f5b167cb-6d50-4a20-a46d-ed234a81a182","name":"success","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f0a79a34b37ab551767bdd"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-Z1Ea0jwNBCifSg1Y5KMFIXxPeqA\""},{"key":"Date","value":"Thu, 31 Aug 2023 16:53:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"Shopping list was deleted\""},{"id":"03b41912-b9d1-450c-a88a-2fc018ca5b1e","name":"user is not list's owner","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f199b024e9b5d94694fd33"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-uP3pAa+sW2iyNDcHEmR+rcrKWEU\""},{"key":"Date","value":"Fri, 01 Sep 2023 08:29:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"You are not owner of this list\""}],"_postman_id":"58a8a55e-8c39-4312-9c48-d6a81b4f770a"},{"name":"get shopping list by id","id":"14af0f4d-c5d4-4986-be14-0fa0a18ef139","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f83bcd1af9f27ff5fec546","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists","64f83bcd1af9f27ff5fec546"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7ee75f45-ca64-496a-9a88-d0e6155fa1d7","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"320"},{"key":"ETag","value":"W/\"140-6uw3khK8mArEMA1sDkSbDSde61g\""},{"key":"Date","value":"Thu, 31 Aug 2023 15:55:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"listName\": \"Grocery List\",\n        \"productLists\": [],\n        \"_id\": \"64f09bcc79882eb3b6970142\"\n    },\n    {\n        \"listName\": \"brasil\",\n        \"productLists\": [],\n        \"_id\": \"64f0a79a34b37ab551767bdd\"\n    },\n    {\n        \"listName\": \"Grocery List\",\n        \"productLists\": [],\n        \"_id\": \"64f0acec59f3897f458db6a4\"\n    },\n    {\n        \"listName\": \"Carrefour Supermarket\",\n        \"productLists\": [],\n        \"_id\": \"64f0b55b493587e8a650e2c5\"\n    }\n]"},{"id":"71d63f95-a2e1-4230-973a-d617becec192","name":"success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f83bcd1af9f27ff5fec546"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"ETag","value":"W/\"52-5D5AQeBBcdhiYaAkYE/IMFEX9xI\""},{"key":"Date","value":"Wed, 06 Sep 2023 12:35:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"listName\": \"Brazilian market\",\n    \"productLists\": [],\n    \"_id\": \"64f83bcd1af9f27ff5fec546\"\n}"}],"_postman_id":"14af0f4d-c5d4-4986-be14-0fa0a18ef139"}],"id":"c0d97a37-0a89-497b-b316-dc875151d2e7","_postman_id":"c0d97a37-0a89-497b-b316-dc875151d2e7","description":""},{"name":"productToList","item":[{"name":"addNewProduct","id":"b63ee334-4684-45b7-b20d-bf84418f6cf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product_id\": \"64edf10361e4f6f5a4619e09\",\n    \"frequency\": \"soon\",\n    \"quantity\": 4\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f199b024e9b5d94694fd33/products","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists","64f199b024e9b5d94694fd33","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f725a06f-c77e-4536-9492-309459ff101c","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"product_id\": \"64edf10361e4f6f5a4619e09\",\n    \"frequency\": \"soon\",\n    \"quantity\": 4\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/shoppingLists/64f1b09dd740c716741294e5/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-OwRApGalEVT1pwLERfF+lb9bOsw\""},{"key":"Date","value":"Fri, 01 Sep 2023 13:23:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"createdList\": \"Product add to shopping list.\"\n}"}],"_postman_id":"b63ee334-4684-45b7-b20d-bf84418f6cf3"},{"name":"get all products from list","id":"06d84799-c4d9-48f0-a126-e11f72ca6321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists/64f1997924e9b5d94694fd27/products","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists","64f1997924e9b5d94694fd27","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e7c91275-f87f-4095-8906-fd8bb5b221d7","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists/64f1b09dd740c716741294e5/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"750"},{"key":"ETag","value":"W/\"2ee-9tMTvAMbgakRT/F54iybGMvRlOE\""},{"key":"Date","value":"Fri, 01 Sep 2023 15:06:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"product_id\": \"64edf24dfc31b422d6e6327a\",\n        \"frequency\": \"soon\",\n        \"quantity\": 4,\n        \"_id\": \"64f1e38f7020f056d910934d\"\n    },\n    {\n        \"product_id\": \"64edf10361e4f6f5a4619e09\",\n        \"frequency\": \"soon\",\n        \"quantity\": 4,\n        \"_id\": \"64f1e3b47020f056d9109351\"\n    },\n    {\n        \"product_id\": \"64edf10361e4f6f5a4619e09\",\n        \"frequency\": \"soon\",\n        \"quantity\": 4,\n        \"_id\": \"64f1e441dead825ff73a3c95\"\n    },\n    {\n        \"product_id\": \"64edf10361e4f6f5a4619e09\",\n        \"frequency\": \"soon\",\n        \"quantity\": 4,\n        \"_id\": \"64f1e50a75c020dd381d223d\"\n    },\n    {\n        \"product_id\": \"64edf10361e4f6f5a4619e09\",\n        \"frequency\": \"soon\",\n        \"quantity\": 4,\n        \"_id\": \"64f1e527568caa839f58fe38\"\n    },\n    {\n        \"product_id\": \"64edf10361e4f6f5a4619e09\",\n        \"frequency\": \"soon\",\n        \"quantity\": 4,\n        \"_id\": \"64f1e57813ff1ba1143c4a9a\"\n    },\n    {\n        \"product_id\": \"64edf10361e4f6f5a4619e09\",\n        \"frequency\": \"soon\",\n        \"quantity\": 4,\n        \"_id\": \"64f1e5d7ffb8472b3c35c505\"\n    }\n]"},{"id":"b7f65d20-c236-4512-93a8-e2adf18a297e","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/shoppingLists/64f1b09dd740c716741294e5/products"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-SqsC2QwHah9IOiub1rdIwHiNGd4\""},{"key":"Date","value":"Fri, 01 Sep 2023 15:08:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registration failed\",\n    \"error\": \"\"\n}"}],"_postman_id":"06d84799-c4d9-48f0-a126-e11f72ca6321"},{"name":"Delete Product from list","id":"29f3602a-a031-4ced-8609-7e503947b863","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8000/api/shoppingLists/64f83c191af9f27ff5fec551/products/64edf10361e4f6f5a4619e09","urlObject":{"protocol":"http","port":"8000","path":["api","shoppingLists","64f83c191af9f27ff5fec551","products","64edf10361e4f6f5a4619e09"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b6a64d91-96ec-40e7-8f9e-ef26390508ee","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/shoppingLists/64f83c191af9f27ff5fec551/products/64edf10361e4f6f5a4619e09"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-Z1Ea0jwNBCifSg1Y5KMFIXxPeqA\""},{"key":"Date","value":"Wed, 13 Sep 2023 13:09:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"Shopping list was deleted\""}],"_postman_id":"29f3602a-a031-4ced-8609-7e503947b863"}],"id":"f965d246-f42d-4246-96e8-df732dcfbf97","_postman_id":"f965d246-f42d-4246-96e8-df732dcfbf97","description":""}]}