{"info":{"_postman_id":"d064bf65-84f3-4efe-9312-1725d923589b","name":"users","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"24272923","collectionId":"d064bf65-84f3-4efe-9312-1725d923589b","publishedId":"2s8ZDczfN5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-26T01:11:00.000Z"},"item":[{"name":"SignUp","id":"3ee7637e-3975-4904-a45f-c72b397331f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\",\r\n    \"email\": \"test0@gmail.com\",\r\n    \"password\": \"testing123\",\r\n    \"passwordConfirm\": \"testing123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/signup","urlObject":{"port":"3000","path":["users","signup"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ee7637e-3975-4904-a45f-c72b397331f7"},{"name":"Login","event":[{"listen":"test","script":{"exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript","id":"23455a53-fe52-4be6-8392-93615111c63d"}}],"id":"b7e53b51-5aa1-422e-9fb4-dbae9105e593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"test0@gmail.com\",\r\n    \"password\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/login","urlObject":{"port":"3000","path":["users","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b7e53b51-5aa1-422e-9fb4-dbae9105e593"},{"name":"Forgot Password (Generate reset token)","event":[{"listen":"test","script":{"exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript","id":"b1fcd3f1-0f79-440f-a037-6a878346659a"}}],"id":"df9b7973-7eb0-4df4-bf0b-b550d0f6099e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"127.0.0.1:3000/users/forgotPassword","urlObject":{"port":"3000","path":["users","forgotPassword"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"df9b7973-7eb0-4df4-bf0b-b550d0f6099e"},{"name":"Forgot Password (Use reset token) Copy","event":[{"listen":"test","script":{"exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript","id":"187966f9-a1d2-4066-933a-a558132ee86c"}}],"id":"fa53fc2f-dc01-4f3c-bd90-9cd3d5809dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"newPassword\": \"test\",\r\n    \"newPasswordConfirm\": \"test\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/resetPassword/:token","urlObject":{"port":"3000","path":["users","resetPassword",":token"],"host":["127","0","0","1"],"query":[],"variable":[{"id":"1a458bf5-9dc1-4517-beca-84dcc99cb9af","type":"any","value":"","key":"token"}]}},"response":[],"_postman_id":"fa53fc2f-dc01-4f3c-bd90-9cd3d5809dd4"},{"name":"Update my account","id":"edcd0c4e-fa56-409e-9dc4-3d559903be34","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n        \"password\": \"testing123\",\r\n        \"name\": \"billy\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/updateMyAccount","urlObject":{"port":"3000","path":["users","updateMyAccount"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"edcd0c4e-fa56-409e-9dc4-3d559903be34"},{"name":"Update my password","id":"3c81ba29-9001-46d8-badb-cf1faad92b31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"currentPassword\": \"testing123\",\r\n    \"newPassword\": \"testing1234\",\r\n    \"newPasswordConfirm\": \"testing1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/updateMyPassword","urlObject":{"port":"3000","path":["users","updateMyPassword"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c81ba29-9001-46d8-badb-cf1faad92b31"},{"name":"Delete my account","id":"21fea4d4-c517-463a-8d85-f197cebefe3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"passwordCurrent\": \"enfoteam\",\r\n    \"password\": \"enfote13\",\r\n    \"passwordConfirm\": \"enfote13\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/:id","urlObject":{"port":"3000","path":["users",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"id":"2ff19b97-8cbd-4332-af49-fff7e10f91c8","type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"21fea4d4-c517-463a-8d85-f197cebefe3b"},{"name":"Get users","id":"71e51a6c-d1f2-442a-9b45-a20ece77774d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"passwordCurrent\": \"enfoteam\",\r\n    \"password\": \"enfote13\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/","urlObject":{"port":"3000","path":["users",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"71e51a6c-d1f2-442a-9b45-a20ece77774d"},{"name":"Get single user","id":"237e7068-a242-4c5c-92f3-1a85815d0cbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"127.0.0.1:3000/users/:id","urlObject":{"port":"3000","path":["users",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"id":"2c553a58-06a0-4bec-9b97-f61e3be08235","type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"237e7068-a242-4c5c-92f3-1a85815d0cbf"},{"name":"Update single user","id":"112c73c0-5ca8-436a-9778-c27e976b56ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PATCH","header":[],"url":"127.0.0.1:3000/users/:id","urlObject":{"port":"3000","path":["users",":id"],"host":["127","0","0","1"],"query":[],"variable":[{"id":"d39b5304-3797-4ed5-abc1-c25660e803cc","type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"112c73c0-5ca8-436a-9778-c27e976b56ab"},{"name":"Get my account","id":"281736db-21c3-4741-8548-dbfeadacc34b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/getMyAccount","urlObject":{"port":"3000","path":["users","getMyAccount"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"281736db-21c3-4741-8548-dbfeadacc34b"},{"name":"Logout","id":"f82607bd-4aab-4672-a55e-7a872e525ea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:3000/users/getMyAccount","urlObject":{"port":"3000","path":["users","getMyAccount"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f82607bd-4aab-4672-a55e-7a872e525ea7"}]}