{"info":{"_postman_id":"55ed4f64-e0ab-46fd-87f1-ca690abf772a","name":"node-url-shortener","description":"<html><head></head><body><p>URL Shortener built in NodeJS</p>\n<h2 id=\"features\">Features:</h2>\n<ol>\n<li>All CRUD Operations</li>\n<li>Creation of default short-endpoint as well as custom endpoint for the long URL</li>\n<li>Pagination</li>\n<li>Sorting according to latest date of creation</li>\n</ol>\n<p>For more visit the GitHub repository <a href=\"https://github.com/dhairyaostwal/node-url-shortener\">here</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14800951","collectionId":"55ed4f64-e0ab-46fd-87f1-ca690abf772a","publishedId":"2s7Z12F3fE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-20T11:15:47.000Z"},"item":[{"name":"Get all links","id":"3413260a-981e-4054-bc12-e2ce9fef8663","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/links","urlObject":{"path":["links"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3413260a-981e-4054-bc12-e2ce9fef8663"},{"name":"Get a particular link","id":"12e38309-a37c-4218-9f00-ec2892a7c0d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/links/_vEEH0UY3","urlObject":{"path":["links","_vEEH0UY3"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"12e38309-a37c-4218-9f00-ec2892a7c0d5"},{"name":"Get URL using custom endpoint","id":"ea0701c9-0f0c-4e39-8e55-91f82d49f266","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/links/custom/portfolio-website","urlObject":{"path":["links","custom","portfolio-website"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea0701c9-0f0c-4e39-8e55-91f82d49f266"},{"name":"Paginated GET Request","id":"8131a71e-086d-4723-8cd3-86abfed68bb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/links?page=1&limit=2","urlObject":{"path":["links"],"host":["{{URL}}"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"2"}],"variable":[]}},"response":[],"_postman_id":"8131a71e-086d-4723-8cd3-86abfed68bb8"},{"name":"Get all links by latest created date","id":"af94328b-5a5e-47f9-90df-dc7af95aadda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/links?sort=desc","urlObject":{"path":["links"],"host":["{{URL}}"],"query":[{"key":"sort","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"af94328b-5a5e-47f9-90df-dc7af95aadda"},{"name":"Create a new Short URL","id":"06ccd74d-219e-40ca-ba5a-aad4f4424b8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"original_link\":\"https://leetcode.com/\",\n    \"custom_end_param\":\"leetcode\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/links","urlObject":{"path":["links"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"06ccd74d-219e-40ca-ba5a-aad4f4424b8e"},{"name":"Edit a link","id":"dea1a53f-ae31-4669-8729-8141fba2b72b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"custom_end_param\": \"nodejs-url-shortener-tutorial\"\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/links/A-h0zQZPe","urlObject":{"path":["links","A-h0zQZPe"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dea1a53f-ae31-4669-8729-8141fba2b72b"},{"name":"Delete a link","id":"f82c5b7e-1587-4499-9cc5-3fade7699da7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/links/_KJalt182","description":"<p>Below is the output response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"msg\": \"Task deleted successfully\"\n}\n\n</code></pre>\n","urlObject":{"path":["links","_KJalt182"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f82c5b7e-1587-4499-9cc5-3fade7699da7"}]}