{"info":{"_postman_id":"d48c69f6-0047-43b9-9ece-99cfb14972b2","name":"Dev-Libs","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>RESTful API for Dev-Libs App</p>\n<h1 id=\"author\">Author</h1>\n<p>Tania Keller</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Author","slug":"author"}],"owner":"8668166","collectionId":"d48c69f6-0047-43b9-9ece-99cfb14972b2","publishedId":"SVn2Pbrx","public":true,"customColor":{"top-bar":"4E5AAD","right-sidebar":"343B6E","highlight":"5F71E3"},"publishDate":"2019-09-25T19:05:58.000Z"},"item":[{"name":"https://dev-libs.herokuapp.com/api/auth/register","id":"c0b83344-eeed-4789-b774-2d5c48437acc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"userOne\",\n\t\"password\": \"password1\"\n}"},"url":"https://dev-libs.herokuapp.com/api/auth/register","description":"<p>Register a new user</p>\n","urlObject":{"protocol":"https","path":["api","auth","register"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"e5081846-4d3f-43b1-9fc2-7ad8d38d1c71","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"username\": \"user\",\n\t\"password\": \"password\"\n}"},"url":"https://dev-libs.herokuapp.com/api/auth/register"},"code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"c0b83344-eeed-4789-b774-2d5c48437acc"},{"name":"https://dev-libs.herokuapp.com/api/auth/login","id":"622cadd1-a148-4477-9f9d-3606d1fe8048","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"userOne\",\n\t\"password\": \"password1\"\n}"},"url":"https://dev-libs.herokuapp.com/api/auth/login","description":"<p>Login</p>\n","urlObject":{"protocol":"https","path":["api","auth","login"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"5487794d-1781-4db2-bebd-b5894adae813","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"username\": \"user\",\n\t\"password\": \"password\"\n}"},"url":"https://dev-libs.herokuapp.com/api/auth/login"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"622cadd1-a148-4477-9f9d-3606d1fe8048"},{"name":"https://dev-libs.herokuapp.com/api/users/:id","id":"4f29d9fe-1a44-4590-8fa6-d3444354b50e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://dev-libs.herokuapp.com/api/users/:id","description":"<p>Get user by specified id</p>\n","urlObject":{"protocol":"https","path":["api","users",":id"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[{"id":"ed286079-3403-4ac5-8243-2a326cb3cfb5","name":"Default","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://dev-libs.herokuapp.com/api/users/:id","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","users",":id"],"variable":[{"key":"id"}]}},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"4f29d9fe-1a44-4590-8fa6-d3444354b50e"},{"name":"https://dev-libs.herokuapp.com/api/users/:id","id":"954c7f68-de8c-445a-ad79-17637cec4ff7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"updatedName\",\n\t\"password\": \"updated1\"\n}"},"url":"https://dev-libs.herokuapp.com/api/users/:id","description":"<p>Update user by specified id</p>\n","urlObject":{"protocol":"https","path":["api","users",":id"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"string","value":"","key":"id"}]}},"response":[{"id":"5f10f9ea-6fba-48fb-aa43-0f063b7de5a8","name":"Default","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"username\": \"updatedName\",\n\t\"password\": \"updated\"\n}"},"url":{"raw":"https://dev-libs.herokuapp.com/api/users/:id","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","users",":id"],"variable":[{"key":"id"}]}},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"954c7f68-de8c-445a-ad79-17637cec4ff7"},{"name":"https://dev-libs.herokuapp.com/api/users/:id","id":"6a0a4050-5bf4-4557-84fd-d357336437de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://dev-libs.herokuapp.com/api/users/:id","description":"<p>Delete user by specified id</p>\n","urlObject":{"protocol":"https","path":["api","users",":id"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[{"id":"185d04ed-380c-4a0a-9945-8b3d347bfe94","name":"Default","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://dev-libs.herokuapp.com/api/users/:id","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","users",":id"],"variable":[{"key":"id"}]}},"code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6a0a4050-5bf4-4557-84fd-d357336437de"},{"name":"https://dev-libs.herokuapp.com/api/users/:id/templates","id":"0b4a540f-b412-4ad0-8601-6d485d084d70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://dev-libs.herokuapp.com/api/users/:id/templates","description":"<p>Get all templates for specified user</p>\n","urlObject":{"protocol":"https","path":["api","users",":id","templates"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[{"id":"6c0358da-d6e8-4272-bc72-283df51472cf","name":"Default","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://dev-libs.herokuapp.com/api/users/:id/templates","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","users",":id","templates"],"variable":[{"key":"id"}]}},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"0b4a540f-b412-4ad0-8601-6d485d084d70"},{"name":"https://dev-libs.herokuapp.com/api/templates","id":"50348b88-6835-419e-a62c-12eb39bc7625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://dev-libs.herokuapp.com/api/templates","description":"<p>Get all templates</p>\n","urlObject":{"protocol":"https","path":["api","templates"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"05126198-1dca-4053-aa58-1e62400fbf95","name":"Default","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://dev-libs.herokuapp.com/api/templates"},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 1,\n    \"programming_language\": \"bears\",\n    \"noun\": \"chirps\",\n    \"verb\": \"large\",\n    \"ing_verb\": \"bird\",\n    \"ed_verb\": \"moos\",\n    \"noun2\": \"small\",\n    \"user_id\": 1\n  },\n  {\n    \"id\": 2,\n    \"programming_language\": \"beets\",\n    \"noun\": \"chirps\",\n    \"verb\": \"tiny\",\n    \"ing_verb\": \"cow\",\n    \"ed_verb\": \"moos\",\n    \"noun2\": \"large\",\n    \"user_id\": 1\n  },\n  {\n    \"id\": 3,\n    \"programming_language\": \"battlestar_galactica\",\n    \"noun\": \"space\",\n    \"verb\": \"travel\",\n    \"ing_verb\": \"debugging\",\n    \"ed_verb\": \"flew\",\n    \"noun2\": \"solar_system\",\n    \"user_id\": 1\n  }\n]"}],"_postman_id":"50348b88-6835-419e-a62c-12eb39bc7625"},{"name":"https://dev-libs.herokuapp.com/api/templates/:id","id":"20af9a1a-2af3-4c7f-9955-57f234b21b93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://dev-libs.herokuapp.com/api/templates/:id","description":"<p>Get template by specified id</p>\n","urlObject":{"protocol":"https","path":["api","templates",":id"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[{"id":"a927f1ff-f0ca-4c1f-b8b6-84647876cef6","name":"Default","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://dev-libs.herokuapp.com/api/templates/:id","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","templates",":id"],"variable":[{"key":"id"}]}},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"20af9a1a-2af3-4c7f-9955-57f234b21b93"},{"name":"https://dev-libs.herokuapp.com/api/users/:id/templates","id":"6f7fd558-b42f-4632-810b-a49a9b229ef3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"programming_language\": \"battlestar_galactica\",\n\t\"noun\": \"space\",\n\t\"verb\": \"travel\",\n\t\"ing_verb\": \"debugging\",\n\t\"ed_verb\": \"flew\",\n\t\"noun2\": \"solar_system\"\n}"},"url":"https://dev-libs.herokuapp.com/api/users/:id/templates","description":"<p>Create new template for specified user</p>\n","urlObject":{"protocol":"https","path":["api","users",":id","templates"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"string","value":"","key":"id"}]}},"response":[{"id":"1332e96b-47b3-4a79-a903-4676c05af9dd","name":"Default","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://dev-libs.herokuapp.com/api/users/:id/templates","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","users",":id","templates"],"variable":[{"key":"id"}]}},"code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"6f7fd558-b42f-4632-810b-a49a9b229ef3"},{"name":"https://dev-libs.herokuapp.com/api/templates/:id","id":"fb70dacd-8e5d-45b5-8f70-c2b57cbf077d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"programming_language\": \"beets\",\n\t\"noun\": \"chirps\",\n\t\"verb\": \"large\",\n\t\"ing_verb\": \"bird\",\n\t\"ed_verb\": \"moos\",\n\t\"noun2\": \"small\"\n}"},"url":"https://dev-libs.herokuapp.com/api/templates/:id","description":"<p>Update template with specified id</p>\n","urlObject":{"protocol":"https","path":["api","templates",":id"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"string","value":"","key":"id"}]}},"response":[{"id":"63ab4cf4-f89a-4986-be81-1e197167de75","name":"Default","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"programming_language\": \"battlestar_galactica\",\n\t\"noun\": \"space\",\n\t\"verb\": \"travel\",\n\t\"ing_verb\": \"debugging\",\n\t\"ed_verb\": \"flew\",\n\t\"noun2\": \"solar_system\"\n}"},"url":{"raw":"https://dev-libs.herokuapp.com/api/templates/:id","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","templates",":id"],"variable":[{"key":"id"}]}},"code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": 5,\n  \"programming_language\": \"battlestar_galactica\",\n  \"noun\": \"space\",\n  \"verb\": \"travel\",\n  \"ing_verb\": \"debugging\",\n  \"ed_verb\": \"flew\",\n  \"noun2\": \"solar_system\",\n  \"user_id\": 1\n}"}],"_postman_id":"fb70dacd-8e5d-45b5-8f70-c2b57cbf077d"},{"name":"https://dev-libs.herokuapp.com/api/templates/:id","id":"37a6ffc9-9ef8-4859-8f1f-9b792e4bb620","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://dev-libs.herokuapp.com/api/templates/:id","description":"<p>Delete template with specified id</p>\n","urlObject":{"protocol":"https","path":["api","templates",":id"],"host":["dev-libs","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"id"}]}},"response":[{"id":"77cc5e3d-9f9b-47bc-ad90-f4283d87d273","name":"Default","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://dev-libs.herokuapp.com/api/templates/:id","protocol":"https","host":["dev-libs","herokuapp","com"],"path":["api","templates",":id"],"variable":[{"key":"id"}]}},"code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"37a6ffc9-9ef8-4859-8f1f-9b792e4bb620"}]}