{"info":{"_postman_id":"456ffb98-86b9-421e-a555-54b3667fc21b","name":"Nest + Mongoose CRUD Sample with Heroes ","description":"<html><head></head><body><p>This is an API which inclures the CRUD operation in a Heroe App.</p>\n<p>Every Heroe has a name and a talent.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2862569","collectionId":"456ffb98-86b9-421e-a555-54b3667fc21b","publishedId":"SVtWw7HY","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-10-13T16:02:23.000Z"},"item":[{"name":"Heroes","item":[{"name":"List heroes","id":"dea5e868-045a-4066-bcce-bcbaecfe6df2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"localhost:5000/heroes","urlObject":{"port":"5000","path":["heroes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dea5e868-045a-4066-bcce-bcbaecfe6df2"},{"name":"Create a heroe","id":"b2df6c80-b872-41ea-abd5-46651168e217","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Ruslan","type":"text"}]},"url":"localhost:5000/heroes","description":"<p>Expected output: </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"talents\": [],\n    \"_id\": \"5da3453993daa407701f55a8\",\n    \"name\": \"Ruslan\",\n    \"__v\": 0\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["heroes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2df6c80-b872-41ea-abd5-46651168e217"},{"name":"Get heroe by id","id":"3a08b84c-bcc4-4c81-81ce-3bc351ab4382","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Ruslan","type":"text"}]},"url":"localhost:5000/heroes/5da3453993daa407701f55a8","description":"<p>Expected output: </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"talents\": [],\n    \"_id\": \"5da3453993daa407701f55a8\",\n    \"name\": \"Ruslan\",\n    \"__v\": 0\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["heroes","5da3453993daa407701f55a8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a08b84c-bcc4-4c81-81ce-3bc351ab4382"},{"name":"Modify a heroe","id":"bf69bab8-1a1d-4283-93dd-75f01597aa44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Ruslan ...","description":"<p>Update name</p>\n","type":"text"}]},"url":"localhost:5000/heroes/5da3453993daa407701f55a8","description":"<p>Expected output:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"talents\": [],\n    \"_id\": \"5da3453993daa407701f55a8\",\n    \"name\": \"Ruslan ...\",\n    \"__v\": 0\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["heroes","5da3453993daa407701f55a8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf69bab8-1a1d-4283-93dd-75f01597aa44"},{"name":"Delete a heroe","id":"099529da-1914-4aa7-8f20-d721ac2ba43a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"localhost:5000/heroes/5da3453993daa407701f55a8","description":"<p>Expected output:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"statusCode\": 200,\n    \"message\": \"Heroe deleted\"\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["heroes","5da3453993daa407701f55a8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"099529da-1914-4aa7-8f20-d721ac2ba43a"},{"name":"Add a talent to hero","id":"7e861532-0dd5-4dae-9fb4-e4e1c1a7465b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"talent","value":"5da347cf93daa407701f55aa","type":"text"}]},"url":"localhost:5000/heroes/5da3496745f74807c4d3142a","description":"<p>Expected output:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"talents\": [\n        \"5da347cf93daa407701f55aa\"\n    ],\n    \"_id\": \"5da3496745f74807c4d3142a\",\n    \"name\": \"Ruslan\",\n    \"__v\": 1\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["heroes","5da3496745f74807c4d3142a"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e861532-0dd5-4dae-9fb4-e4e1c1a7465b"}],"id":"d97f3030-95b0-4916-b004-e8b2f6c68956","_postman_id":"d97f3030-95b0-4916-b004-e8b2f6c68956","description":""},{"name":"Talents","item":[{"name":"List talents","id":"23e0667f-e358-49f9-956b-560e9fa00a31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"localhost:5000/talents","description":"<p>Expected output: </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"_id\": \"5da3463b93daa407701f55a9\",\n        \"name\": \"Coding\",\n        \"__v\": 0\n    }\n]\n</code></pre>\n","urlObject":{"port":"5000","path":["talents"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"23e0667f-e358-49f9-956b-560e9fa00a31"},{"name":"Create a talent","id":"473d16aa-c355-4b91-9364-487f34be455c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Coding","type":"text"}]},"url":"localhost:5000/talents","description":"<p>Expected output:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"_id\": \"5da3463b93daa407701f55a9\",\n    \"name\": \"Coding\",\n    \"__v\": 0\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["talents"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"473d16aa-c355-4b91-9364-487f34be455c"},{"name":"Get talent by id","id":"0f4760ba-2665-44ce-829b-c8772e15ae4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"url":"localhost:5000/talents/5da3463b93daa407701f55a9","description":"<p>Expected output: </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"_id\": \"5da3463b93daa407701f55a9\",\n    \"name\": \"Coding\",\n    \"__v\": 0\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["talents","5da3463b93daa407701f55a9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0f4760ba-2665-44ce-829b-c8772e15ae4c"},{"name":"Modify a talent","id":"751e3738-4818-498e-a57b-7ff6d098acaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Update name</p>\n","key":"name","type":"text","value":"Coding ..."}]},"url":"localhost:5000/talents/5da3463b93daa407701f55a9","description":"<p>Expected output:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"_id\": \"5da3463b93daa407701f55a9\",\n    \"name\": \"Coding ...\",\n    \"__v\": 0\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["talents","5da3463b93daa407701f55a9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"751e3738-4818-498e-a57b-7ff6d098acaf"},{"name":"Delete a talent","id":"ff2a9741-3205-482b-946d-e3bfc84d727c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"localhost:5000/talents/5da3463b93daa407701f55a9","description":"<p>Expected output: </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"statusCode\": 200,\n    \"message\": \"Talent deleted\"\n}\n</code></pre>\n","urlObject":{"port":"5000","path":["talents","5da3463b93daa407701f55a9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff2a9741-3205-482b-946d-e3bfc84d727c"}],"id":"cac7536d-7a3a-4140-9e58-6e3042343d21","_postman_id":"cac7536d-7a3a-4140-9e58-6e3042343d21","description":""}]}