{"info":{"_postman_id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","name":"API REST shortURL","description":"<html><head></head><body><p>API REST</p>\n<ul>\n<li>Node.js</li>\n<li>Express</li>\n<li>MongoDB</li>\n<li>JWT</li>\n<li>Express validator</li>\n</ul>\n<p>Creada en conjunto con la comunidad.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6804314","collectionId":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","publishedId":"UzBqo4tG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-23T17:15:00.000Z"},"item":[{"name":"http://localhost:5000/api/v1/auth/register","id":"b401edf8-dcf7-414d-9274-1e76136d55e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rigo@test.com\",\r\n    \"password\": \"123123\",\r\n    \"repassword\": \"123123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/auth/register","description":"<p>Register user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","name":"API REST shortURL","type":"collection"}},"urlObject":{"protocol":"http","port":"5000","path":["api","v1","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b401edf8-dcf7-414d-9274-1e76136d55e8"},{"name":"http://localhost:5000/api/v1/auth/login","id":"d6ea4143-70e1-42a6-a4d0-42d730e03c46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rigo@test.com\",\r\n    \"password\": \"123123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/auth/login","description":"<p>Login user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","name":"API REST shortURL","type":"collection"}},"urlObject":{"protocol":"http","port":"5000","path":["api","v1","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6ea4143-70e1-42a6-a4d0-42d730e03c46"},{"name":"http://localhost:5000/api/v1/links/","id":"2b916874-529c-4e80-ad5f-c3d86db58144","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/v1/links/","description":"<p>Obtener todos los links</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","links",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b916874-529c-4e80-ad5f-c3d86db58144"},{"name":"http://localhost:5000/api/v1/links/","id":"079ac96b-8c1d-44ad-bbab-4eb83df82132","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"longLink\": \"https://learning.postman.com/docs/publishing-your-api/documenting-your-api/\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/links/","description":"<p>Crear nuevo link</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","links",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"079ac96b-8c1d-44ad-bbab-4eb83df82132"},{"name":"http://localhost:5000/api/v1/links/Gaq9zi","id":"11536992-3be7-4586-980f-6267e1c7e667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/v1/links/Gaq9zi","description":"<p>Obtener único link</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","links","Gaq9zi"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"11536992-3be7-4586-980f-6267e1c7e667"},{"name":"http://localhost:5000/api/v1/links/62b49d590123586acf03bb65","id":"7b69853c-9804-4fb2-b8a9-1b89ab373903","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"longLink\": \"https://www.google.com/search?q=postman+documenter&rlz=1C1UUXU_esCL995CL995&oq=postman+doc&aqs=chrome.4.69i57j0i512l8.8005j0j7&sourceid=chrome&ie=UTF-8\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/links/62b49d590123586acf03bb65","description":"<p>Actualizar link</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","links","62b49d590123586acf03bb65"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7b69853c-9804-4fb2-b8a9-1b89ab373903"},{"name":"http://localhost:5000/api/v1/links/62b49d590123586acf03bb65","id":"552f7edd-8ee7-48ff-98d6-e3c3fbc9e609","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/links/62b49d590123586acf03bb65","description":"<p>Remover link</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","v1","links","62b49d590123586acf03bb65"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"552f7edd-8ee7-48ff-98d6-e3c3fbc9e609"},{"name":"http://localhost:5000/api/v1/auth/logout","id":"97a284c3-3754-4bb3-8b61-3d32aca055f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/auth/logout","description":"<p>Logout user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","name":"API REST shortURL","type":"collection"}},"urlObject":{"protocol":"http","port":"5000","path":["api","v1","auth","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"97a284c3-3754-4bb3-8b61-3d32aca055f6"},{"name":"http://localhost:5000/api/v1/auth/refresh","id":"be8d37a8-6b5a-4d0b-823d-a21635c7cbb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/auth/refresh","description":"<p>Refresh token</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","id":"151b8784-b87f-4b7d-a863-c4d8a85cfe6f","name":"API REST shortURL","type":"collection"}},"urlObject":{"protocol":"http","port":"5000","path":["api","v1","auth","refresh"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"be8d37a8-6b5a-4d0b-823d-a21635c7cbb4"}],"auth":{"type":"bearer","bearer":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"59cc7e6a-2459-4390-ac34-fb03bfca043e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e65e627-8a1e-4fbb-be52-6272255a4955","type":"text/javascript","exec":[""]}}]}