{"info":{"_postman_id":"29799011-ca72-4eef-beb3-c2925281c1a4","name":"v1.0.0-alpha","description":"<html><head></head><body><p>Routes fixed to follow Api Restfull Convention</p>\n<p>Error messages Fixed to ve more descriptive</p>\n<p>New fields added to Models</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21643141","collectionId":"29799011-ca72-4eef-beb3-c2925281c1a4","publishedId":"2s93sXcaLf","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-06-05T17:19:18.000Z"},"item":[{"name":"user","item":[{"name":"Sign up","item":[{"name":"Create user success","id":"f3eb5112-676b-46c6-89a2-f5dd6b6c0927","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"145122@hotmail.com\",\n    \"password\":\"@ztCU^d3Q9%JXkN!toR&fVniRupNySHo3w^6tP*VfG9vuoH9u#zod42JC6Y6Poq\",\n    \"username\":\"js111a22sdasadon\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signUp","description":"<p>To create a new user, the following fields are required:</p>\n<ul>\n<li><strong>email</strong>: It is validated using an email validator in the model schema and must be unique.</li>\n<li><strong>password</strong>: It is encrypted with bcrypt before being stored in the database and should have a minimum of 8 characters.</li>\n<li><strong>username</strong>: It is escaped before being stored in the database and must be unique</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signUp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e7205535-ba43-4f65-9914-6829348eb357","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"122345@hotmail.com\",\n    \"password\":\"adsadsasasd\",\n    \"username\":\"jsosn\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signUp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Tue, 27 Jun 2023 20:52:17 GMT"},{"key":"X-RateLimit-Reset","value":"1687899721"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"272"},{"key":"ETag","value":"W/\"110-RhLsEi+IspQ/ZD7iwdkzLFc+dT4\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"jsosn\",\n    \"password\": \"$2a$12$jU/l8jL3PzdewBqP4l0tyeCy6bZVSG6l.wDBxPoyx6pT/pSUIMY62\",\n    \"email\": \"122345@hotmail.com\",\n    \"isAdmin\": false,\n    \"wishList\": [],\n    \"_id\": \"649b4c02ea9fa888307c74f9\",\n    \"createdAt\": \"2023-06-27T20:52:18.662Z\",\n    \"updatedAt\": \"2023-06-27T20:52:18.662Z\",\n    \"__v\": 0\n}"}],"_postman_id":"f3eb5112-676b-46c6-89a2-f5dd6b6c0927"},{"name":"invalid email error 400","id":"691cf1fb-ecec-480c-89af-340387a4bacc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"invalidEmail\",\n    \"password\":\"@ztCU^d3Q9%JXkN!toR&fVniRupNySHo3w^6tP*VfG9vuoH9u#zod42JC6Y6Poq\",\n    \"username\":\"json\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signUp","description":"<p>if the user provide an invalid email the application will response with an 400 error</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signUp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"240b9496-e1a9-46d7-9ed7-13843ab959c7","name":"invalid email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"invalidEmail\",\n    \"password\":\"@ztCU^d3Q9%JXkN!toR&fVniRupNySHo3w^6tP*VfG9vuoH9u#zod42JC6Y6Poq\",\n    \"username\":\"json\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signUp"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"html","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"9"},{"key":"Date","value":"Tue, 27 Jun 2023 18:52:15 GMT"},{"key":"X-RateLimit-Reset","value":"1687891939"},{"key":"Content-Security-Policy","value":"default-src 'none'"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"651"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>ValidationError: User validation failed: email: Invalid email format\n            <br> &nbsp; &nbsp;at model.Document.invalidate (/home/yamil/Documents/proyectos/ecommerceMongo/node_modules/mongoose/lib/document.js:3147:32)\n            <br> &nbsp; &nbsp;at /home/yamil/Documents/proyectos/ecommerceMongo/node_modules/mongoose/lib/document.js:2940:17\n            <br> &nbsp; &nbsp;at /home/yamil/Documents/proyectos/ecommerceMongo/node_modules/mongoose/lib/schematype.js:1350:9\n            <br> &nbsp; &nbsp;at processTicksAndRejections (node:internal/process/task_queues:78:11)\n        </pre>\n    </body>\n</html>"}],"_postman_id":"691cf1fb-ecec-480c-89af-340387a4bacc"},{"name":"invalid Password error 400","id":"6e5abadd-5e5b-45cb-9499-278fdeb4c80d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"email@hotmail.com\",\n    \"password\":\"@z\",\n    \"username\":\"json\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signUp","description":"<p>if the password provided by user is shorter than allowed by database, an \"password is too short, the minimum allowed is 8\" message will show</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signUp"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1c6decb3-7af7-487f-b8eb-155365f81a70","name":"password shorter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"email@hotmail.com\",\n    \"password\":\"@z\",\n    \"username\":\"json\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signUp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Tue, 27 Jun 2023 20:23:12 GMT"},{"key":"X-RateLimit-Reset","value":"1687897987"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-/yw5TaPqwHi82TjaFNaSak6F860\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"the minimum allowed is 8\"\n}"}],"_postman_id":"6e5abadd-5e5b-45cb-9499-278fdeb4c80d"}],"id":"d31f05f7-9c15-4109-b348-1a50d43b50f5","description":"<p><strong>Here you will find the sign up request and their edge cases reponses:</strong></p>\n<p><strong>Functions:</strong></p>\n<ul>\n<li><strong>Create User</strong>: status code 200</li>\n<li><strong>invalid email</strong>: status code 400</li>\n<li><strong>invalid Password</strong> : status code 400</li>\n</ul>\n","_postman_id":"d31f05f7-9c15-4109-b348-1a50d43b50f5"},{"name":"Sign In","item":[{"name":"Sign In Success","id":"c8abca82-0e69-4b68-8d30-73d16941916e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"ruby@gmail.com\",\n    \"password\":\"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signin","description":"<p>You can log in to the application using only your email and password.<br />However, if you attempt to log in with only the username, you will<br />encounter an error. This is because the sign-in function checks if the<br />email exists in the database as part of the authentication process.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"de85c0f3-4e64-40f4-9199-094a482698bb","name":"sign in success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"k@gmail.com\",\n    \"password\":\"@ztCU^d3Q9%JXkN!toR&fVniRupNySHo3w^6tP*VfG9vuoH9u#zod42JC6Y6Poq\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signIn"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Tue, 27 Jun 2023 20:37:08 GMT"},{"key":"X-RateLimit-Reset","value":"1687898553"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Set-Cookie","value":"token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OWIyOWQ0N2EzMDQ4NjM5ODY1M2FkOSIsImlhdCI6MTY4Nzg5ODIyOSwiZXhwIjoxNjg4MDcxMDI5fQ.DEK3JOqsG0IVnR37MzuQCeyVnGbqn31pTu4tintoeo8; Path=/; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"265"},{"key":"ETag","value":"W/\"109-1CBqh6TFXIlK+KmeBNLfaJy+vUo\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"649b29d47a30486398653ad9\",\n    \"username\": \"weqwe\",\n    \"password\": \"$2a$12$J3X28dhTZO5PDCf9NVyDLedk.qNlXPrY55CoMRgKLrD9JANiH3dqa\",\n    \"email\": \"k@gmail.com\",\n    \"isAdmin\": false,\n    \"wishList\": [],\n    \"createdAt\": \"2023-06-27T18:26:28.194Z\",\n    \"updatedAt\": \"2023-06-27T18:26:28.194Z\",\n    \"__v\": 0\n}"}],"_postman_id":"c8abca82-0e69-4b68-8d30-73d16941916e"},{"name":"Not Found User","id":"da581156-af90-4299-b762-3e8038995b2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"kw@.com\",\n    \"password\":\"@ztCU^d3Q9%JXkN!toR&fVniRupNySHo3w^6tP*VfG9vuoH9u#zod42JC6Y6Poq\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signin","description":"<p>if the user is not found the applition will throw an 404 error</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6113d755-6524-457a-969e-5e11cb0ae271","name":"Not Found User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"kw@.com\",\n    \"password\":\"@ztCU^d3Q9%JXkN!toR&fVniRupNySHo3w^6tP*VfG9vuoH9u#zod42JC6Y6Poq\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signin"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Tue, 25 Jul 2023 14:48:29 GMT"},{"key":"X-RateLimit-Reset","value":"1690297089"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-j/iuf/1eXWqrPNdiudFWW454ZrY\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"user with kw@.com not found\"\n}"}],"_postman_id":"da581156-af90-4299-b762-3e8038995b2a"},{"name":"wrong Password","id":"3e3798a3-d23d-4c77-8c3e-9cf6967b5911","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"k@gmail.com\",\n    \"password\":\"@ztCU6Poq\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signin","description":"<p>if the passsword does not match will throw an 403 error</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4eb62315-35fd-4a8a-88dc-b4a9b07ec290","name":"wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"k@gmail.com\",\n    \"password\":\"@ztCU6Poq\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signIn"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"16"},{"key":"Date","value":"Tue, 27 Jun 2023 20:39:14 GMT"},{"key":"X-RateLimit-Reset","value":"1687898553"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-FT37VyNxb9KbQyzauL6XUCldSHI\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"wrong credentials\"\n}"}],"_postman_id":"3e3798a3-d23d-4c77-8c3e-9cf6967b5911"},{"name":"login only with pass and email status 200","id":"c6eb87b4-6bfa-4304-8ff0-e0bf9e3a82d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"ruby@gmail.com\",\n    \"password\":\"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signin","description":"<p>You can log in to the application using only your email and password.<br />However, if you attempt to log in with only the username, you will<br />encounter an error. This is because the sign-in function checks if the<br />email exists in the database as part of the authentication process.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4a2ae890-adbc-4f54-a558-372515b6c848","name":"login with  email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"ks@gmail.com\",\n    \"password\":\"H3@p$dA#2eXs\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Set-Cookie","value":"token=undefined; Path=/; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"303"},{"key":"ETag","value":"W/\"12f-gHG7hcidaKwyDnfmXXDp4sLVp0U\""},{"key":"Date","value":"Fri, 26 May 2023 13:06:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6470aeb29cda1ef0ae634419\",\n    \"username\": \"yamil\",\n    \"password\": \"$2a$12$kbPz1A/gPY87Qg/nd2ZZp.zpWZ0ze3nATAueG6Ai6xgkqAjM1Ha4u\",\n    \"email\": \"ks@gmail.com\",\n    \"isAdmin\": false,\n    \"productsPurchased\": [],\n    \"comments\": [],\n    \"wishList\": [],\n    \"createdAt\": \"2023-05-26T13:05:54.993Z\",\n    \"updatedAt\": \"2023-05-26T13:05:54.993Z\",\n    \"__v\": 0\n}"}],"_postman_id":"c6eb87b4-6bfa-4304-8ff0-e0bf9e3a82d8"},{"name":"no email in request error","id":"3eaab2ee-aafe-463c-bf1a-7a21e1490518","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"ruby\",\n    \"password\":\"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signin","description":"<p>This example show exactly what will happend if you try to log in withouth an email</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c35595d6-5a28-4556-9b3a-c64af8e36f0f","name":"no email request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{    \"username\":\"json\",\n    \"password\":\"@ztCU^d3Q9%JXkN!toR&fVniRupNySHo3w^6tP*VfG9vuoH9u#zod42JC6Y6Poq\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/users/signIn"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"15"},{"key":"Date","value":"Tue, 27 Jun 2023 20:41:36 GMT"},{"key":"X-RateLimit-Reset","value":"1687898553"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"21"},{"key":"ETag","value":"W/\"15-3jlv4LtvSUoQruAmr3ef7Px06u0\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"not found\"\n}"}],"_postman_id":"3eaab2ee-aafe-463c-bf1a-7a21e1490518"}],"id":"f5cc8dab-765f-41e2-b9c2-a345aae5328b","description":"<p>This is Sign In section, where we cover the signin operations and responses:</p>\n<p>First you need to know how the sesion user is handle in the bakend:<br />This backend use JWT , but it's being send as a cookie with:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>httpOnly: true,\n      secure: true,\n      sameSite: 'None',\n      maxAge: maxAge,\n\n</code></pre><p>and the expires date is 48hs.<br />so, be sure that you are sending your headers withCredentials in the frontend.</p>\n<p>This is an example how to do that:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>import axios from 'axios';\nexport const BASE_URL = 'http://localhost:5000/api';\nexport const publicRequest = axios.create({\n  baseURL: BASE_URL,\n  withCredentials: true,\n  headers: {\n    'Content-Type': 'application/json',\n  },\n});\n\n</code></pre>","_postman_id":"f5cc8dab-765f-41e2-b9c2-a345aae5328b"},{"name":"User stats","item":[{"name":"user stats","id":"c61e2dcc-836e-436c-a2c8-0cc0b5b7989e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/stats","description":"<p>You will only get a success message, if your account is admin</p>\n<p>The response contains an array with a single object. The object has two<br />properties: \"_id\" and \"total\". The \"_id\" represents the user ID, and the<br />\"total\" represents the total count or value associated with that user.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","stats"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"21173c71-988a-4b7d-9a35-3ef5a9127066","name":"user stats","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/users/stats"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"21"},{"key":"ETag","value":"W/\"15-shR4taeIqZYL/s9r0uSU85rWgsc\""},{"key":"Date","value":"Mon, 29 May 2023 15:48:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": 5,\n        \"total\": 4\n    }\n]"}],"_postman_id":"c61e2dcc-836e-436c-a2c8-0cc0b5b7989e"},{"name":"Unauthorized","id":"c077f719-871f-42f5-a946-56f3dbeded8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/stats","description":"<p>only addmins can see the users stats, this is to protects users privacy</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","stats"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"24312dcb-0c0d-4638-8971-e992f4c05ba3","name":"Unauthorized user","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/stats"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"15"},{"key":"Date","value":"Tue, 27 Jun 2023 20:55:33 GMT"},{"key":"X-RateLimit-Reset","value":"1687899721"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-Q04uwk9rbh6o9IsvGQ6hd1gY1dE\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You are Unauthorized\"\n}"}],"_postman_id":"c077f719-871f-42f5-a946-56f3dbeded8c"},{"name":"no loged in user","id":"0708f18c-1e54-4a06-8639-46e455225a1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/stats","description":"<p>admin must be loged to see the users information</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","stats"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4ff64f56-e3ad-47cd-b2b3-e1dfca69bdaa","name":"no loged in user","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/stats"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Wed, 26 Jul 2023 17:08:24 GMT"},{"key":"X-RateLimit-Reset","value":"1690391867"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"0708f18c-1e54-4a06-8639-46e455225a1a"}],"id":"eb391a6d-f0f2-47c8-a841-f7ccb857ca34","description":"<p>will show you total purchases made by an user. This information is to create graph and get visual feedback about purchases made by users</p>\n","_postman_id":"eb391a6d-f0f2-47c8-a841-f7ccb857ca34"},{"name":"user by id","item":[{"name":"get user by id","id":"84878201-dec0-4813-84db-df0e458b348e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/find/649b4c02ea9fa888307c74f9","description":"<p>To retrieve user information or perform specific operations on a user,<br />you need to provide the user ID as a parameter. The user ID is used to<br />uniquely identify each user in the system. Make sure to pass the user ID<br />in the appropriate parameter when making API requests or accessing<br />user-related functionality.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","find","649b4c02ea9fa888307c74f9"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8072c4b5-ea4c-492b-8d80-752d760d18a6","name":"get user by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/find/649b4c02ea9fa888307c74f9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"17"},{"key":"Date","value":"Tue, 27 Jun 2023 20:54:04 GMT"},{"key":"X-RateLimit-Reset","value":"1687899721"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"272"},{"key":"ETag","value":"W/\"110-UrRuDTzGeADJz/IKHwj9HH1jeHk\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"649b4c02ea9fa888307c74f9\",\n    \"username\": \"jsosn\",\n    \"password\": \"$2a$12$jU/l8jL3PzdewBqP4l0tyeCy6bZVSG6l.wDBxPoyx6pT/pSUIMY62\",\n    \"email\": \"122345@hotmail.com\",\n    \"isAdmin\": false,\n    \"wishList\": [],\n    \"createdAt\": \"2023-06-27T20:52:18.662Z\",\n    \"updatedAt\": \"2023-06-27T20:52:18.662Z\",\n    \"__v\": 0\n}"}],"_postman_id":"84878201-dec0-4813-84db-df0e458b348e"},{"name":"user by id not found","id":"edcbff71-3e0a-45ce-90f4-1c51fd42b0a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/find/6472806d96e540e6d145c522","description":"<p>if the id is does not match to any user will trhow an 404 error</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","find","6472806d96e540e6d145c522"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"05307e61-7799-44f5-83a8-440f8b5f70eb","name":"user not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/find/6472806d96e540e6d145c522"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"16"},{"key":"Date","value":"Tue, 27 Jun 2023 20:54:46 GMT"},{"key":"X-RateLimit-Reset","value":"1687899721"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-z6WjB4ebfePYl1sZjThKo7/eZuU\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User Not found\"\n}"}],"_postman_id":"edcbff71-3e0a-45ce-90f4-1c51fd42b0a2"}],"id":"0f598667-4469-4ca3-8cb3-74051d323b01","description":"<p>search any user by their id to get specifi user information, to get that information you must send the user id throug params</p>\n","_postman_id":"0f598667-4469-4ca3-8cb3-74051d323b01"}],"id":"039b9dd6-0561-49fa-8eaa-2168c27b91c3","description":"<p>In this folder, you will find the basic user operations:</p>\n<ol>\n<li><strong>POST /create</strong>: Create a new user.</li>\n<li><strong>POST /signIn</strong>: Sign in as a user.</li>\n<li><strong>GET /getUser/:id</strong>: Get user information by ID.</li>\n<li><strong>GET /getStats</strong>: Get user statistics.</li>\n</ol>\n","_postman_id":"039b9dd6-0561-49fa-8eaa-2168c27b91c3"},{"name":"products","item":[{"name":"products","id":"da18f92d-0285-461d-86d8-af8f93f4b079","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"price\":1,\n    \"name\":\"black coat\",\n    \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n    \"imgUrl\":\"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n    \"tags\":\"coats\",\n    \"color\":\"black\",\n    \"size\":\"XL\",\n    \"hot\":false,\n    \"hide\":false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/products/create","description":"<p>To create a new products , the user must have Admin permissions</p>\n<p>Please note that the <code>price</code>, <code>name</code>, <code>description</code>, <code>imgUrl</code>, <code>tags</code>, <code>color</code>, <code>size</code><br />fields are required for creating a new product. Make sure to provide<br />the necessary information in the request body when creating a product.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","products","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"de0109de-5f84-4f40-8396-b02a803deebd","name":"product creation succes","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"price\":1,\n    \"name\":\"black coat\",\n    \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n    \"imgUrl\":\"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n    \"tags\":\"coats\",\n    \"color\":\"black\",\n    \"size\":\"XL\",\n    \"hot\":false,\n    \"hide\":false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Tue, 27 Jun 2023 21:13:05 GMT"},{"key":"X-RateLimit-Reset","value":"1687900921"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"485"},{"key":"ETag","value":"W/\"1e5-AjaYSMBSdh2AIgUNd7UB0ie9vsA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"price\": 1,\n    \"name\": \"black coat\",\n    \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n    \"size\": [\n        \"XL\"\n    ],\n    \"color\": [\n        \"black\"\n    ],\n    \"imgUrl\": \"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n    \"tags\": [\n        \"coats\"\n    ],\n    \"hot\": false,\n    \"_id\": \"649b50e1ea9fa888307c7505\",\n    \"createdAt\": \"2023-06-27T21:13:05.476Z\",\n    \"updatedAt\": \"2023-06-27T21:13:05.476Z\",\n    \"__v\": 0\n}"},{"id":"1a329bf5-8206-496b-92c6-780a6ea1f607","name":"unahotorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"price\":1,\n    \"name\":\"adsad\",\n    \"description\":\"adadasdas\",\n    \"imgUrl\":\"adasdasdasdasd\",\n    \"tags\":\"adsasdasdasd\",\n    \"hot\":false,\n    \"hide\":false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/create"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Tue, 27 Jun 2023 21:09:46 GMT"},{"key":"X-RateLimit-Reset","value":"1687900321"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-Q04uwk9rbh6o9IsvGQ6hd1gY1dE\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"You are Unauthorized\"\n}"},{"id":"4cacac1d-17d9-47f9-b794-0fb653913c99","name":"bad tag","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"price\":1,\n    \"name\":\"adsad\",\n    \"description\":\"adadasdas\",\n    \"imgUrl\":\"adasdasdasdasd\",\n    \"tags\":\"adsasdasdasd\",\n    \"hot\":false,\n    \"hide\":false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"17"},{"key":"Date","value":"Tue, 27 Jun 2023 21:11:03 GMT"},{"key":"X-RateLimit-Reset","value":"1687900321"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"106"},{"key":"ETag","value":"W/\"6a-BSwMe6NWyOOpTnOEnRrKxZ+jxDo\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Product validation failed: tags.0: `adsasdasdasd` is not a valid enum value for path `tags.0`.\"\n}"},{"id":"51ba4dba-4633-4266-b383-3e37b4da2aed","name":"name empty","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"price\":1,\n    \"name\":\"\",\n    \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n    \"imgUrl\":\"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n    \"tags\":\"coats\",\n    \"color\":\"black\",\n    \"size\":\"XL\",\n    \"hot\":false,\n    \"hide\":false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"16"},{"key":"Date","value":"Tue, 27 Jun 2023 21:14:22 GMT"},{"key":"X-RateLimit-Reset","value":"1687900921"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-AUizEsKpZnyIwIKpOwrqULSZGqA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Product validation failed: name: Path `name` is required.\"\n}"},{"id":"b6f8ca90-5771-4268-ab65-83dd71b9d59e","name":"repeated name","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"price\":1,\n    \"name\":\"black coat\",\n    \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n    \"imgUrl\":\"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n    \"tags\":\"coats\",\n    \"color\":\"black\",\n    \"size\":\"XL\",\n    \"hot\":false,\n    \"hide\":false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"17"},{"key":"Date","value":"Tue, 27 Jun 2023 21:13:37 GMT"},{"key":"X-RateLimit-Reset","value":"1687900921"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"ETag","value":"W/\"74-yZTHbHn0TePTmQT4HQhSpLGIrXI\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"E11000 duplicate key error collection: ecomerce.products index: name_1 dup key: { name: \\\"black coat\\\" }\"\n}"}],"_postman_id":"da18f92d-0285-461d-86d8-af8f93f4b079"},{"name":"get products","id":"ebed3f31-819f-43ef-b3cb-f9139172d66a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/products","description":"<p>Backend pagination has been implemented to handle the size of the<br />response. When requesting products, you need to specify the page and<br />size as parameters.  </p>\n<p>The backend calculates the total count of products in the database and<br />determines the total number of pages based on the provided page size.<br />It then fetches the products using the aggregation pipeline, skipping<br />the appropriate number of documents and limiting the result to the<br />specified page size. The backend returns an object containing the<br />products array and the total number of pages.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c3c4bf3a-bcde-4f23-a169-8cc384ab3da4","name":"get products","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"x-ratelimit-limit","value":"20"},{"key":"x-ratelimit-remaining","value":"19"},{"key":"date","value":"Tue, 27 Jun 2023 21:28:58 GMT"},{"key":"x-ratelimit-reset","value":"1687901929"},{"key":"content-security-policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"cross-origin-opener-policy","value":"same-origin"},{"key":"cross-origin-resource-policy","value":"same-origin"},{"key":"origin-agent-cluster","value":"?1"},{"key":"referrer-policy","value":"no-referrer"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-download-options","value":"noopen"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"x-permitted-cross-domain-policies","value":"none"},{"key":"x-xss-protection","value":"0"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-expose-headers","value":"Authorization"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"4962"},{"key":"etag","value":"W/\"1362-3bCStKdkzNOabPSL+bQ72o3wrIA\""},{"key":"cache-control","value":"max-age=570"},{"key":"apicache-store","value":"memory"},{"key":"apicache-version","value":"1.6.3"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"_id\": \"6497465e3eda70c73d632b9e\",\n            \"price\": 1300,\n            \"name\": \"informal yellow jacket\",\n            \"description\": \"Stay cool and comfortable with our stylish our jackets. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XM\"\n            ],\n            \"color\": [\n                \"yellow\"\n            ],\n            \"imgUrl\": \"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse1.explicit.bing.net%2Fth%3Fid%3DOIP.a229nIxrlU-krk6q5eIuYgHaHa%26pid%3DApi&f=1&ipt=a3bfc8344bba6f664372b6471537ceb22aaaa5e9c0a43b38c42ddfa176d4293d&ipo=images\",\n            \"tags\": [\n                \"jackets\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:39:10.573Z\",\n            \"updatedAt\": \"2023-06-24T19:39:10.573Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"649b50e1ea9fa888307c7505\",\n            \"price\": 1,\n            \"name\": \"black coat\",\n            \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n            \"size\": [\n                \"XL\"\n            ],\n            \"color\": [\n                \"black\"\n            ],\n            \"imgUrl\": \"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-27T21:13:05.476Z\",\n            \"updatedAt\": \"2023-06-27T21:13:05.476Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497462a3eda70c73d632b9b\",\n            \"price\": 1350,\n            \"name\": \"informal red jacket\",\n            \"description\": \"Stay cool and comfortable with our stylish our jackets. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XL\"\n            ],\n            \"color\": [\n                \"red\"\n            ],\n            \"imgUrl\": \"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse3.mm.bing.net%2Fth%3Fid%3DOIP.b50_2Ft7xCToBLOiJr1UiQHaJ4%26pid%3DApi&f=1&ipt=1d6ecf3b478ced18acc5a5a62fef67be7a89b6cf78811f43488630e2a0f4d4dd&ipo=images\",\n            \"tags\": [\n                \"jackets\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:38:18.351Z\",\n            \"updatedAt\": \"2023-06-24T19:38:18.351Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"649732064594565d2ec57e2b\",\n            \"price\": 800,\n            \"name\": \"sexy short shirt yellow\",\n            \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XS\"\n            ],\n            \"color\": [\n                \"yellow\"\n            ],\n            \"imgUrl\": \"https://http2.mlstatic.com/D_NQ_NP_956913-MLA46328314149_062021-F.jpg\",\n            \"tags\": [\n                \"shirts\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T18:12:22.888Z\",\n            \"updatedAt\": \"2023-06-24T18:12:22.888Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"649739f93eda70c73d632b24\",\n            \"price\": 100,\n            \"name\": \"green shirt with details\",\n            \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XM\"\n            ],\n            \"color\": [\n                \"green\"\n            ],\n            \"imgUrl\": \"https://www.digitalsport.com.ar/files/products/58179c17c04dc-374390-1200x1200.jpg\",\n            \"tags\": [\n                \"shirts\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T18:46:17.688Z\",\n            \"updatedAt\": \"2023-06-24T18:46:17.688Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"649741113eda70c73d632b77\",\n            \"price\": 1400,\n            \"name\": \"elegant formal  extra large yellow coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XS\"\n            ],\n            \"color\": [\n                \"yellow\"\n            ],\n            \"imgUrl\": \"https://2.bp.blogspot.com/-HIFiZ8m2GQI/TVtHUfZD_6I/AAAAAAAACu4/KoFGqrjJwgE/s1600/il_570xN.208407154.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:16:33.971Z\",\n            \"updatedAt\": \"2023-06-24T19:16:33.971Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64972ef04594565d2ec57e10\",\n            \"price\": 800,\n            \"name\": \"short sleeve shirt black\",\n            \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XL\"\n            ],\n            \"color\": [\n                \"black\"\n            ],\n            \"imgUrl\": \"https://d3ugyf2ht6aenh.cloudfront.net/stores/001/110/921/products/flamrem11-e0b51bf4f8433d821d16001054665965-1024-10241-d934a882209ba5460216194529950435-480-0.jpg\",\n            \"tags\": [\n                \"shirts\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T17:59:12.843Z\",\n            \"updatedAt\": \"2023-06-24T17:59:12.843Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497471e3eda70c73d632baa\",\n            \"price\": 1200,\n            \"name\": \"formal red jacket\",\n            \"description\": \"Stay cool and comfortable with our stylish our jackets. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"M\"\n            ],\n            \"color\": [\n                \"red\"\n            ],\n            \"imgUrl\": \"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ftse3.mm.bing.net%2Fth%3Fid%3DOIP.kjgTNJ3t_LwolyN_tESPggHaHa%26pid%3DApi&f=1&ipt=aeccbbf27c66644be14cae213a04afb9b53345f1ec7052f171fa22c2916b58b0&ipo=images\",\n            \"tags\": [\n                \"jackets\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:42:22.950Z\",\n            \"updatedAt\": \"2023-06-24T19:42:22.950Z\",\n            \"__v\": 0\n        }\n    ],\n    \"totalPages\": 6\n}"}],"_postman_id":"ebed3f31-819f-43ef-b3cb-f9139172d66a"},{"name":"get product by query","id":"62921410-f628-404c-8cc0-904ca137e38f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/products/search?q=coat","description":"<p>The search result will return a maximum of 40 items. If the query<br />parameter is empty, it will return a maximum of 40 items from the<br />catalog</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","products","search"],"host":["localhost"],"query":[{"key":"q","value":"coat"}],"variable":[]}},"response":[{"id":"e7da902c-00fb-401b-a53d-4c4d936c0079","name":"empty query","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:4000/api/products/search?q=","protocol":"http","host":["localhost"],"port":"4000","path":["api","products","search"],"query":[{"key":"q","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"462"},{"key":"ETag","value":"W/\"1ce-sBq6eLDlIY1TrHbTmq0SiPyM3c8\""},{"key":"Date","value":"Sun, 28 May 2023 15:43:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6470ec095e0b0295a98cb0db\",\n        \"price\": 1,\n        \"name\": \"mobi\",\n        \"description\": \"un auto de mierda\",\n        \"tags\": [\n            \"elegante\"\n        ],\n        \"hot\": false,\n        \"hide\": false,\n        \"createdAt\": \"2023-05-26T17:27:37.535Z\",\n        \"updatedAt\": \"2023-05-26T17:27:37.535Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6470ee360cfb8695bee91d98\",\n        \"price\": 1000,\n        \"name\": \"mobi\",\n        \"description\": \"un auto de mierda\",\n        \"tags\": [\n            \"elegante\",\n            \"escuela\"\n        ],\n        \"hot\": false,\n        \"hide\": false,\n        \"createdAt\": \"2023-05-26T17:36:54.105Z\",\n        \"updatedAt\": \"2023-05-26T22:24:37.682Z\",\n        \"__v\": 0\n    }\n]"},{"id":"bccc270f-6846-4931-b538-21b78b57d452","name":"get products by query","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/api/products/search?q=coat","protocol":"http","host":["localhost"],"port":"5000","path":["api","products","search"],"query":[{"key":"q","value":"coat"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"17"},{"key":"Date","value":"Tue, 27 Jun 2023 21:31:58 GMT"},{"key":"X-RateLimit-Reset","value":"1687901929"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"10590"},{"key":"ETag","value":"W/\"295e-5u/nG0vR/n7nHh7VbAfO81tYc0w\""},{"key":"cache-control","value":"max-age=600"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"649b50e1ea9fa888307c7505\",\n        \"price\": 1,\n        \"name\": \"black coat\",\n        \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n        \"size\": [\n            \"XL\"\n        ],\n        \"color\": [\n            \"black\"\n        ],\n        \"imgUrl\": \"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-27T21:13:05.476Z\",\n        \"updatedAt\": \"2023-06-27T21:13:05.476Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649b5161ea9fa888307c750d\",\n        \"price\": 1,\n        \"name\": \"coat informal black\",\n        \"description\": \"Manually pushing images to Hub? Connect your account to GitHub or Bitbucket to automatically build and tag new images whenever your code is updated, so you can focus your time on creating.\",\n        \"size\": [\n            \"XL\"\n        ],\n        \"color\": [\n            \"\"\n        ],\n        \"imgUrl\": \"https://images.esellerpro.com/2679/I/314/142/IMG_0113.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-27T21:15:13.575Z\",\n        \"updatedAt\": \"2023-06-27T21:15:13.575Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649741113eda70c73d632b77\",\n        \"price\": 1400,\n        \"name\": \"elegant formal  extra large yellow coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"XS\"\n        ],\n        \"color\": [\n            \"yellow\"\n        ],\n        \"imgUrl\": \"https://2.bp.blogspot.com/-HIFiZ8m2GQI/TVtHUfZD_6I/AAAAAAAACu4/KoFGqrjJwgE/s1600/il_570xN.208407154.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:16:33.971Z\",\n        \"updatedAt\": \"2023-06-24T19:16:33.971Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973f0e3eda70c73d632b5f\",\n        \"price\": 1800,\n        \"name\": \"elegant formal white short coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"XL\"\n        ],\n        \"color\": [\n            \"white\"\n        ],\n        \"imgUrl\": \"https://i.pinimg.com/originals/43/7f/a8/437fa89ac8cd090807e5e03f2dd89b11.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:07:58.143Z\",\n        \"updatedAt\": \"2023-06-24T19:07:58.143Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973cdc3eda70c73d632b46\",\n        \"price\": 2000,\n        \"name\": \"elegant green coat\",\n        \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"L\"\n        ],\n        \"color\": [\n            \"green\"\n        ],\n        \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1PsGuoRDH8KJjy1zeq6xjepXa2/Windbreaker-2018-Fashion-Autumn-Office-Lady-Long-Coats-Long-sleeve-Drawstring-Waist-Coats-Feminine-Casual-Women.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T18:58:36.286Z\",\n        \"updatedAt\": \"2023-06-24T18:58:36.286Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649740033eda70c73d632b6b\",\n        \"price\": 1600,\n        \"name\": \"elegant medium red coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"L\"\n        ],\n        \"color\": [\n            \"red\"\n        ],\n        \"imgUrl\": \"https://i.pinimg.com/originals/27/2b/8e/272b8e40db5a88f272700a853ca3ee32.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:12:03.257Z\",\n        \"updatedAt\": \"2023-06-24T19:12:03.257Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649740373eda70c73d632b6e\",\n        \"price\": 1550,\n        \"name\": \"elegant medium yellow coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"M\"\n        ],\n        \"color\": [\n            \"yellow\"\n        ],\n        \"imgUrl\": \"https://cdnc.lystit.com/photos/2012/10/30/karen-millen-green-cute-feminine-coat-product-3-5101708-670330825_large_flex.jpeg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:12:55.026Z\",\n        \"updatedAt\": \"2023-06-24T19:12:55.026Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497406f3eda70c73d632b71\",\n        \"price\": 1500,\n        \"name\": \"formal extra large white coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"S\"\n        ],\n        \"color\": [\n            \"white\"\n        ],\n        \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1nW7ZmhPI8KJjSspoq6x6MFXac/Feminine-Elegant-Coats-Fall-Winter-Trench-Female-Black-Out-Wear-Long-Sleeve-Overcoat-Women-s-Trench.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:13:51.696Z\",\n        \"updatedAt\": \"2023-06-24T19:13:51.696Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973fc13eda70c73d632b68\",\n        \"price\": 1650,\n        \"name\": \"formal long green coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"XS\"\n        ],\n        \"color\": [\n            \"green\"\n        ],\n        \"imgUrl\": \"https://fxposed.co.uk/Images/No%20Watermark/Ladies/Leather%20Jackets/CHASTER-94/CHASTER-94-CONIC/IMG_0501.JPG\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:10:57.578Z\",\n        \"updatedAt\": \"2023-06-24T19:10:57.578Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973dd83eda70c73d632b50\",\n        \"price\": 1950,\n        \"name\": \"informal  black coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"S\"\n        ],\n        \"color\": [\n            \"black\"\n        ],\n        \"imgUrl\": \"https://i.pinimg.com/originals/c3/2a/98/c32a982c0eabaec26188f8eac5c7a62e.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:02:48.409Z\",\n        \"updatedAt\": \"2023-06-24T19:02:48.409Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973f493eda70c73d632b62\",\n        \"price\": 1750,\n        \"name\": \"informal black extra long coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"XL\"\n        ],\n        \"color\": [\n            \"black\"\n        ],\n        \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1jA9PQVXXXXbGXXXXq6xXFXXXu/Winter-Coats-Medium-Long-Slim-Cotton-Berber-Fleece-Jacket-Women-Parka-Napka-Jaqueta-Feminine-Jaquetas-2016.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:08:57.269Z\",\n        \"updatedAt\": \"2023-06-24T19:08:57.269Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973d993eda70c73d632b49\",\n        \"price\": 1950,\n        \"name\": \"informal leather black coat\",\n        \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"L\"\n        ],\n        \"color\": [\n            \"black\"\n        ],\n        \"imgUrl\": \"https://i.pinimg.com/originals/1e/44/2e/1e442ed7013c65cac3f4099950a39c84.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:01:45.674Z\",\n        \"updatedAt\": \"2023-06-24T19:01:45.674Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649740dd3eda70c73d632b74\",\n        \"price\": 1450,\n        \"name\": \"informal medium white coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"S\"\n        ],\n        \"color\": [\n            \"white\"\n        ],\n        \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1Pbp7SpXXXXcoXXXXq6xXFXXXG/LUNDUNSHIJIA-2017-Autumn-Winter-Imitation-Cashmere-Feminine-Coat-Woman-Overcoat-Female-Casual-Coat-Female-4-Colors.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:15:41.587Z\",\n        \"updatedAt\": \"2023-06-24T19:15:41.587Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973e973eda70c73d632b59\",\n        \"price\": 1850,\n        \"name\": \"informal white long coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"XS\"\n        ],\n        \"color\": [\n            \"white\"\n        ],\n        \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1XydTXpzqK1RjSZSgq6ApAVXa9/New-Spring-Autumn-Loose-Women-s-Jackets-Letter-Embroidery-Firebird-Plus-Size-Students-Denim-Coats-Feminine.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:05:59.603Z\",\n        \"updatedAt\": \"2023-06-24T19:05:59.603Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973ed73eda70c73d632b5c\",\n        \"price\": 1800,\n        \"name\": \"informal white short coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"XM\"\n        ],\n        \"color\": [\n            \"white\"\n        ],\n        \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1DjbsQpXXXXbFXpXXq6xXFXXXy/2017-Summer-Women-Florals-Thin-Stand-Collar-Lace-Patchwork-Jacket-Coats-Feminine-Hollow-Out-Zipper-Sun.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:07:03.320Z\",\n        \"updatedAt\": \"2023-06-24T19:07:03.320Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973e203eda70c73d632b53\",\n        \"price\": 1900,\n        \"name\": \"sexy black coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"M\"\n        ],\n        \"color\": [\n            \"black\"\n        ],\n        \"imgUrl\": \"https://4.bp.blogspot.com/-E86yRp04odI/Uacb6CQ-qnI/AAAAAAAAAvk/WvssmUExZRc/s1600/JAZ0887_NAVY_1.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:04:00.451Z\",\n        \"updatedAt\": \"2023-06-24T19:04:00.451Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973e5b3eda70c73d632b56\",\n        \"price\": 1900,\n        \"name\": \"sexy formal red long coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"M\"\n        ],\n        \"color\": [\n            \"red\"\n        ],\n        \"imgUrl\": \"https://i.pinimg.com/236x/4a/78/3f/4a783fa1102378524001492a19503b7d--fall-coats-red-coats.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:04:59.870Z\",\n        \"updatedAt\": \"2023-06-24T19:04:59.870Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"64973f8f3eda70c73d632b65\",\n        \"price\": 1700,\n        \"name\": \"sexy long red coat\",\n        \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n        \"size\": [\n            \"XM\"\n        ],\n        \"color\": [\n            \"red\"\n        ],\n        \"imgUrl\": \"https://picture-cdn.wheretoget.it/cklojz-l-610x610-jacket-pink-lace-raincoat-fashion-style-cute-girly-feminine-blush+pink-trench+coat.jpg\",\n        \"tags\": [\n            \"coats\"\n        ],\n        \"hot\": false,\n        \"createdAt\": \"2023-06-24T19:10:07.345Z\",\n        \"updatedAt\": \"2023-06-24T19:10:07.345Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"62921410-f628-404c-8cc0-904ca137e38f"},{"name":"get product by tag no page specified","id":"b90d3987-2c04-4fa1-afd6-f6c701635b3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/products/tag?tag=coats","description":"<p>The tag system will return the entire collection that matches the<br />requested tag. By default, it will return page 1 with a maximum of 8<br />items per page if the page is not specified in the query parameters.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","products","tag"],"host":["localhost"],"query":[{"key":"tag","value":"coats"}],"variable":[]}},"response":[{"id":"0df71358-0d22-4797-a3f6-efc2287550f6","name":"get product by tag no page specified","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/api/products/tag?tag=coats","protocol":"http","host":["localhost"],"port":"5000","path":["api","products","tag"],"query":[{"key":"tag","value":"coats"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Tue, 27 Jun 2023 21:42:41 GMT"},{"key":"X-RateLimit-Reset","value":"1687902529"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4769"},{"key":"ETag","value":"W/\"12a1-6wzCRznli8Rpxk1R1OKWMPTHpww\""},{"key":"cache-control","value":"max-age=600"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"_id\": \"64973cdc3eda70c73d632b46\",\n            \"price\": 2000,\n            \"name\": \"elegant green coat\",\n            \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"L\"\n            ],\n            \"color\": [\n                \"green\"\n            ],\n            \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1PsGuoRDH8KJjy1zeq6xjepXa2/Windbreaker-2018-Fashion-Autumn-Office-Lady-Long-Coats-Long-sleeve-Drawstring-Waist-Coats-Feminine-Casual-Women.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T18:58:36.286Z\",\n            \"updatedAt\": \"2023-06-24T18:58:36.286Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973d993eda70c73d632b49\",\n            \"price\": 1950,\n            \"name\": \"informal leather black coat\",\n            \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"L\"\n            ],\n            \"color\": [\n                \"black\"\n            ],\n            \"imgUrl\": \"https://i.pinimg.com/originals/1e/44/2e/1e442ed7013c65cac3f4099950a39c84.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:01:45.674Z\",\n            \"updatedAt\": \"2023-06-24T19:01:45.674Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973dd83eda70c73d632b50\",\n            \"price\": 1950,\n            \"name\": \"informal  black coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"S\"\n            ],\n            \"color\": [\n                \"black\"\n            ],\n            \"imgUrl\": \"https://i.pinimg.com/originals/c3/2a/98/c32a982c0eabaec26188f8eac5c7a62e.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:02:48.409Z\",\n            \"updatedAt\": \"2023-06-24T19:02:48.409Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973e203eda70c73d632b53\",\n            \"price\": 1900,\n            \"name\": \"sexy black coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"M\"\n            ],\n            \"color\": [\n                \"black\"\n            ],\n            \"imgUrl\": \"https://4.bp.blogspot.com/-E86yRp04odI/Uacb6CQ-qnI/AAAAAAAAAvk/WvssmUExZRc/s1600/JAZ0887_NAVY_1.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:04:00.451Z\",\n            \"updatedAt\": \"2023-06-24T19:04:00.451Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973e5b3eda70c73d632b56\",\n            \"price\": 1900,\n            \"name\": \"sexy formal red long coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"M\"\n            ],\n            \"color\": [\n                \"red\"\n            ],\n            \"imgUrl\": \"https://i.pinimg.com/236x/4a/78/3f/4a783fa1102378524001492a19503b7d--fall-coats-red-coats.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:04:59.870Z\",\n            \"updatedAt\": \"2023-06-24T19:04:59.870Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973e973eda70c73d632b59\",\n            \"price\": 1850,\n            \"name\": \"informal white long coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XS\"\n            ],\n            \"color\": [\n                \"white\"\n            ],\n            \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1XydTXpzqK1RjSZSgq6ApAVXa9/New-Spring-Autumn-Loose-Women-s-Jackets-Letter-Embroidery-Firebird-Plus-Size-Students-Denim-Coats-Feminine.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:05:59.603Z\",\n            \"updatedAt\": \"2023-06-24T19:05:59.603Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973ed73eda70c73d632b5c\",\n            \"price\": 1800,\n            \"name\": \"informal white short coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XM\"\n            ],\n            \"color\": [\n                \"white\"\n            ],\n            \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1DjbsQpXXXXbFXpXXq6xXFXXXy/2017-Summer-Women-Florals-Thin-Stand-Collar-Lace-Patchwork-Jacket-Coats-Feminine-Hollow-Out-Zipper-Sun.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:07:03.320Z\",\n            \"updatedAt\": \"2023-06-24T19:07:03.320Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973f0e3eda70c73d632b5f\",\n            \"price\": 1800,\n            \"name\": \"elegant formal white short coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XL\"\n            ],\n            \"color\": [\n                \"white\"\n            ],\n            \"imgUrl\": \"https://i.pinimg.com/originals/43/7f/a8/437fa89ac8cd090807e5e03f2dd89b11.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:07:58.143Z\",\n            \"updatedAt\": \"2023-06-24T19:07:58.143Z\",\n            \"__v\": 0\n        }\n    ],\n    \"totalPages\": 3\n}"},{"id":"c080aa26-5100-4f16-83fb-3321b998fe95","name":"get product by tag , with page and quantity of items","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5000/api/products/tag?tag=coats&page=2&size=5","protocol":"http","host":["localhost"],"port":"5000","path":["api","products","tag"],"query":[{"key":"tag","value":"coats"},{"key":"page","value":"2"},{"key":"size","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Tue, 27 Jun 2023 21:51:37 GMT"},{"key":"X-RateLimit-Reset","value":"1687903129"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3125"},{"key":"ETag","value":"W/\"c35-lzNWQgv/XGJGubBfwMTvVd2/pRU\""},{"key":"cache-control","value":"max-age=600"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"_id\": \"64973e973eda70c73d632b59\",\n            \"price\": 1850,\n            \"name\": \"informal white long coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XS\"\n            ],\n            \"color\": [\n                \"white\"\n            ],\n            \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1XydTXpzqK1RjSZSgq6ApAVXa9/New-Spring-Autumn-Loose-Women-s-Jackets-Letter-Embroidery-Firebird-Plus-Size-Students-Denim-Coats-Feminine.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:05:59.603Z\",\n            \"updatedAt\": \"2023-06-24T19:05:59.603Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973ed73eda70c73d632b5c\",\n            \"price\": 1800,\n            \"name\": \"informal white short coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XM\"\n            ],\n            \"color\": [\n                \"white\"\n            ],\n            \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1DjbsQpXXXXbFXpXXq6xXFXXXy/2017-Summer-Women-Florals-Thin-Stand-Collar-Lace-Patchwork-Jacket-Coats-Feminine-Hollow-Out-Zipper-Sun.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:07:03.320Z\",\n            \"updatedAt\": \"2023-06-24T19:07:03.320Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973f0e3eda70c73d632b5f\",\n            \"price\": 1800,\n            \"name\": \"elegant formal white short coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XL\"\n            ],\n            \"color\": [\n                \"white\"\n            ],\n            \"imgUrl\": \"https://i.pinimg.com/originals/43/7f/a8/437fa89ac8cd090807e5e03f2dd89b11.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:07:58.143Z\",\n            \"updatedAt\": \"2023-06-24T19:07:58.143Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973f493eda70c73d632b62\",\n            \"price\": 1750,\n            \"name\": \"informal black extra long coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XL\"\n            ],\n            \"color\": [\n                \"black\"\n            ],\n            \"imgUrl\": \"https://ae01.alicdn.com/kf/HTB1jA9PQVXXXXbGXXXXq6xXFXXXu/Winter-Coats-Medium-Long-Slim-Cotton-Berber-Fleece-Jacket-Women-Parka-Napka-Jaqueta-Feminine-Jaquetas-2016.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:08:57.269Z\",\n            \"updatedAt\": \"2023-06-24T19:08:57.269Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"64973f8f3eda70c73d632b65\",\n            \"price\": 1700,\n            \"name\": \"sexy long red coat\",\n            \"description\": \"Stay cool and comfortable with our stylish our coat. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n            \"size\": [\n                \"XM\"\n            ],\n            \"color\": [\n                \"red\"\n            ],\n            \"imgUrl\": \"https://picture-cdn.wheretoget.it/cklojz-l-610x610-jacket-pink-lace-raincoat-fashion-style-cute-girly-feminine-blush+pink-trench+coat.jpg\",\n            \"tags\": [\n                \"coats\"\n            ],\n            \"hot\": false,\n            \"createdAt\": \"2023-06-24T19:10:07.345Z\",\n            \"updatedAt\": \"2023-06-24T19:10:07.345Z\",\n            \"__v\": 0\n        }\n    ],\n    \"totalPages\": 4\n}"}],"_postman_id":"b90d3987-2c04-4fa1-afd6-f6c701635b3c"},{"name":"get product by id","id":"7b763a31-8804-40de-8948-b14a5951f93e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/products/64972ea54594565d2ec57e0d","description":"<p>To find a product by its ID, you need to pass the product ID through the parameters.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","products","64972ea54594565d2ec57e0d"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1e31d9ec-3b9b-4aa8-ba8a-8c877b6d5e74","name":"get product by id succes","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/products/64972ea54594565d2ec57e0d"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Tue, 27 Jun 2023 22:41:02 GMT"},{"key":"X-RateLimit-Reset","value":"1687906261"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"628"},{"key":"ETag","value":"W/\"274-cyLkbBb4l+Cmjp3rEKxlyk5KvlQ\""},{"key":"cache-control","value":"max-age=600"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"64972ea54594565d2ec57e0d\",\n    \"price\": 500,\n    \"name\": \"short sleeve shirt pink\",\n    \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n    \"size\": [\n        \"XS\"\n    ],\n    \"color\": [\n        \"red\"\n    ],\n    \"imgUrl\": \"https://i1.wp.com/www.co-27.com/wp-content/uploads/2016/09/remera-mujer-manga-corta-soho-253121-MLA20712597620_052016-O.jpeg?fit=500%2C500&ssl=1\",\n    \"tags\": [\n        \"shirts\"\n    ],\n    \"hot\": false,\n    \"createdAt\": \"2023-06-24T17:57:57.846Z\",\n    \"updatedAt\": \"2023-06-24T17:57:57.846Z\",\n    \"__v\": 0\n}"},{"id":"fdcef3e9-6d65-4a89-b855-83f52eaff4c5","name":"product by id not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/products/64972ea54594565d2wc57e0d"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Tue, 27 Jun 2023 22:41:27 GMT"},{"key":"X-RateLimit-Reset","value":"1687906261"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-B1Q6uqB2SmWQJG0exKaPAMQpwHA\""},{"key":"cache-control","value":"max-age=600"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Product Not found\"\n}"}],"_postman_id":"7b763a31-8804-40de-8948-b14a5951f93e"},{"name":"update product","id":"9ddf9fe0-f13b-451a-8b37-dca75cfd4b05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{ \n    \"price\": 1000,\n    \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n    \"hot\": true\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/update/64972ea54594565d2ec57e0d","description":"<p>To update the product information, the user must provide the product ID and must have admin privileges.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","products","update","64972ea54594565d2ec57e0d"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1a16de74-ef05-4b79-b500-0f33f27e8653","name":"product informaction updated","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{ \n    \"price\": 1000,\n    \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n    \"hot\": true\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/update/64972ea54594565d2ec57e0d"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Tue, 27 Jun 2023 22:52:05 GMT"},{"key":"X-RateLimit-Reset","value":"1687906924"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"628"},{"key":"ETag","value":"W/\"274-CbSor6G+d4pW6YFEqINYitMr3EI\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"64972ea54594565d2ec57e0d\",\n    \"price\": 1000,\n    \"name\": \"short sleeve shirt pink\",\n    \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n    \"size\": [\n        \"XS\"\n    ],\n    \"color\": [\n        \"red\"\n    ],\n    \"imgUrl\": \"https://i1.wp.com/www.co-27.com/wp-content/uploads/2016/09/remera-mujer-manga-corta-soho-253121-MLA20712597620_052016-O.jpeg?fit=500%2C500&ssl=1\",\n    \"tags\": [\n        \"shirts\"\n    ],\n    \"hot\": true,\n    \"createdAt\": \"2023-06-24T17:57:57.846Z\",\n    \"updatedAt\": \"2023-06-27T22:52:05.473Z\",\n    \"__v\": 0\n}"},{"id":"72ecadc5-119e-42e6-bc70-cdbe0ab81f7c","name":"unauthorized","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{ \n    \"price\": 1000,\n    \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n    \"hot\": true\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/update/64972ea54594565d2ec57e0d"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"293"},{"key":"Date","value":"Thu, 29 Jun 2023 17:51:40 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"9ddf9fe0-f13b-451a-8b37-dca75cfd4b05"},{"name":"delete product","id":"91105e43-6c6d-445c-b068-99cbe13cc832","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/products/delete/64972ef04594565d2ec57e10","description":"<p>To delete the product information, the user must provide the product ID and have admin privileges.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","products","delete","64972ef04594565d2ec57e10"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5cd60ab2-1771-4c89-a6d5-20935ad6adc2","name":"delete product succes","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/products/delete/64972ef04594565d2ec57e10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Wed, 28 Jun 2023 00:46:47 GMT"},{"key":"X-RateLimit-Reset","value":"1687913558"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"590"},{"key":"ETag","value":"W/\"24e-sHHuvYRlkVNpVlMvLAGQCa0heec\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"64972e0a4594565d2ec57e0a\",\n    \"price\": 500,\n    \"name\": \"short sleeve shirt white\",\n    \"description\": \"Stay cool and comfortable with our stylish short-sleeve t-shirt. Made with high-quality fabric, it offers a perfect blend of comfort and style. Elevate your wardrobe with this versatile and trendy essential for any casual occasion\",\n    \"size\": [\n        \"XL\"\n    ],\n    \"color\": [\n        \"white\"\n    ],\n    \"imgUrl\": \"https://mlstaticquic-a.akamaihd.net/remera-mujer-manga-corta-D_NQ_NP_670576-MLU31242597993_062019-F.jpg\",\n    \"tags\": [\n        \"shirts\"\n    ],\n    \"hot\": false,\n    \"createdAt\": \"2023-06-24T17:55:22.860Z\",\n    \"updatedAt\": \"2023-06-24T17:55:22.860Z\",\n    \"__v\": 0\n}"},{"id":"336a219d-2e22-4d67-9df1-08c41f14a3fe","name":"unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/products/delete/64972ef04594565d2ec57e10"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"292"},{"key":"Date","value":"Thu, 29 Jun 2023 17:52:14 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"91105e43-6c6d-445c-b068-99cbe13cc832"}],"id":"52fc1540-ab7f-4c7e-a438-f400f65ad549","description":"<p>In this section, you will find the operations related to products:</p>\n<ol>\n<li>POST /products: Create a new product. Requires admin user privileges.</li>\n<li>GET /products: Get all products.</li>\n<li>GET /products?query=example: Get products based on a query. The \"query\" parameter is used to specify the search criteria.</li>\n<li>GET /products/tag/:id: Get products by tag ID.</li>\n<li>GET /products/:id: Get a product by its ID.</li>\n<li>PUT /products/:id: Update a product. Requires admin user privileges.</li>\n<li>DELETE /products/:id: Delete a product. Requires admin user privileges.</li>\n</ol>\n<p>Please note that the operations marked with \"Requires admin user privileges\" can only be performed by users with admin access rights.</p>\n","_postman_id":"52fc1540-ab7f-4c7e-a438-f400f65ad549"},{"name":"purchase","item":[{"name":"create purchase","id":"30fad45b-31df-4ebc-a672-1a16c89c1267","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n   \n    \"cartId\":\"64971d9a59c0798f880c175e\",\n    \"amount\":12312313,\n    \"shippingAddress\": {\n            \"city\": \"san m,artin\",\n            \"country\":\"Argentina\",\n            \"line1\":\"carranza\",\n            \"line2\":null,\n            \"postal_code\":\"1234\",\n            \"state\":null\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/purchases/create","description":"<p>To create a new purchase, use the following request body:</p>\n<ul>\n<li>: The ID of the cart associated with the purchase.: The total amount of the purchase.</li>\n<li><code>shippingAddress</code>: The shipping address for the purchase, including the following fields:<ul>\n<li><code>city</code>: The city of the shipping address.</li>\n<li><code>country</code>: The country of the shipping address.</li>\n<li><code>line1</code>: The first line of the shipping address.</li>\n<li><code>line2</code>: The second line of the shipping address (optional).</li>\n<li><code>postal_code</code>: The postal code of the shipping address.</li>\n<li><code>state</code>: The state of the shipping address (optional).</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","purchases","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c043f35a-011a-4ff2-a48f-07da82589263","name":"create purchase success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n   \n    \"cartId\":\"64971d9a59c0798f880c175e\",\n    \"amount\":12312313,\n    \"shippingAddress\": {\n            \"city\": \"san m,artin\",\n            \"country\":\"Argentina\",\n            \"line1\":\"carranza\",\n            \"line2\":null,\n            \"postal_code\":\"1234\",\n            \"state\":null\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/purchases/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Wed, 28 Jun 2023 01:21:38 GMT"},{"key":"X-RateLimit-Reset","value":"1687915451"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"370"},{"key":"ETag","value":"W/\"172-Iw9eZEK5B/eVh9Lk5anmG4m+mjo\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n    \"cartId\": \"64971d9a59c0798f880c175e\",\n    \"amount\": 12312313,\n    \"shippingAddress\": {\n        \"city\": \"san m,artin\",\n        \"country\": \"Argentina\",\n        \"line1\": \"carranza\",\n        \"line2\": null,\n        \"postal_code\": \"1234\",\n        \"state\": null\n    },\n    \"shippingStatus\": [\n        \"pendiente\"\n    ],\n    \"_id\": \"649b8b22ec5b61664d761fbe\",\n    \"createdAt\": \"2023-06-28T01:21:38.303Z\",\n    \"updatedAt\": \"2023-06-28T01:21:38.303Z\",\n    \"__v\": 0\n}"},{"id":"64cb3995-924f-4584-818d-b74636cf73e0","name":"amount is a string instead number","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n   \n    \"cartId\":\"64971d9a59c0798f880c175e\",\n    \"amount\":123,\n    \"shippingAddress\": {\n            \"city\": \"san m,artin\",\n\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/purchases/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"17"},{"key":"Date","value":"Wed, 28 Jun 2023 01:23:36 GMT"},{"key":"X-RateLimit-Reset","value":"1687915451"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"120"},{"key":"ETag","value":"W/\"78-y/rH9NN7j5wL/GKyuWYbAgFVez0\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Purchase validation failed: amount: Cast to Number failed for value \\\"asd\\\" (type string) at path \\\"amount\\\"\"\n}"},{"id":"8b7f1b3e-ef13-4576-877e-adf3c2416f84","name":"create purchase failed without shipping Adress","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{  \n   \n    \"cartId\":\"64971d9a59c0798f880c175e\",\n    \"amount\":123\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/purchases/create"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"16"},{"key":"Date","value":"Wed, 28 Jun 2023 01:25:29 GMT"},{"key":"X-RateLimit-Reset","value":"1687916051"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"ETag","value":"W/\"5c-ep8HVV9KW5OGSnH00fqtGwBsul4\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Purchase validation failed: shippingAddress: Path `shippingAddress` is required.\"\n}"}],"_postman_id":"30fad45b-31df-4ebc-a672-1a16c89c1267"},{"name":"get all purchases","id":"c324ee51-8794-4b85-b2d0-9c5de31c7c86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/getAll","description":"<p>Query Parameters:</p>\n<ul>\n<li><p><code>page</code>: (optional) The page number to retrieve. If not specified, it defaults to the first page.</p>\n</li>\n<li><p><code>size</code>: (optional) The number of purchases to include per page. If not specified, it defaults to 8 purchases per page.  </p>\n</li>\n<li><p>This will return a paginated list of purchases, with each page containing the specified number of purchases. If no pagination parameters are provided, the endpoint will return the first page with the default page size.\n  Ensure that you include the appropriate query parameters to retrieve the desired page of purchases.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","purchases","getAll"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0f4d6e82-d693-4904-882a-b62208999fe1","name":"unauthorized","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/purchases/getAll"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"24"},{"key":"ETag","value":"W/\"18-XPDV80vbMk4yY1/PADG4jYM4rSI\""},{"key":"Date","value":"Sun, 28 May 2023 23:56:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized\"\n}"},{"id":"91a79990-8f61-432d-8f09-e244ba74a06a","name":"get Purchases","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/getAll"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"18"},{"key":"Date","value":"Wed, 28 Jun 2023 01:33:14 GMT"},{"key":"X-RateLimit-Reset","value":"1687916542"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2868"},{"key":"ETag","value":"W/\"b34-pBzGNZClLh7SGHz1DZ8L/GMFdgY\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"_id\": \"6497274059c0798f880c17d2\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"6497271d59c0798f880c17c7\",\n            \"amount\": 0,\n            \"shippingAddress\": {\n                \"city\": \"asd\",\n                \"country\": \"Argentina\",\n                \"line1\": \"asd\",\n                \"line2\": null,\n                \"postal_code\": \"1554\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-24T17:26:24.625Z\",\n            \"updatedAt\": \"2023-06-24T17:26:24.625Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497274259c0798f880c17f4\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"6497271d59c0798f880c17c7\",\n            \"amount\": 0,\n            \"shippingAddress\": {\n                \"city\": \"asd\",\n                \"country\": \"Argentina\",\n                \"line1\": \"asd\",\n                \"line2\": null,\n                \"postal_code\": \"1554\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-24T17:26:26.114Z\",\n            \"updatedAt\": \"2023-06-24T17:26:26.114Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497274359c0798f880c1810\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"6497271d59c0798f880c17c7\",\n            \"amount\": 0,\n            \"shippingAddress\": {\n                \"city\": \"asd\",\n                \"country\": \"Argentina\",\n                \"line1\": \"asd\",\n                \"line2\": null,\n                \"postal_code\": \"1554\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-24T17:26:27.534Z\",\n            \"updatedAt\": \"2023-06-24T17:26:27.534Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497274259c0798f880c17fe\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"6497271d59c0798f880c17c7\",\n            \"amount\": 0,\n            \"shippingAddress\": {\n                \"city\": \"asd\",\n                \"country\": \"Argentina\",\n                \"line1\": \"asd\",\n                \"line2\": null,\n                \"postal_code\": \"1554\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-24T17:26:26.568Z\",\n            \"updatedAt\": \"2023-06-24T17:26:26.568Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497274259c0798f880c17fc\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"6497271d59c0798f880c17c7\",\n            \"amount\": 0,\n            \"shippingAddress\": {\n                \"city\": \"asd\",\n                \"country\": \"Argentina\",\n                \"line1\": \"asd\",\n                \"line2\": null,\n                \"postal_code\": \"1554\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-24T17:26:26.478Z\",\n            \"updatedAt\": \"2023-06-24T17:26:26.478Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"649b896fec5b61664d761fbc\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"64971d9a59c0798f880c175e\",\n            \"amount\": 12312313,\n            \"shippingAddress\": {\n                \"city\": \"san m,artin\",\n                \"country\": \"Argentina\",\n                \"line1\": \"carranza\",\n                \"line2\": null,\n                \"postal_code\": \"1234\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-28T01:14:23.919Z\",\n            \"updatedAt\": \"2023-06-28T01:14:23.919Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497225f59c0798f880c1792\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"6497222859c0798f880c178a\",\n            \"amount\": 8526,\n            \"shippingAddress\": {\n                \"city\": \"ad\",\n                \"country\": \"Argentina\",\n                \"line1\": \"123412asdad\",\n                \"line2\": null,\n                \"postal_code\": \"1234\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-24T17:05:35.137Z\",\n            \"updatedAt\": \"2023-06-24T17:05:35.137Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6497274559c0798f880c183a\",\n            \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n            \"cartId\": \"6497271d59c0798f880c17c7\",\n            \"amount\": 0,\n            \"shippingAddress\": {\n                \"city\": \"asd\",\n                \"country\": \"Argentina\",\n                \"line1\": \"asd\",\n                \"line2\": null,\n                \"postal_code\": \"1554\",\n                \"state\": null\n            },\n            \"shippingStatus\": [\n                \"pendiente\"\n            ],\n            \"createdAt\": \"2023-06-24T17:26:29.969Z\",\n            \"updatedAt\": \"2023-06-24T17:26:29.969Z\",\n            \"__v\": 0\n        }\n    ],\n    \"totalPages\": 14\n}"}],"_postman_id":"c324ee51-8794-4b85-b2d0-9c5de31c7c86"},{"name":"monthly purchases","id":"2ba32b3d-1da8-43cb-a432-3942875ff6eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/monthly","description":"<p>This endpoint will return all sales made within the last two months, providing a comprehensive view of the purchases during that period.</p>\n<p>Please note that this endpoint does not require any additional query parameters. The implementation automatically retrieves and filters the sales data based on the last two months.  </p>\n<p>The response will include all purchases made within the last two months,<br />along with the corresponding products included in each purchase. This<br />allows you to analyze the sales data and gain insights into the<br />purchasing patterns during the specified period.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","purchases","monthly"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ec6cb996-66f8-48ca-9aea-ee07fb3007ef","name":"unauthorized","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/monthly"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"291"},{"key":"Date","value":"Thu, 29 Jun 2023 17:52:58 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"},{"id":"d9f64869-30a5-43ff-9f13-b294bffe4298","name":"monthly purchases","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/monthly"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"297"},{"key":"Date","value":"Sat, 01 Jul 2023 20:04:50 GMT"},{"key":"X-RateLimit-Reset","value":"1688242469"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-j+RAeKTbeIS6Rh2Z++MH/9bXFMg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": 6,\n        \"total\": 37108891\n    }\n]"}],"_postman_id":"2ba32b3d-1da8-43cb-a432-3942875ff6eb"},{"name":"change status","id":"fd92269a-ec20-4e7b-9647-71d2b1b6679a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"shippingStatus\":\"enviado\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/purchases/status/6297271d59c0798f880c16d1","description":"<p>Replace <code>{purchaseId}</code> in the URL with the actual ID of the purchase you wish to update. In the request body, provide the new status using the <code>shippingStatus</code> field. The available status options are:</p>\n<ul>\n<li><p><code>'pendiente'</code> (pending)</p>\n</li>\n<li><p><code>'enviado'</code> (shipped)</p>\n</li>\n<li><p><code>'recibido'</code> (received)</p>\n</li>\n<li><p><code>'rechazado'</code> (rejected)  </p>\n</li>\n<li><p>Please note that only users with administrator privileges can update the status of a purchase.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","purchases","status","6297271d59c0798f880c16d1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ce23b41d-8b20-4ecb-a779-b9d95c7f6723","name":"unauthrorized","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"shippingStatus\":\"enviado\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/purchases/status/6473dad9aaa59dfe20f1a9f3"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Date","value":"Tue, 30 May 2023 13:16:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"},{"id":"859fdee9-f2ac-4105-9156-9d2d11355df7","name":"not found id","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"shippingStatus\":\"enviado\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/purchases/status/6297271d59c0798f880c16d1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Wed, 28 Jun 2023 02:29:34 GMT"},{"key":"X-RateLimit-Reset","value":"1687919973"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"ETag","value":"W/\"3f-ZsJebZwMlfNQgInxmi6keEa+lMk\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Purchase with id 6297271d59c0798f880c16d1 Not found\"\n}"},{"id":"c5113151-ce24-4f79-915f-11407234c329","name":"changed status","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"shippingStatus\":\"enviado\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/purchases/status/6497219c59c0798f880c1774"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Wed, 28 Jun 2023 02:51:46 GMT"},{"key":"X-RateLimit-Reset","value":"1687921305"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"364"},{"key":"ETag","value":"W/\"16c-K9nsG5igPk9ZiBg46/onGMZgFt4\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6497219c59c0798f880c1774\",\n    \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n    \"cartId\": \"6497210359c0798f880c176b\",\n    \"amount\": 8526,\n    \"shippingAddress\": {\n        \"city\": \"san m,artin\",\n        \"country\": \"Argentina\",\n        \"line1\": \"carranza\",\n        \"line2\": null,\n        \"postal_code\": \"1234\",\n        \"state\": null\n    },\n    \"shippingStatus\": [\n        \"enviado\"\n    ],\n    \"createdAt\": \"2023-06-24T17:02:20.342Z\",\n    \"updatedAt\": \"2023-06-28T02:51:46.837Z\",\n    \"__v\": 0\n}"}],"_postman_id":"fd92269a-ec20-4e7b-9647-71d2b1b6679a"},{"name":"delete purchases","id":"259ace8a-9393-4a39-b018-4fdd7da0e312","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/purchases/6497274059c0798f880c17d0","description":"<p>Replace <code>{purchaseId}</code> in the URL with the actual ID of the purchase you wish to delete.  </p>\n<p>Please note that only users with administrator permissions can delete purchases.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","purchases","6497274059c0798f880c17d0"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0321e1c6-fe23-4706-be91-81b667b22ffb","name":"delete purchase","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/purchases/6497274059c0798f880c17d0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Wed, 28 Jun 2023 02:13:33 GMT"},{"key":"X-RateLimit-Reset","value":"1687919006"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-YzFcjv6GypuXURnV6xnOq3SfKDs\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"purchase with id 6497274059c0798f880c17d0 was deleted\"\n}"},{"id":"b9e8540e-7baa-4bbe-a57a-38b0d149f73a","name":"unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/purchases/6497274059c0798f880c17d0"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"290"},{"key":"Date","value":"Thu, 29 Jun 2023 17:53:34 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"259ace8a-9393-4a39-b018-4fdd7da0e312"},{"name":"get cart by userId","id":"dc054188-0796-4d37-a6d6-929bc9ba784a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/648b5e5e9142749d4d7ebfb7","description":"<p>to get the user cart, the request user must be loged in</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","purchases","648b5e5e9142749d4d7ebfb7"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5c308a82-2b3d-401c-8711-a8ac66e34123","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/648b5e5e9142749d4d7ebfb7"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Fri, 30 Jun 2023 16:52:26 GMT"},{"key":"X-RateLimit-Reset","value":"1688144544"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"},{"id":"f724e77d-b2b0-46be-9e43-c65c5259be51","name":"get user cart by userId","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/purchases/648b5e5e9142749d4d7ebfb7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Fri, 30 Jun 2023 16:58:01 GMT"},{"key":"X-RateLimit-Reset","value":"1688144880"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38564"},{"key":"ETag","value":"W/\"96a4-5yjV7iZx9yL/GRxWMVJFv87Bj3s\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6497215d59c0798f880c1772\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497210359c0798f880c176b\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"san m,artin\",\n            \"country\": \"Argentina\",\n            \"line1\": \"carranza\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:01:17.048Z\",\n        \"updatedAt\": \"2023-06-24T17:01:17.048Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497219c59c0798f880c1774\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497210359c0798f880c176b\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"san m,artin\",\n            \"country\": \"Argentina\",\n            \"line1\": \"carranza\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"enviado\"\n        ],\n        \"createdAt\": \"2023-06-24T17:02:20.342Z\",\n        \"updatedAt\": \"2023-06-28T02:51:46.837Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649721c359c0798f880c177e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"649721a559c0798f880c1778\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"asdasd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"alskdasld\",\n            \"line2\": null,\n            \"postal_code\": \"4567\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:02:59.926Z\",\n        \"updatedAt\": \"2023-06-24T17:02:59.926Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649721f259c0798f880c1780\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"649721a559c0798f880c1778\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"asdasd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"alskdasld\",\n            \"line2\": null,\n            \"postal_code\": \"4567\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:03:46.427Z\",\n        \"updatedAt\": \"2023-06-24T17:03:46.427Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649721f959c0798f880c1782\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"649721a559c0798f880c1778\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"asdasd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"alskdasld\",\n            \"line2\": null,\n            \"postal_code\": \"4567\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:03:53.655Z\",\n        \"updatedAt\": \"2023-06-24T17:03:53.655Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497220e59c0798f880c1784\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"649721a559c0798f880c1778\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"asdasd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"alskdasld\",\n            \"line2\": null,\n            \"postal_code\": \"4567\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:04:14.514Z\",\n        \"updatedAt\": \"2023-06-24T17:04:14.514Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497221f59c0798f880c1786\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"649721a559c0798f880c1778\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"asdasd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"alskdasld\",\n            \"line2\": null,\n            \"postal_code\": \"4567\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:04:31.294Z\",\n        \"updatedAt\": \"2023-06-24T17:04:31.294Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497224559c0798f880c1790\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497222859c0798f880c178a\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"ad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"123412asdad\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:05:09.188Z\",\n        \"updatedAt\": \"2023-06-24T17:05:09.188Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497225f59c0798f880c1792\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497222859c0798f880c178a\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"ad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"123412asdad\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:05:35.137Z\",\n        \"updatedAt\": \"2023-06-24T17:05:35.137Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497230059c0798f880c1794\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497222859c0798f880c178a\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"ad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"123412asdad\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:08:16.287Z\",\n        \"updatedAt\": \"2023-06-24T17:08:16.287Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497235e59c0798f880c1796\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497222859c0798f880c178a\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"ad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"123412asdad\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:09:50.052Z\",\n        \"updatedAt\": \"2023-06-24T17:09:50.052Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497238e59c0798f880c17a0\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497237359c0798f880c179a\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"asdasdas\",\n            \"country\": \"Argentina\",\n            \"line1\": \"adsad\",\n            \"line2\": null,\n            \"postal_code\": \"adasd\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:10:38.287Z\",\n        \"updatedAt\": \"2023-06-24T17:10:38.287Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497243259c0798f880c17a2\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497237359c0798f880c179a\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"asdasdas\",\n            \"country\": \"Argentina\",\n            \"line1\": \"adsad\",\n            \"line2\": null,\n            \"postal_code\": \"adasd\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:13:22.076Z\",\n        \"updatedAt\": \"2023-06-24T17:13:22.076Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497247d59c0798f880c17b2\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497245e59c0798f880c17ac\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"adad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"adsasd\",\n            \"line2\": null,\n            \"postal_code\": \"a54a\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:14:37.640Z\",\n        \"updatedAt\": \"2023-06-24T17:14:37.640Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649724f459c0798f880c17b4\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497245e59c0798f880c17ac\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"adad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"adsasd\",\n            \"line2\": null,\n            \"postal_code\": \"a54a\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:16:36.072Z\",\n        \"updatedAt\": \"2023-06-24T17:16:36.072Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497250359c0798f880c17b6\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497245e59c0798f880c17ac\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"adad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"adsasd\",\n            \"line2\": null,\n            \"postal_code\": \"a54a\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:16:51.181Z\",\n        \"updatedAt\": \"2023-06-24T17:16:51.181Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497254859c0798f880c17b8\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497245e59c0798f880c17ac\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"adad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"adsasd\",\n            \"line2\": null,\n            \"postal_code\": \"a54a\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:18:00.607Z\",\n        \"updatedAt\": \"2023-06-24T17:18:00.607Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497259759c0798f880c17ba\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497245e59c0798f880c17ac\",\n        \"amount\": 8526,\n        \"shippingAddress\": {\n            \"city\": \"adad\",\n            \"country\": \"Argentina\",\n            \"line1\": \"adsasd\",\n            \"line2\": null,\n            \"postal_code\": \"a54a\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:19:19.231Z\",\n        \"updatedAt\": \"2023-06-24T17:19:19.231Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274059c0798f880c17ce\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 11982,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:24.422Z\",\n        \"updatedAt\": \"2023-06-24T17:26:24.422Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274059c0798f880c17d2\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:24.625Z\",\n        \"updatedAt\": \"2023-06-24T17:26:24.625Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274059c0798f880c17d4\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:24.704Z\",\n        \"updatedAt\": \"2023-06-24T17:26:24.704Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274059c0798f880c17d6\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:24.788Z\",\n        \"updatedAt\": \"2023-06-24T17:26:24.788Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274059c0798f880c17d8\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:24.872Z\",\n        \"updatedAt\": \"2023-06-24T17:26:24.872Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274059c0798f880c17da\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:24.964Z\",\n        \"updatedAt\": \"2023-06-24T17:26:24.964Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17dc\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.047Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.047Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17de\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.130Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.130Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17e0\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.213Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.213Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17e2\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.300Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.300Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17e4\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.384Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.384Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17e6\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.477Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.477Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17e8\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.564Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.564Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17ea\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.659Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.659Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17ec\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.760Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.760Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17ee\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.857Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.857Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274159c0798f880c17f0\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:25.942Z\",\n        \"updatedAt\": \"2023-06-24T17:26:25.942Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c17f2\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.035Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.035Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c17f4\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.114Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.114Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c17f6\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.202Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.202Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c17f8\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.296Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.296Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c17fa\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.390Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.390Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c17fc\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.478Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.478Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c17fe\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.568Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.568Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c1800\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.689Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.689Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c1802\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.780Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.780Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c1804\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.865Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.865Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274259c0798f880c1806\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:26.956Z\",\n        \"updatedAt\": \"2023-06-24T17:26:26.956Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c1808\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.032Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.032Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c180a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.130Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.130Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c180c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.261Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.261Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c180e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.350Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.350Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c1810\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.534Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.534Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c1812\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.660Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.660Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c1814\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.751Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.751Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c1816\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.858Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.858Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274359c0798f880c1818\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:27.964Z\",\n        \"updatedAt\": \"2023-06-24T17:26:27.964Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c181a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.139Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.139Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c181c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.254Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.254Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c181e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.349Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.349Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c1820\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.421Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.421Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c1822\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.529Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.529Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c1824\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.701Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.701Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c1826\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.815Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.815Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c1828\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.887Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.887Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274459c0798f880c182a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:28.969Z\",\n        \"updatedAt\": \"2023-06-24T17:26:28.969Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c182c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.077Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.077Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c182e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.157Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.157Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c1830\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.371Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.371Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c1832\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.467Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.467Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c1834\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.616Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.616Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c1836\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.715Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.715Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c1838\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.831Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.831Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274559c0798f880c183a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:29.969Z\",\n        \"updatedAt\": \"2023-06-24T17:26:29.969Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c183c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.048Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.048Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c183e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.138Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.138Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c1840\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.215Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.215Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c1842\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.360Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.360Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c1844\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.439Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.439Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c1846\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.516Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.516Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c1848\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.616Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.616Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c184a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.736Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.736Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c184c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.827Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.827Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274659c0798f880c184e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:30.937Z\",\n        \"updatedAt\": \"2023-06-24T17:26:30.937Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c1850\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.066Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.066Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c1852\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.162Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.162Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c1854\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.270Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.270Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c1856\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.383Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.383Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c1858\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.509Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.509Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c185a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.616Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.616Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c185c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.762Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.762Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c185e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.876Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.876Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274759c0798f880c1860\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:31.985Z\",\n        \"updatedAt\": \"2023-06-24T17:26:31.985Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c1862\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.079Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.079Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c1864\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.160Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.160Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c1866\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.238Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.238Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c1868\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.329Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.329Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c186a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.404Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.404Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c186c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.495Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.495Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c186e\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.596Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.596Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c1870\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.743Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.743Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c1872\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.869Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.869Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274859c0798f880c1874\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:32.982Z\",\n        \"updatedAt\": \"2023-06-24T17:26:32.982Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274959c0798f880c1876\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:33.135Z\",\n        \"updatedAt\": \"2023-06-24T17:26:33.135Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274959c0798f880c1878\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:33.257Z\",\n        \"updatedAt\": \"2023-06-24T17:26:33.257Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6497274959c0798f880c187a\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"6497271d59c0798f880c17c7\",\n        \"amount\": 0,\n        \"shippingAddress\": {\n            \"city\": \"asd\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asd\",\n            \"line2\": null,\n            \"postal_code\": \"1554\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:26:33.396Z\",\n        \"updatedAt\": \"2023-06-24T17:26:33.396Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649727f559c0798f880c188c\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"649727d559c0798f880c1887\",\n        \"amount\": 6256,\n        \"shippingAddress\": {\n            \"city\": \"BAÑOS PISMANTA\",\n            \"country\": \"Argentina\",\n            \"line1\": \"asdads\",\n            \"line2\": null,\n            \"postal_code\": \"54654\",\n            \"state\": \"J\"\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-24T17:29:25.022Z\",\n        \"updatedAt\": \"2023-06-24T17:29:25.022Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649b88624e0740f005cf1b59\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"64971d9a59c0798f880c175e\",\n        \"amount\": 12312313,\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-28T01:09:54.446Z\",\n        \"updatedAt\": \"2023-06-28T01:09:54.446Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649b896fec5b61664d761fbc\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"64971d9a59c0798f880c175e\",\n        \"amount\": 12312313,\n        \"shippingAddress\": {\n            \"city\": \"san m,artin\",\n            \"country\": \"Argentina\",\n            \"line1\": \"carranza\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-28T01:14:23.919Z\",\n        \"updatedAt\": \"2023-06-28T01:14:23.919Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649b8b22ec5b61664d761fbe\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"64971d9a59c0798f880c175e\",\n        \"amount\": 12312313,\n        \"shippingAddress\": {\n            \"city\": \"san m,artin\",\n            \"country\": \"Argentina\",\n            \"line1\": \"carranza\",\n            \"line2\": null,\n            \"postal_code\": \"1234\",\n            \"state\": null\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-28T01:21:38.303Z\",\n        \"updatedAt\": \"2023-06-28T01:21:38.303Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649b8bd4ec5b61664d761fc1\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"64971d9a59c0798f880c175e\",\n        \"amount\": 123,\n        \"shippingAddress\": {\n            \"city\": \"san m,artin\"\n        },\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-28T01:24:36.570Z\",\n        \"updatedAt\": \"2023-06-28T01:24:36.570Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"649b8bf2ec5b61664d761fc3\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"cartId\": \"64971d9a59c0798f880c175e\",\n        \"amount\": 123,\n        \"shippingStatus\": [\n            \"pendiente\"\n        ],\n        \"createdAt\": \"2023-06-28T01:25:06.856Z\",\n        \"updatedAt\": \"2023-06-28T01:25:06.856Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"dc054188-0796-4d37-a6d6-929bc9ba784a"}],"id":"29cea1ec-8991-4078-b612-10a264127f23","description":"<p>To create a purchase, the user must be logged in.</p>\n<p>NEXT IN THIS FOLDER<br />POST<br />Create a new purchase<br />GET<br />Get all purchases (requires admin permissions)<br />GET<br />Get monthly purchases (requires admin permissions)<br />PUT<br />Change the status of a purchase (requires admin permissions)<br />DEL<br />Delete a purchase (requires admin permissions)</p>\n","_postman_id":"29cea1ec-8991-4078-b612-10a264127f23"},{"name":"cart","item":[{"name":"create cart","id":"0cf6b754-6e95-4f11-968e-3d6d1cbd8fd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"products\":[\n        {\n            \"productId\":\"6480d64caf38696d17f97d50\",\n            \"quantity\":4,\n            \"color\":\"blue\",\n            \"size\":\"XL\"\n        }\n        \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/carts/create","description":"<p>This endpoint allows users to create a new shopping cart.</p>\n<p><strong>Request Body:</strong></p>\n<p>The request body should contain the following information:</p>\n<ul>\n<li><code>userId</code> (required): The ID of the user who owns the shopping cart.</li>\n<li><code>products</code> (required): An array of product items in the cart. Each item should include:<ul>\n<li><code>productId</code> (required): The ID of the product.</li>\n<li><code>quantity</code> (optional): The quantity of the product in the cart. If not specified, it defaults to 1.</li>\n<li><code>color</code> (required): The color of the product.</li>\n<li><code>size</code> (required): The size of the product.</li>\n<li>If the request is successful, the server will respond with a status code of 201 (Created) and return the created shopping cart object in the response body.In case of any errors, appropriate error status codes and error messages will be returned.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","carts","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"eb174c1c-cffe-45e9-9bd3-41b197d7b550","name":"unahtorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"products\":[\n        {\n            \"productId\":\"6480d64caf38696d17f97d50\",\n            \"quantity\":4,\n            \"color\":\"blue\",\n            \"size\":\"XL\"\n        }\n        \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/carts/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"294"},{"key":"Date","value":"Thu, 29 Jun 2023 17:49:43 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"0cf6b754-6e95-4f11-968e-3d6d1cbd8fd9"},{"name":"get all carts","id":"3cf3fe83-024d-40bf-9394-7e15163b06cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/carts/getAll","description":"<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><code>page</code> (optional): The page number to retrieve. If not provided, defaults to page 1.</li>\n<li><code>size</code> (optional): The number of shopping carts to return per page. If not provided, defaults to 8.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li>Status Code: 200 (OK)</li>\n<li>Response Body: An object containing the following information:<ul>\n<li><code>carts</code>: An array of shopping cart objects, each containing the details of a shopping cart.</li>\n<li><code>totalPages</code>: The total number of pages based on the provided page size.</li>\n<li><code>currentPage</code>: The current page number.</li>\n<li><code>pageSize</code>: The number of shopping carts returned per page.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","carts","getAll"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"45f37e1d-54d9-4f07-b137-bb95302fa6d4","name":"unahtorized","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/carts/getAll"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"295"},{"key":"Date","value":"Thu, 29 Jun 2023 17:49:22 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"3cf3fe83-024d-40bf-9394-7e15163b06cf"},{"name":"user cart by id","id":"4e8d3f36-b04a-4228-a57e-b704cca0fd45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/carts/648b5e5e9142749d4d3ebfb7","description":"<p>Response Body: A shopping cart object containing the details of the user's shopping cart.</p>\n<ul>\n<li>(required): The user ID for which to retrieve the shopping cart.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","carts","648b5e5e9142749d4d3ebfb7"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"08728e16-619d-4075-a6a9-1309a9eabafd","name":"wrong user","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/carts/6470d42281544543a4576720"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-pljHtlo127JYJR4E/RYOPb6ucbw\""},{"key":"Date","value":"Wed, 31 May 2023 13:46:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\"\n}"},{"id":"38fd3f71-cd1e-4e3c-b14c-3f83af2f2c58","name":"user cart by id","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/carts/648b5e5e9142749d4d7ebfb7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"16"},{"key":"Date","value":"Wed, 28 Jun 2023 03:06:59 GMT"},{"key":"X-RateLimit-Reset","value":"1687921865"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"629"},{"key":"ETag","value":"W/\"275-jXX/xzWXpdGkf3Xx8WqUluY3pd0\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"64971d9a59c0798f880c175e\",\n    \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n    \"products\": [\n        {\n            \"productId\": \"6480d64caf38696d17f97d50\",\n            \"quantity\": 4,\n            \"color\": \"blue\",\n            \"size\": \"XL\",\n            \"_id\": \"6480d64caf38696d17f97d50\"\n        },\n        {\n            \"productId\": \"6480d642af38696d17f97d4a\",\n            \"quantity\": 3,\n            \"color\": \"yellow\",\n            \"size\": \"XL\",\n            \"_id\": \"6480d642af38696d17f97d4a\"\n        },\n        {\n            \"productId\": \"6480d655af38696d17f97d53\",\n            \"quantity\": 2,\n            \"color\": \"green\",\n            \"size\": \"XL\",\n            \"_id\": \"6480d655af38696d17f97d53\"\n        },\n        {\n            \"productId\": \"6480d636af38696d17f97d44\",\n            \"quantity\": 5,\n            \"color\": \"black\",\n            \"size\": \"XL\",\n            \"_id\": \"6480d636af38696d17f97d44\"\n        }\n    ],\n    \"createdAt\": \"2023-06-24T16:45:14.600Z\",\n    \"updatedAt\": \"2023-06-24T16:45:14.600Z\",\n    \"__v\": 0\n}"},{"id":"be2c86d3-ed4e-4649-a205-0c153085e17a","name":"user cart by id not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/carts/648b5e5e9142749d4d3ebfb7"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Wed, 28 Jun 2023 03:21:25 GMT"},{"key":"X-RateLimit-Reset","value":"1687923084"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-z6WjB4ebfePYl1sZjThKo7/eZuU\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User Not found\"\n}"},{"id":"5e532251-f440-4d58-aa30-c26397aa3a78","name":"unauthorized","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/carts/648b5e5e9142749d4d3ebfb7"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"296"},{"key":"Date","value":"Thu, 29 Jun 2023 17:48:56 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"4e8d3f36-b04a-4228-a57e-b704cca0fd45"},{"name":"edit cart","id":"31c36708-d610-4480-8c8a-628bb32dcfde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"http://localhost:4000/api/cart","description":"<p>This endpoint allows users to edit their shopping cart by providing the cart ID., the user must be the owner to edit the cart</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><code>cartId</code> (required): The ID of the cart to be edited.</li>\n</ul>\n<p><strong>Request Headers:</strong></p>\n<ul>\n<li><code>Authorization</code> (required): A valid JSON Web Token (JWT) representing the user's authentication credentials.</li>\n</ul>\n<p><strong>Request Body:</strong></p>\n<p>The request body should contain the updated details of the shopping cart.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e0a09954-2696-4c38-a3f0-0ad7b22e1d43","name":"unauthrorized user","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"products\":[\n        {\n            \"productId\":\"6470aeb29cda1ef0ae634419\",\n            \"quantity\":3\n        }\n        \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/carts/647653b643e7e55df9b4b5b2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Wed, 28 Jun 2023 03:31:24 GMT"},{"key":"X-RateLimit-Reset","value":"1687923658"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-pljHtlo127JYJR4E/RYOPb6ucbw\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\"\n}"},{"id":"a96f5016-b848-48a5-92ff-24fbf286ab7b","name":"edit cart sucess","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"products\":[\n        {\n            \"productId\":\"6470aeb29cda1ef0ae634419\",\n            \"quantity\":3\n        }\n        \n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/carts/update/64971d9a59c0798f880c175e"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"19"},{"key":"Date","value":"Wed, 28 Jun 2023 03:43:44 GMT"},{"key":"X-RateLimit-Reset","value":"1687924416"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"256"},{"key":"ETag","value":"W/\"100-pCGfDIRrZRNvLTv2Kb/DrAgAIz0\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"64971d9a59c0798f880c175e\",\n    \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n    \"products\": [\n        {\n            \"productId\": \"6470aeb29cda1ef0ae634419\",\n            \"quantity\": 3,\n            \"_id\": \"649bac7125fef8f7d7a1089b\"\n        }\n    ],\n    \"createdAt\": \"2023-06-24T16:45:14.600Z\",\n    \"updatedAt\": \"2023-06-28T03:43:45.027Z\",\n    \"__v\": 0\n}"}],"_postman_id":"31c36708-d610-4480-8c8a-628bb32dcfde"},{"name":"delete cart","id":"5e864e86-65b0-4a33-9825-44a815d7251b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/carts/delete/64971d9a59c0798f880c175e","description":"<p>delete cart by cart id the user must be the owner to delete the cart</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","carts","delete","64971d9a59c0798f880c175e"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0663dfcc-7100-4752-84bf-eed8a64b945c","name":"wrong user","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/carts/6470d42281544543a4576720"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-pljHtlo127JYJR4E/RYOPb6ucbw\""},{"key":"Date","value":"Wed, 31 May 2023 14:33:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized\"\n}"},{"id":"0a5674d2-1db3-45c0-80ce-a9b65dbadacd","name":"delete cart","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/carts/delete/64971d9a59c0798f880c175e"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"20"},{"key":"X-RateLimit-Remaining","value":"17"},{"key":"Date","value":"Wed, 28 Jun 2023 03:45:47 GMT"},{"key":"X-RateLimit-Reset","value":"1687924468"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"256"},{"key":"ETag","value":"W/\"100-pCGfDIRrZRNvLTv2Kb/DrAgAIz0\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"64971d9a59c0798f880c175e\",\n    \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n    \"products\": [\n        {\n            \"productId\": \"6470aeb29cda1ef0ae634419\",\n            \"quantity\": 3,\n            \"_id\": \"649bac7125fef8f7d7a1089b\"\n        }\n    ],\n    \"createdAt\": \"2023-06-24T16:45:14.600Z\",\n    \"updatedAt\": \"2023-06-28T03:43:45.027Z\",\n    \"__v\": 0\n}"},{"id":"63600801-22f6-4bb9-a862-1c183b8acd55","name":"unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/carts/delete/64971d9a59c0798f880c175e"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"297"},{"key":"Date","value":"Thu, 29 Jun 2023 17:48:16 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"5e864e86-65b0-4a33-9825-44a815d7251b"}],"id":"a5a520e5-ae1a-4158-83af-3bf6c2111914","description":"<p>The Shopping Cart section of the API allows users to manage their shopping carts. Here you will find the available operations for shopping carts.</p>\n<p>Next in this folder:</p>\n<ul>\n<li><strong>POST /carts/create</strong>: Create a new shopping cart</li>\n<li><strong>GET /carts/getAll</strong>: Get all shopping carts (requires admin permissions)</li>\n<li><strong>GET /carts/{userId}</strong>: Get a specific user's shopping cart by user ID</li>\n<li><strong>PUT /carts/update/{cartId}</strong>: Edit a shopping cart</li>\n<li><strong>DELETE /carts/delete/{cartId}</strong>: Delete a shopping cart</li>\n</ul>\n","_postman_id":"a5a520e5-ae1a-4158-83af-3bf6c2111914"},{"name":"Comments","item":[{"name":"Create Comment","id":"bce25735-ef40-468c-854f-877de6806349","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"calification\": 5,\n    \"description\": \"description field\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/comments/create/649745f03eda70c73d632b98","description":"<p>his endpoint allows authenticated users to create a new comment for a specific product.</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><code>productId</code> (required): The ID of the product for which the comment is being created.</li>\n</ul>\n<p><strong>Request Headers:</strong></p>\n<ul>\n<li><code>Authorization</code> (required): A valid JSON Web Token (JWT) representing the user's authentication credentials.</li>\n</ul>\n<p><strong>Request Body:</strong></p>\n<p>The request body must contain the following information:</p>\n<ul>\n<li><code>calification</code> (optional): The rating given by the user for the product (default: 5).</li>\n<li><code>description</code> (required): The comment text provided by the user (max length: 400).</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","comments","create","649745f03eda70c73d632b98"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"eb633ada-afa2-4f5e-b743-13be35971628","name":"create comment","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"calification\": 5,\n    \"description\": \"description field\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/comments/create/649745f03eda70c73d632b98"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Thu, 29 Jun 2023 00:10:15 GMT"},{"key":"X-RateLimit-Reset","value":"1687997981"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"207"},{"key":"ETag","value":"W/\"cf-jhgWpLsbH3ubziFPnW+2oDkyF0k\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n    \"calification\": 5,\n    \"description\": \"description field\",\n    \"_id\": \"649ccbe7c1b6f34f7f2f5bf4\",\n    \"createdAt\": \"2023-06-29T00:10:15.880Z\",\n    \"updatedAt\": \"2023-06-29T00:10:15.880Z\",\n    \"__v\": 0\n}"},{"id":"f80c477d-1a88-464c-b71f-e1eda1026888","name":"unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{ \n    \"calification\": 5,\n    \"description\": \"description field\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/comments/create/649745f03eda70c73d632b98"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Thu, 29 Jun 2023 17:46:59 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"bce25735-ef40-468c-854f-877de6806349"},{"name":"Get Comments by Product","id":"1ed841b6-956b-4fba-9b8a-80d7b3129a62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/comments/getAll","description":"<p>This endpoint allows authenticated users to retrieve all comments associated with a specific product.</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><code>productId</code> (required): The ID of the product for which comments are being retrieved.</li>\n</ul>\n<p><strong>Request Headers:</strong></p>\n<ul>\n<li><code>Authorization</code> (required): A valid JSON Web Token (JWT) representing the user's authentication credentials.</li>\n</ul>\n<p><strong>Query Parameters:</strong></p>\n<ul>\n<li><code>page</code> (optional): The page number to retrieve (default: 1).</li>\n<li><code>size</code> (optional): The number of comments to retrieve per page (default: 10).</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li>Status Code: 200 (OK)</li>\n<li>Response Body: An array of comment objects.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["api","comments","getAll"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"197299ba-5a24-4565-94d5-4cec1556e767","name":"get comment by productId","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/comments/getAll/649745f03eda70c73d632b98"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Thu, 29 Jun 2023 00:31:52 GMT"},{"key":"X-RateLimit-Reset","value":"1687999312"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"209"},{"key":"ETag","value":"W/\"d1-rsWIQjZ+lOEYzNgyvNM4LpR36CQ\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"649ccbe7c1b6f34f7f2f5bf4\",\n        \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n        \"calification\": 5,\n        \"description\": \"description field\",\n        \"createdAt\": \"2023-06-29T00:10:15.880Z\",\n        \"updatedAt\": \"2023-06-29T00:10:15.880Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"1ed841b6-956b-4fba-9b8a-80d7b3129a62"},{"name":"Delete Comment","id":"a5ccac34-567f-4ef5-b7b7-07865956b0af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"description":"<p>This endpoint allows authenticated users to delete a comment by providing the comment ID.</p>\n<p><strong>Request Parameters:</strong></p>\n<ul>\n<li><code>commentId</code> (required): The ID of the comment to be deleted.</li>\n</ul>\n<p><strong>Request Headers:</strong></p>\n<ul>\n<li><code>Authorization</code> (required): A valid JSON Web Token (JWT) representing the user's authentication credentials.</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li>Status Code: 200 (OK)</li>\n<li>Response Body: A success message indicating that the comment has been deleted successfully.</li>\n</ul>\n","urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"2976d18c-0e60-40ab-b2a4-fbff4c0fa4b9","name":"Delete comment","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/comments/delete/649ccbe7c1b6f34f7f2f5bf4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"299"},{"key":"Date","value":"Thu, 29 Jun 2023 00:57:33 GMT"},{"key":"X-RateLimit-Reset","value":"1688000852"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"207"},{"key":"ETag","value":"W/\"cf-sizi9Junb7VSU42ETsv+5hE4SOM\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"649ccbe7c1b6f34f7f2f5bf4\",\n    \"userId\": \"648b5e5e9142749d4d7ebfb7\",\n    \"calification\": 5,\n    \"description\": \"description field\",\n    \"createdAt\": \"2023-06-29T00:10:15.880Z\",\n    \"updatedAt\": \"2023-06-29T00:10:15.880Z\",\n    \"__v\": 0\n}"},{"id":"b67c87e2-990d-486d-8c5d-0fd4222d2e32","name":"unahtorized","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/comments/delete/649ccbe7c1b6f34f7f2f5bf4"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-RateLimit-Limit","value":"300"},{"key":"X-RateLimit-Remaining","value":"298"},{"key":"Date","value":"Thu, 29 Jun 2023 17:47:32 GMT"},{"key":"X-RateLimit-Reset","value":"1688061390"},{"key":"Content-Security-Policy","value":"default-src 'self';script-src 'self' 'unsafe-inline' cdnjs.cloudflare.com;style-src 'self' 'unsafe-inline';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src-attr 'none';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Expose-Headers","value":"Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kQrOJ7ERQdc6WYpC1+DAniyAqYg\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthorized: Missing or invalid authorization header\"\n}"}],"_postman_id":"a5ccac34-567f-4ef5-b7b7-07865956b0af"}],"id":"c374ed4f-e75a-49c5-88fa-d3425927bbbb","description":"<p>This folder contains the implementation of the Comment feature, which allows users to post comments on products. The Comment feature provides endpoints for creating comments, retrieving comments by product, and deleting comments.</p>\n<p><strong>NEXT IN THIS FOLDER</strong></p>\n<ul>\n<li><strong>POST</strong><ul>\n<li>Create Comment</li>\n</ul>\n</li>\n<li><strong>GET</strong><ul>\n<li>Get Comments by Product</li>\n</ul>\n</li>\n<li><strong>DEL</strong><ul>\n<li>Delete Comment</li>\n</ul>\n</li>\n</ul>\n<p>Only authenticated users can access these endpoints, and they can only<br />perform actions on their own comments or comments associated with the<br />products they have access to</p>\n","_postman_id":"c374ed4f-e75a-49c5-88fa-d3425927bbbb"}]}