{"info":{"_postman_id":"479d8016-d4b7-4b72-8911-c2bc869fd7cb","name":"manage-pass-api","description":"<html><head></head><body><h2 id=\"password-management-app-api\">Password Management App API</h2>\n<p>This REST API enables user to perform the following features:</p>\n<ol>\n<li>user able to signup / signin</li>\n<li>user able to add password data: account name, username/email, password</li>\n<li>user able to delete password data</li>\n<li>user able to update password data</li>\n<li>user able to get lists of password datas (list of account name)</li>\n<li>user able to get single password data (with username and password)</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5176663","collectionId":"479d8016-d4b7-4b72-8911-c2bc869fd7cb","publishedId":"SzYW1zAw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"AA00FF"},"publishDate":"2020-03-27T08:36:18.000Z"},"item":[{"name":"Authentication","item":[{"name":"user signup","id":"2326b9ee-2da7-492e-ab2d-dccd0179eb9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"test5@test.com\",\n\t\"password\": \"pass\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/signup","description":"<p>This endpoint allows sign-up new user (register new user in the database). </p>\n<h2 id=\"parameters\">Parameters:  </h2>\n<ul>\n<li>email <em>(<strong>required</strong>)</em> -- <code>string</code> User email address for Password Management app account.  </li>\n<li>password <em>(<strong>required</strong>)</em> -- <code>string</code> User credential for Password Management app account.</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["auth","signup"],"query":[],"variable":[]}},"response":[{"id":"e808b07a-ff45-4f3e-b9ca-ec5d05a375e0","name":"user signup example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"test5@test.com\",\n\t\"password\": \"pass\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/auth/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-l5sJNWHCnJ0Zj/OUnilAkSo2/F0\""},{"key":"Date","value":"Thu, 26 Mar 2020 04:46:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"new user created!\"\n}"}],"_postman_id":"2326b9ee-2da7-492e-ab2d-dccd0179eb9f"},{"name":"user signin","id":"4345d80b-599e-4c5b-9e28-2ecf72dfb3e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"test5@test.com\",\n\t\"password\": \"pass\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/signin","description":"<p>This endpoint allows sign-in registered user to Password Management app.</p>\n<h2 id=\"parameters\">Parameters:  </h2>\n<ul>\n<li>email <em>(<strong>required</strong>)</em> -- <code>string</code> Registered user email address for Password Management app account.  </li>\n<li>password <em>(<strong>required</strong>)</em> -- <code>string</code> Registered user credential for Password Management app account.</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string, token: string}</code> when succeeds (token is JWT token created upon successful login) </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["auth","signin"],"query":[],"variable":[]}},"response":[{"id":"f2b9fc57-6446-45a9-a66f-ba4bd48b42b0","name":"user signin example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"test5@test.com\",\n\t\"password\": \"pass\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/auth/signin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"222"},{"key":"ETag","value":"W/\"de-FEIu6DgVEZLPSJlf2cSFDLte7fM\""},{"key":"Date","value":"Thu, 26 Mar 2020 04:44:20 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzMyZjRlZjRmOWIwOWI4ZjQ4ZTIyIiwiaWF0IjoxNTg1MTk3ODYwLCJleHAiOjE1ODUyMDE0NjB9.LFh0kZjXYH6T7rDg73fQbPm3ULiC_wLK7Tkn2b_n9_E\",\n    \"message\": \"user login successfully!\"\n}"}],"_postman_id":"4345d80b-599e-4c5b-9e28-2ecf72dfb3e2"},{"name":"verify token","id":"85a91f05-db62-4e4b-b2f8-e13c58bd78d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjEyMjA5LCJleHAiOjE1ODUyMTU4MDl9.S548j-Msw_8ioGCMNn3D8CGaqNF9mBk7NjLFZwTE3bY","type":"text"}],"url":"/isauth","description":"<p>This endpoint allows sign-in user to verify if the current token is valid.  </p>\n<blockquote>\n<p>Valid token is needed to perform operations such as add, delete, update, get full list of datas, get single data.</p>\n</blockquote>\n<h2 id=\"header\">Header </h2>\n<ul>\n<li>Authorization -- <code>string</code> Use Bearer Authentication with format <code>Bearer {{token}}</code>. Token is JWT token you received upon successful login.</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["isauth"],"query":[],"variable":[]}},"response":[{"id":"96eb52b3-381a-46f3-801d-7c16e3166ca1","name":"verify token example","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjEyMjA5LCJleHAiOjE1ODUyMTU4MDl9.S548j-Msw_8ioGCMNn3D8CGaqNF9mBk7NjLFZwTE3bY","type":"text"}],"url":"localhost:3001/isauth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"ETag","value":"W/\"2-vyGp6PvFo4RvsFtPoIWeCReyIC8\""},{"key":"Date","value":"Thu, 26 Mar 2020 08:44:11 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"85a91f05-db62-4e4b-b2f8-e13c58bd78d8"}],"id":"f5dc6cbf-f49f-4c5e-8553-83228e834e7a","_postman_id":"f5dc6cbf-f49f-4c5e-8553-83228e834e7a","description":""},{"name":"Password Data","item":[{"name":"add password data","id":"5be96174-cb4c-4ac8-b8f3-a7c635e65d4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjAxODU0LCJleHAiOjE1ODUyMDU0NTR9.q8CWvPVvbpgU7_0KMp6bGT7Qn-9EzTokJXZkQxNJUmo","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"accountname\": \"Trello\",\n\t\"username\": \"mytrello@gmail.com\",\n\t\"password\": \"pass123\"\n}","options":{"raw":{"language":"json"}}},"url":"/password-data/add","description":"<p>This endpoint allows sign-in user to add password data(s).</p>\n<h2 id=\"header\">Header </h2>\n<ul>\n<li>Authorization -- <code>string</code> Use Bearer Authentication with format <code>Bearer {{token}}</code>. Token is JWT token you received upon successful login.</li>\n</ul>\n<h2 id=\"parameters\">Parameters:  </h2>\n<ul>\n<li>accountname <em>(<strong>required</strong>)</em> -- <code>string</code> Account name of the password data   </li>\n<li>username <em>(<strong>required</strong>)</em> -- <code>string</code> Email of the password data</li>\n<li>password <em>(<strong>required</strong>)</em> -- <code>string</code> Password credential of the password data</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["password-data","add"],"query":[],"variable":[]}},"response":[{"id":"ebcab358-7dd0-4dca-b11a-d062826853bd","name":"add password data example","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjAxODU0LCJleHAiOjE1ODUyMDU0NTR9.q8CWvPVvbpgU7_0KMp6bGT7Qn-9EzTokJXZkQxNJUmo","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"accountname\": \"Gmail_Main\",\n\t\"username\": \"mygmailmain@gmail.com\",\n\t\"password\": \"pass123\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/password-data/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-johRi32MDqJDEbTZGwwco3YOj74\""},{"key":"Date","value":"Thu, 26 Mar 2020 06:20:01 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"new password data created!\"\n}"}],"_postman_id":"5be96174-cb4c-4ac8-b8f3-a7c635e65d4a"},{"name":"delete password data","id":"4fad07ab-5559-497a-9079-d7bf50551ed1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjAxODU0LCJleHAiOjE1ODUyMDU0NTR9.q8CWvPVvbpgU7_0KMp6bGT7Qn-9EzTokJXZkQxNJUmo","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"_id\": \"5e7c4cceef4f9b09b8f48e2a\"\n}","options":{"raw":{"language":"json"}}},"url":"/password-data/delete","description":"<p>This endpoint allows sign-in to delete password data.</p>\n<h2 id=\"header\">Header </h2>\n<ul>\n<li>Authorization -- <code>string</code> Use Bearer Authentication with format <code>Bearer {{token}}</code>. Token is JWT token you received upon successful login.</li>\n</ul>\n<h2 id=\"parameters\">Parameters:  </h2>\n<ul>\n<li>_id <em>(<strong>required</strong>)</em> -- <code>string</code> ID of the password data (to be deleted)</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["password-data","delete"],"query":[],"variable":[]}},"response":[{"id":"2f736223-b10a-4ae4-b9b1-68768c36635c","name":"delete password data example","originalRequest":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjAxODU0LCJleHAiOjE1ODUyMDU0NTR9.q8CWvPVvbpgU7_0KMp6bGT7Qn-9EzTokJXZkQxNJUmo","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"_id\": \"5e7c4cceef4f9b09b8f48e2a\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/password-data/delete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-Zwl0JulJaGlmuq+p2412rt61YtM\""},{"key":"Date","value":"Thu, 26 Mar 2020 06:46:52 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"password data deleted!\"\n}"}],"_postman_id":"4fad07ab-5559-497a-9079-d7bf50551ed1"},{"name":"update password data","id":"8dc2d81f-1035-4993-9dc0-b66918f15ce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjA1OTM5LCJleHAiOjE1ODUyMDk1Mzl9.MBdecNJ90JB0CL2CPbZnJrd2BTX1BO94FAGxhbFo-n0","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"_id\": \"5e7c4991ef4f9b09b8f48e26\",\n\t\"accountname\": \"Gmail\",\n\t\"username\": \"mygmail@gmail.com\",\n\t\"password\": \"pass12345\"\n}","options":{"raw":{"language":"json"}}},"url":"/password-data/update","description":"<p>This endpoint allows sign-in user to update password data.</p>\n<h2 id=\"header\">Header </h2>\n<ul>\n<li>Authorization -- <code>string</code> Use Bearer Authentication with format <code>Bearer {{token}}</code>. Token is JWT token you received upon successful login.</li>\n</ul>\n<h2 id=\"parameters\">Parameters:  </h2>\n<ul>\n<li>_id <em>(<strong>required</strong>)</em> -- <code>string</code> ID of the password data (to be updated)</li>\n<li>accountname <em>(<strong>required</strong>)</em> -- <code>string</code> New account name of the password data   </li>\n<li>username <em>(<strong>required</strong>)</em> -- <code>string</code> New email of the password data</li>\n<li>password <em>(<strong>required</strong>)</em> -- <code>string</code> New password credential of the password data</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["password-data","update"],"query":[],"variable":[]}},"response":[{"id":"bea51a15-b1d0-4831-be1d-f01bf6b2db4b","name":"update password data example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjA1OTM5LCJleHAiOjE1ODUyMDk1Mzl9.MBdecNJ90JB0CL2CPbZnJrd2BTX1BO94FAGxhbFo-n0","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"_id\": \"5e7c4991ef4f9b09b8f48e26\",\n\t\"accountname\": \"Gmail\",\n\t\"username\": \"mygmail@gmail.com\",\n\t\"password\": \"pass12345\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3001/password-data/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-O9UmVDFjUrh4c/e8LOOaaA8iJoM\""},{"key":"Date","value":"Thu, 26 Mar 2020 06:59:14 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"password data updated!\"\n}"}],"_postman_id":"8dc2d81f-1035-4993-9dc0-b66918f15ce4"},{"name":"full list of password datas","id":"35a3a7ff-82e0-4b9e-95fc-c39192297ec7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjA1OTM5LCJleHAiOjE1ODUyMDk1Mzl9.MBdecNJ90JB0CL2CPbZnJrd2BTX1BO94FAGxhbFo-n0","type":"text"}],"url":"/password-data/list","description":"<p>This endpoint allows sign-in user to get full list of their saved password datas.</p>\n<h2 id=\"header\">Header </h2>\n<ul>\n<li>Authorization -- <code>string</code> Use Bearer Authentication with format <code>Bearer {{token}}</code>. Token is JWT token you received upon successful login.</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string, passwordDatas: any[]}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["password-data","list"],"query":[],"variable":[]}},"response":[{"id":"576a97ea-ed7e-488b-a9e8-deee23afdedf","name":"full list of password datas example","originalRequest":{"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjA1OTM5LCJleHAiOjE1ODUyMDk1Mzl9.MBdecNJ90JB0CL2CPbZnJrd2BTX1BO94FAGxhbFo-n0","type":"text"}],"url":"localhost:3001/password-data/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"667"},{"key":"ETag","value":"W/\"29b-qxdOaFMwFJyy2tKshdXgmEYD+z0\""},{"key":"Date","value":"Thu, 26 Mar 2020 07:16:33 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"password dataS!\",\n    \"passwordDatas\": [\n        {\n            \"_id\": \"5e7c4991ef4f9b09b8f48e26\",\n            \"accountname\": \"Gmail\",\n            \"username\": \"mygmail@gmail.com\",\n            \"password\": \"pass12345\",\n            \"owner\": \"5e7c342bef4f9b09b8f48e24\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e7c4c9cef4f9b09b8f48e27\",\n            \"accountname\": \"Bitbucket\",\n            \"username\": \"mybitbucket@gmail.com\",\n            \"password\": \"pass123\",\n            \"owner\": \"5e7c342bef4f9b09b8f48e24\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e7c4ca7ef4f9b09b8f48e28\",\n            \"accountname\": \"Github\",\n            \"username\": \"mygithub@gmail.com\",\n            \"password\": \"pass123\",\n            \"owner\": \"5e7c342bef4f9b09b8f48e24\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e7c4cb4ef4f9b09b8f48e29\",\n            \"accountname\": \"Slack\",\n            \"username\": \"myslack@gmail.com\",\n            \"password\": \"pass123\",\n            \"owner\": \"5e7c342bef4f9b09b8f48e24\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"35a3a7ff-82e0-4b9e-95fc-c39192297ec7"},{"name":"single password data","id":"993060dd-49e9-4bb6-9713-3188d2d3ca8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjA1OTM5LCJleHAiOjE1ODUyMDk1Mzl9.MBdecNJ90JB0CL2CPbZnJrd2BTX1BO94FAGxhbFo-n0","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"/password-data/list/{password_data_id}","description":"<p>This endpoint allows sign-in user to get single data of their saved password datas.</p>\n<h2 id=\"header\">Header </h2>\n<ul>\n<li>Authorization -- <code>string</code> Use Bearer Authentication with format <code>Bearer {{token}}</code>. Token is JWT token you received upon successful login.</li>\n</ul>\n<h2 id=\"uri-param\">URI Param:  </h2>\n<ul>\n<li>password_data_id <em>(<strong>required</strong>)</em> -- <code>string</code> ID of the password data to get</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string, passwordDatas: any}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["password-data","list","{password_data_id}"],"query":[],"variable":[]}},"response":[{"id":"fb978e4f-cfc7-470e-b5c3-a87e73c41a63","name":"single password data example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU3YzM0MmJlZjRmOWIwOWI4ZjQ4ZTI0IiwiaWF0IjoxNTg1MjA1OTM5LCJleHAiOjE1ODUyMDk1Mzl9.MBdecNJ90JB0CL2CPbZnJrd2BTX1BO94FAGxhbFo-n0","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"localhost:3001/password-data/list/5e7c4c9cef4f9b09b8f48e27"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"203"},{"key":"ETag","value":"W/\"cb-i3HTalUaPh4UZSkHIWLYAw0Tps4\""},{"key":"Date","value":"Thu, 26 Mar 2020 07:25:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"password data!\",\n    \"passwordData\": {\n        \"_id\": \"5e7c4c9cef4f9b09b8f48e27\",\n        \"accountname\": \"Bitbucket\",\n        \"username\": \"mybitbucket@gmail.com\",\n        \"password\": \"pass123\",\n        \"owner\": \"5e7c342bef4f9b09b8f48e24\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"993060dd-49e9-4bb6-9713-3188d2d3ca8e"},{"name":"paginated list of password datas","id":"7ff98c98-945a-497d-b214-e7614ffd905f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU1YTdiZjE1YWE0ZjIzM2Y4YmI2NmVlIiwiaWF0IjoxNTg1Mjk3ODc4LCJleHAiOjE1ODUzMDE0Nzh9.PE_aefaVPX222FVY2xk4CDt_wOuyD6kq6RFQc5tTZi4","type":"text"}],"url":"/password-data/list?page={page_number}&limit={max_item_per_page}","description":"<p>This endpoint allows sign-in user to get paginated list of their saved password datas.</p>\n<h2 id=\"header\">Header </h2>\n<ul>\n<li>Authorization -- <code>string</code> Use Bearer Authentication with format <code>Bearer {{token}}</code>. Token is JWT token you received upon successful login.</li>\n</ul>\n<h2 id=\"query-parameter\">Query Parameter:  </h2>\n<ul>\n<li>page_number <em>(<strong>optional</strong>)</em> -- <code>number</code> Active page number  </li>\n<li>max_item_per_page <em>(<strong>optional</strong>)</em> -- <code>number</code> Max. number of items to be shown in a single page</li>\n</ul>\n<h2 id=\"response\">Response:  </h2>\n<ul>\n<li><code>{message: string, passwordDatas: any[]}</code> when succeeds  </li>\n<li><code>Error</code> when fails</li>\n</ul>\n<h2 id=\"example\">Example:  </h2>\n","urlObject":{"path":["password-data","list"],"query":[{"key":"page","value":"{page_number}"},{"key":"limit","value":"{max_item_per_page}"}],"variable":[]}},"response":[{"id":"884c5cff-0d25-4d92-aa50-ee62fb8f9a4b","name":"paginated list of password datas example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiNWU1YTdiZjE1YWE0ZjIzM2Y4YmI2NmVlIiwiaWF0IjoxNTg1Mjk3ODc4LCJleHAiOjE1ODUzMDE0Nzh9.PE_aefaVPX222FVY2xk4CDt_wOuyD6kq6RFQc5tTZi4","type":"text"}],"url":{"raw":"localhost:3001/password-data/list?page=2&limit=5","host":["localhost"],"port":"3001","path":["password-data","list"],"query":[{"key":"page","value":"2"},{"key":"limit","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"POST,GET"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"752"},{"key":"ETag","value":"W/\"2f0-Rn6odAiNvn8XQWf+DdwgRqgPQ2E\""},{"key":"Date","value":"Fri, 27 Mar 2020 08:40:57 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"password dataS!\",\n    \"passwordDatas\": [\n        {\n            \"_id\": \"5e7cdccfcfbc3c1845095adf\",\n            \"accountname\": \"account1\",\n            \"username\": \"test1\",\n            \"password\": \"test1\",\n            \"owner\": \"5e5a7bf15aa4f233f8bb66ee\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e7cdcdbcfbc3c1845095ae0\",\n            \"accountname\": \"account2\",\n            \"username\": \"test1\",\n            \"password\": \"test1\",\n            \"owner\": \"5e5a7bf15aa4f233f8bb66ee\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e7cdce6cfbc3c1845095ae1\",\n            \"accountname\": \"account3\",\n            \"username\": \"test1\",\n            \"password\": \"test1\",\n            \"owner\": \"5e5a7bf15aa4f233f8bb66ee\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e7cdcf1cfbc3c1845095ae2\",\n            \"accountname\": \"account4\",\n            \"username\": \"test1\",\n            \"password\": \"test1\",\n            \"owner\": \"5e5a7bf15aa4f233f8bb66ee\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5e7cdcfdcfbc3c1845095ae3\",\n            \"accountname\": \"account5\",\n            \"username\": \"test1\",\n            \"password\": \"test1\",\n            \"owner\": \"5e5a7bf15aa4f233f8bb66ee\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"7ff98c98-945a-497d-b214-e7614ffd905f"}],"id":"92a222f4-f1d8-467f-898e-ce311a6f4cb7","_postman_id":"92a222f4-f1d8-467f-898e-ce311a6f4cb7","description":""}],"event":[{"listen":"prerequest","script":{"id":"574e5c6a-a262-4a77-b84a-adf8bc142724","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6007952d-0327-418f-8233-2ebdd4e29649","type":"text/javascript","exec":[""]}}]}