{"info":{"_postman_id":"4b1e5d7a-7ce5-4c54-b107-6ad4b0ae822a","name":"Teamwork API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<h3 id=\"teamwork-is-an-internal-social-network-for-employees-in-an-organisation\">Teamwork is an internal social network for employees in an organisation.</h3>\n<p>It allows registered employees to</p>\n<ul>\n<li>Create user accounts(must be an admin)</li>\n<li>sign in</li>\n<li>create articles</li>\n<li>post gifs</li>\n<li>edit posted articles</li>\n<li>delete their articles</li>\n<li>delete their gifs</li>\n<li>comment on other colleagues articles</li>\n<li>comment on other colleagues gifs</li>\n<li>view all articles / gifs</li>\n<li>view specific article/gif</li>\n</ul>\n<h1 id=\"overview\">Overview</h1>\n<p>This Api was created in Nodejs. </p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>You must have a registered account inorder to interact with the api.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<h2 id=\"success\">Success</h2>\n<ul>\n<li>2xx</li>\n</ul>\n<h2 id=\"error\">Error</h2>\n<ul>\n<li>4xx</li>\n<li>5xx</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"}],"owner":"9208427","collectionId":"4b1e5d7a-7ce5-4c54-b107-6ad4b0ae822a","publishedId":"SW7Z4UBj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-11-19T19:24:11.000Z"},"item":[{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/auth/create-user","id":"623a1740-ec37-4444-9616-e732ad0728ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/auth/create-user","description":"<p> create employee account</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","create-user"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"43702b44-f0fb-4776-b659-511fef472340","name":"Creating a user account example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjMsImlhdCI6MTU3NDE3ODgxMywiZXhwIjoxNTc0MjY1MjEzfQ.CjYjjgD17dVntSV4MVw9kP-J5cnRh0Zs7HCQhvSzWuc","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"user\",\n    \"lastName\": \"doc\",\n    \"email\": \"user@doc.com\",\n    \"password\": \"jujuking\",\n    \"jobRole\": \"CTO\",\n    \"department\": \"IT\",\n    \"address\": \"jujamaica\",\n    \"gender\": \"male\",\n    \"userId\" : 3\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/auth/create-user"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"243"},{"key":"Etag","value":"W/\"f3-AwYgPWfwYikMLVYWOAXSmZfffp0\""},{"key":"Date","value":"Tue, 19 Nov 2019 15:58:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success!\",\n    \"data\": {\n        \"message\": \"user account created successfully\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY\",\n        \"userId\": 17\n    }\n}"}],"_postman_id":"623a1740-ec37-4444-9616-e732ad0728ba"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/auth/signin","id":"d79ad8d4-5340-4673-971f-96afa3f0186a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/auth/signin","description":"<p> sign in</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","signin"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"f4d8d891-dd6c-4d9d-9353-d8e8c9af11cc","name":"Signin in Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"juju@admin.com\",\n    \"password\": \"nothingcanstopme\"\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/auth/signin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"194"},{"key":"Etag","value":"W/\"c2-GytcAXJR3G3pDGQvGMEPbToFgbM\""},{"key":"Date","value":"Tue, 19 Nov 2019 15:53:33 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjMsImlhdCI6MTU3NDE3ODgxMywiZXhwIjoxNTc0MjY1MjEzfQ.CjYjjgD17dVntSV4MVw9kP-J5cnRh0Zs7HCQhvSzWuc\",\n        \"userId\": 3\n    }\n}"}],"_postman_id":"d79ad8d4-5340-4673-971f-96afa3f0186a"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles","id":"48f99262-8f2d-473d-8696-5fae260a0313","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles","description":"<p>create an article</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","articles"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"27bc4005-33d9-4f77-bf61-3b43c44a2d28","name":"Creating and posting an article example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjMsImlhdCI6MTU3NDE3ODgxMywiZXhwIjoxNTc0MjY1MjEzfQ.CjYjjgD17dVntSV4MVw9kP-J5cnRh0Zs7HCQhvSzWuc","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Node 12\",\n    \"article\": \"It supports imports just like es6!\",\n    \"userId\" : 3\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"150"},{"key":"Etag","value":"W/\"96-gytLQFbBS2dhORRxY9iSf1sLBnM\""},{"key":"Date","value":"Tue, 19 Nov 2019 16:01:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"message\": \"Article successfully posted\",\n        \"createdOn\": \"2019-11-19T16:01:18.898Z\",\n        \"articleId\": -2073718734,\n        \"title\": \"Node 12\"\n    }\n}"}],"_postman_id":"48f99262-8f2d-473d-8696-5fae260a0313"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId","id":"4757bac0-a01c-46d9-92cf-33eab68ddaac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId","description":"<p>Edit an article</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","articles",":articleId"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"articleId"}]}},"response":[{"id":"7798030b-e884-4d80-af90-a744bb659801","name":"Editing an article example","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Node 12\",\n    \"article\": \"It supports imports just like es6! It has better security!\",\n    \"userId\" : 17\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/-2073718734"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"159"},{"key":"Etag","value":"W/\"9f-VQe4AOulhTC1xlX+n8C9Htee180\""},{"key":"Date","value":"Tue, 19 Nov 2019 16:17:04 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"message\": \"Article successfully updated\",\n        \"title\": \"Node 12\",\n        \"article\": \"It supports imports just like es6! It has better security!\"\n    }\n}"}],"_postman_id":"4757bac0-a01c-46d9-92cf-33eab68ddaac"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId","id":"0cc45b9e-1d06-4d81-814d-af04d2f6ea98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId","description":"<p>Delete an article</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","articles",":articleId"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"articleId"}]}},"response":[{"id":"31e1909e-6cec-4c89-be04-480a3dc77394","name":"Deleting an article example","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjMsImlhdCI6MTU3NDE3ODgxMywiZXhwIjoxNTc0MjY1MjEzfQ.CjYjjgD17dVntSV4MVw9kP-J5cnRh0Zs7HCQhvSzWuc","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\" : 3\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/-2073718734"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"Etag","value":"W/\"46-mAI58wiOUQp3BTvqDi4ChLFeUs8\""},{"key":"Date","value":"Tue, 19 Nov 2019 18:24:24 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"message\": \"Article successfully deleted\"\n    }\n}"}],"_postman_id":"0cc45b9e-1d06-4d81-814d-af04d2f6ea98"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs","id":"08d40a86-cf40-45ca-be04-e5fba8298749","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs","description":"<p>Create a gif</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","gifs"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"a0f9e678-647e-40de-a0b4-9ec113e6cdc3","name":"creating a gif post example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"photo","type":"file","src":"/C:/Users/user/Pictures/giphy.gif"},{"key":"title","value":"Thank you giphy","type":"text"},{"key":"userId","value":"17","type":"text"}]},"url":{"raw":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs","protocol":"https","host":["teamwork-backend-api4525","herokuapp","com"],"path":["api","v1","resources","gifs"],"query":[{"key":"","value":"","type":"text","disabled":true}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"260"},{"key":"Etag","value":"W/\"104-+XcKFB2L9uFVU9zhV9/3HXBl3N0\""},{"key":"Date","value":"Tue, 19 Nov 2019 16:08:09 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"data\": {\n        \"gifId\": -2073308164,\n        \"message\": \"GIF image successfully posted\",\n        \"createdOn\": \"2019-11-19T16:08:09.468Z\",\n        \"title\": \"Thank you giphy\",\n        \"imageUrl\": \"http://res.cloudinary.com/cloudinaryjuma/image/upload/v1574179688/yz4s6yhvmodplttespu7.gif\"\n    }\n}"}],"_postman_id":"08d40a86-cf40-45ca-be04-e5fba8298749"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/:gifId","id":"c682d2d4-272d-452e-8277-f3c6d4bfe5c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/:gifId","description":"<p>Delete a gif</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","gifs",":gifId"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"gifId"}]}},"response":[{"id":"358c4cf1-69e2-4683-989a-d11edb18cc48","name":"Deleting a specific gif example","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\" : 17\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/-2073308164"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"Etag","value":"W/\"47-r3kJNCM3qOLR+3j6fi8ThlYtnDo\""},{"key":"Date","value":"Tue, 19 Nov 2019 18:27:00 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"message\": \"gif post successfully deleted\"\n    }\n}"}],"_postman_id":"c682d2d4-272d-452e-8277-f3c6d4bfe5c3"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId/comment","id":"50c9b4a6-beb1-4206-9921-3c88dc90e85a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId/comment","description":"<p>Comment an article</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","articles",":articleId","comment"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"articleId"}]}},"response":[{"id":"cc4499c5-1088-4203-aa5e-1a303d880192","name":"Comment an article example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"comment\" : \"Node 12 for the web!!\",\n\t\"userId\" : 17\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/-2073718734/comment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"239"},{"key":"Etag","value":"W/\"ef-TmcGbxoVKNTeJBTYlISOt89bL3Y\""},{"key":"Date","value":"Tue, 19 Nov 2019 18:05:25 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"message\": \"Comment successfully created\",\n        \"createdOn\": \"2019-11-19T18:05:25.552Z\",\n        \"articleTitle\": \"Node 12\",\n        \"article\": \"It supports imports just like es6! It has better security!\",\n        \"comment\": \"Node 12 for the web!!\"\n    }\n}"}],"_postman_id":"50c9b4a6-beb1-4206-9921-3c88dc90e85a"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/:gifId/comment","id":"e96abc43-47ec-46d0-8c15-84ec125b60e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/:gifId/comment","description":"<p>Comment a gif</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","gifs",":gifId","comment"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"gifId"}]}},"response":[{"id":"23544ddf-1778-479f-9388-057bb5064c7d","name":"Comment a particular gif example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"comment\" : \"Welcome buddy!\",\n\t\"userId\" : 17\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/-2073308164/comment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"165"},{"key":"Etag","value":"W/\"a5-p47puKYsK159ZBIx+nFFbB+G9Gk\""},{"key":"Date","value":"Tue, 19 Nov 2019 18:08:33 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"message\": \"Comment successfully created\",\n        \"createdOn\": \"2019-11-19T18:08:33.311Z\",\n        \"gifTitle\": \"Thank you giphy\",\n        \"comment\": \"Welcome buddy!\"\n    }\n}"}],"_postman_id":"e96abc43-47ec-46d0-8c15-84ec125b60e2"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/feed","id":"53cd8fa6-022f-4971-8626-b5b3e8f73901","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/feed","description":"<p>view all articles and/or gifs</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","feed"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"e8243892-a49a-4380-8fbf-0c71317f7297","name":"Get all articles/gifs example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\" : 17\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/feed"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"394"},{"key":"Etag","value":"W/\"18a-mCBh2fmSffpAmOv1LyewDIk/zG8\""},{"key":"Date","value":"Tue, 19 Nov 2019 18:17:02 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": -2073308164,\n            \"created_date\": \"2019-11-19T16:08:09.468Z\",\n            \"title\": \"Thank you giphy\",\n            \"article\": \"http://res.cloudinary.com/cloudinaryjuma/image/upload/v1574179688/yz4s6yhvmodplttespu7.gif\",\n            \"user_id\": 17\n        },\n        {\n            \"id\": -2073718734,\n            \"created_date\": \"2019-11-19T16:01:18.898Z\",\n            \"title\": \"Node 12\",\n            \"article\": \"It supports imports just like es6! It has better security!\",\n            \"user_id\": 3\n        }\n    ]\n}"}],"_postman_id":"53cd8fa6-022f-4971-8626-b5b3e8f73901"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId","id":"5d527e51-98e6-4cc9-ab99-0ce16cbedaf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/:articleId","description":"<p>view a specific article</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","articles",":articleId"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"articleId"}]}},"response":[{"id":"56aa3a23-7625-4628-8e74-b5d266be5761","name":"Viewing a specific article example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\" : 17\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/articles/-2073718734"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"247"},{"key":"Etag","value":"W/\"f7-uNiCrve7LYbgxrohRf3KmiwQnEQ\""},{"key":"Date","value":"Tue, 19 Nov 2019 18:11:25 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": -2073718734,\n        \"created_date\": \"2019-11-19T16:01:18.898Z\",\n        \"title\": \"Node 12\",\n        \"article\": \"It supports imports just like es6! It has better security!\",\n        \"comments\": [\n            {\n                \"id\": 10,\n                \"comment\": \"Node 12 for the web!!\",\n                \"user_id\": 17\n            }\n        ]\n    }\n}"}],"_postman_id":"5d527e51-98e6-4cc9-ab99-0ce16cbedaf0"},{"name":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/:gifId","id":"41ce84c5-2f3c-4893-9f4e-ac87f477c690","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/:gifId","description":"<p>view a specific gif post</p>\n","urlObject":{"protocol":"https","path":["api","v1","resources","gifs",":gifId"],"host":["teamwork-backend-api4525","herokuapp","com"],"query":[],"variable":[{"type":"any","key":"gifId"}]}},"response":[{"id":"ef6e8967-a018-4c6b-9ed8-2eeca3a6efdc","name":"Viewing a specific gif example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"app eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjE3LCJpYXQiOjE1NzQxNzkwOTgsImV4cCI6MTU3NDI2NTQ5OH0.QkMpayaeMX03y98w2gWX4QoicnVE-oRG-HZAZKboEvY","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\" : 17\n}","options":{"raw":{"language":"json"}}},"url":"https://teamwork-backend-api4525.herokuapp.com/api/v1/resources/gifs/-2073308164"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-Width, Content, Accept, Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PATCH, DELETE, PUT, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"277"},{"key":"Etag","value":"W/\"115-u4oooHclCH1fk8EM5V2KtJpua8U\""},{"key":"Date","value":"Tue, 19 Nov 2019 18:15:06 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"id\": -2073308164,\n        \"created_date\": \"2019-11-19T16:08:09.468Z\",\n        \"title\": \"Thank you giphy\",\n        \"image\": \"http://res.cloudinary.com/cloudinaryjuma/image/upload/v1574179688/yz4s6yhvmodplttespu7.gif\",\n        \"comments\": [\n            {\n                \"id\": 8,\n                \"comment\": \"Welcome buddy!\",\n                \"user_id\": 17\n            }\n        ]\n    }\n}"}],"_postman_id":"41ce84c5-2f3c-4893-9f4e-ac87f477c690"}],"event":[{"listen":"prerequest","script":{"id":"e4000afa-2980-43b4-bf6f-7eca2d400e0e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d869d672-f160-4fff-943a-1efd83277a89","type":"text/javascript","exec":[""]}}]}