{"info":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"4783528","collectionId":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","publishedId":"TzRa74Ge","public":true,"customColor":{"top-bar":"F0f0f0","right-sidebar":"303030","highlight":"B9295F"},"publishDate":"2021-05-20T09:03:45.000Z"},"item":[{"name":"users/auth","item":[{"name":"get users","id":"eabcdddc-ebcf-4c30-86a8-7515a42ccb47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://mock-fb-tql.herokuapp.com//users","description":"<p>Fetch all current users</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["users"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"eabcdddc-ebcf-4c30-86a8-7515a42ccb47"},{"name":"Register user","id":"15d81722-791a-404e-97d7-a6293c851ae0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"youremail@server.com\",\n    \"password\": \"password\",\n    \"name\": \"Your Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://mock-fb-tql.herokuapp.com//users/register","description":"<p>Register a new user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["users","register"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"15d81722-791a-404e-97d7-a6293c851ae0"},{"name":"login user","id":"85a993ee-bd68-4643-9628-45328974462e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"youremail@server.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://mock-fb-tql.herokuapp.com//users/login","description":"<p>Log in user</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["users","login"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"85a993ee-bd68-4643-9628-45328974462e"},{"name":"password reset","id":"ed6cf91a-28ea-490a-8e68-0a88a033336c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"token\": \"your-reset-token\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"https://mock-fb-tql.herokuapp.com//users/password-reset/:userId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["users","password-reset",":userId"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[{"type":"any","value":"1a4e3fa3-e324-4b4a-8e25-ca87dff27988","key":"userId"}]}},"response":[],"_postman_id":"ed6cf91a-28ea-490a-8e68-0a88a033336c"},{"name":"password reset initiate","id":"37ea7081-dc00-4654-937d-b5add872b03e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"youremail@server.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://mock-fb-tql.herokuapp.com//users/password-reset","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["users","password-reset"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"37ea7081-dc00-4654-937d-b5add872b03e"}],"id":"2507dc59-50b0-47ea-84e5-0e20160bef39","description":"<p>Authentication endpoints</p>\n","_postman_id":"2507dc59-50b0-47ea-84e5-0e20160bef39","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}}},{"name":"posts","item":[{"name":"create post","id":"044ce6ec-8f9d-49d9-9824-92cb6aa17024","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Rational millionaire","type":"text"},{"key":"content","value":"Some content","type":"text"},{"key":"published","value":"true","type":"text"}]},"url":"https://mock-fb-tql.herokuapp.com//posts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["posts"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"044ce6ec-8f9d-49d9-9824-92cb6aa17024"},{"name":"Get all posts","id":"186c3c62-6ab8-4e97-b616-aa600146ca9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://mock-fb-tql.herokuapp.com//posts","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["posts"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"186c3c62-6ab8-4e97-b616-aa600146ca9c"},{"name":"Get a post","id":"9971d432-327e-40c1-9514-533074fd0819","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://mock-fb-tql.herokuapp.com//posts/:postId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["posts",":postId"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[{"type":"any","value":"1f6d3b27-e1ac-4e0b-8014-e7ae97f51bda","key":"postId"}]}},"response":[],"_postman_id":"9971d432-327e-40c1-9514-533074fd0819"},{"name":"Edit a post","id":"4f9dd7ac-6343-489d-b113-0e44531470d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Rational millionaire 2","type":"text"},{"key":"content","value":"Some content edited","type":"text"},{"key":"published","value":"true","type":"text"}]},"url":"https://mock-fb-tql.herokuapp.com//posts/:postId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["posts",":postId"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[{"type":"any","value":"1f6d3b27-e1ac-4e0b-8014-e7ae97f51bda","key":"postId"}]}},"response":[],"_postman_id":"4f9dd7ac-6343-489d-b113-0e44531470d0"},{"name":"Like and unlike a post","id":"2b7a5f3b-0ba3-4fbe-b533-56f40cde3cd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://mock-fb-tql.herokuapp.com//posts/:postId/likes","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["posts",":postId","likes"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[{"type":"any","value":"1f6d3b27-e1ac-4e0b-8014-e7ae97f51bda","key":"postId"}]}},"response":[],"_postman_id":"2b7a5f3b-0ba3-4fbe-b533-56f40cde3cd2"},{"name":"Delete a post","id":"e5adebee-36a4-4664-b214-2a9febbb4c1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://mock-fb-tql.herokuapp.com//posts/:postId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["posts",":postId"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[{"type":"any","value":"1f6d3b27-e1ac-4e0b-8014-e7ae97f51bda","key":"postId"}]}},"response":[],"_postman_id":"e5adebee-36a4-4664-b214-2a9febbb4c1c"}],"id":"f9795551-b41e-41f4-adc3-b7475a051fea","_postman_id":"f9795551-b41e-41f4-adc3-b7475a051fea","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}}},{"name":"upload","item":[{"name":"Upload Image","id":"1021df16-6cbb-46d4-826a-02ad98828fef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/Users/oviskywalker/Downloads/Logosecret-santa.png"}]},"url":"https://mock-fb-tql.herokuapp.com//uploads","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}},"urlObject":{"path":["uploads"],"host":["https://mock-fb-tql.herokuapp.com/"],"query":[],"variable":[]}},"response":[],"_postman_id":"1021df16-6cbb-46d4-826a-02ad98828fef"}],"id":"e0e9d8f4-ee1c-4af7-ad4c-6ef93a8a7ad8","_postman_id":"e0e9d8f4-ee1c-4af7-ad4c-6ef93a8a7ad8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]},"isInherited":true,"source":{"_postman_id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","id":"6a7238d3-4a9d-46ff-95dd-d29b97135eb3","name":"Mock-FB API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."}]}},"event":[{"listen":"prerequest","script":{"id":"f8867cb4-a0e9-4072-a75b-b5a2beac54c4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e1ea23ea-3ea3-4d58-b334-0e82e7f32412","type":"text/javascript","exec":[""]}}],"variable":[{"key":"API","value":"https://mock-fb-tql.herokuapp.com/"},{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjJhOTZiODE0LTJmZTAtNGE2MS04NmNmLWNmMmM2OTE5YTQ2ZCIsImlhdCI6MTYyMTQ4ODM1NCwiZXhwIjoxNjIxNDk5..."},{"key":"postId","value":"1f6d3b27-e1ac-4e0b-8014-e7ae97f51bda"},{"key":"userId","value":"1a4e3fa3-e324-4b4a-8e25-ca87dff27988"},{"key":"email","value":"youremail@server.com"}]}