{"info":{"_postman_id":"c784c5b5-1904-4866-94a9-2c5784203c7b","name":"Pluto","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>The Backend for Pluto.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>GitHub: <a href=\"https://github.com/drexel-pluto/pluto-server\">https://github.com/drexel-pluto/pluto-server</a>\nWebsite: <a href=\"https://plutosocial.io\">https://plutosocial.io</a></p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Bearer-token in the authorization header.\nCreate account, then hit login.</p>\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"}],"owner":"5678160","collectionId":"c784c5b5-1904-4866-94a9-2c5784203c7b","publishedId":"SWLh5mKn","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"2B2B2B","highlight":"FF1751"},"publishDate":"2020-01-09T18:16:40.000Z"},"item":[{"name":"Create User","id":"ae04d80e-ba45-43c4-b7df-21435e6c0175","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"postParams","value":"{\"username\":\"nickwopic3\",\"email\":\"nickwopic3@gmail.com\",\"name\": \"nick carbone\",\"password\": \"couch\",\"gender\":\"male\"}","type":"text"},{"key":"media","type":"file","value":null}]},"url":"http://localhost:3555/api/user/create","description":"<p>Creates a new user object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae04d80e-ba45-43c4-b7df-21435e6c0175"},{"name":"Login User","id":"61db5435-fade-4ed0-a0e2-dec5b035df5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"deb\",\n\t\"email\": \"deb@gmail.com\",\n\t\"password\": \"couch\"\n}"},"url":"http://localhost:3555/api/login","description":"<p>Log in existing user. Returns a JSON token.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"61db5435-fade-4ed0-a0e2-dec5b035df5c"},{"name":"Send Friend Request","id":"b3cf242d-873c-4d5e-86dc-fd910b4a3987","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"mike7\"\n}"},"url":"http://localhost:3555/api/user/friends/request","description":"<p>Sends friend request to user by username.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends","request"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3cf242d-873c-4d5e-86dc-fd910b4a3987"},{"name":"Delete Friend Request","id":"6a4ba288-a416-4427-8d49-4145f9cca11e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"mike\"\n}"},"url":"http://localhost:3555/api/user/friends/request/reject","description":"<p>Reject a friend request.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends","request","reject"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a4ba288-a416-4427-8d49-4145f9cca11e"},{"name":"Cancel Friend Request","id":"e90254ae-7d5f-439e-b02b-441792c887a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"mike2\"\n}"},"url":"http://localhost:3555/api/user/friends/request/cancel","description":"<p>Unsend a friend request.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends","request","cancel"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e90254ae-7d5f-439e-b02b-441792c887a9"},{"name":"Confirm Friend Request","id":"b97c60e3-b2ec-45f3-8fe1-f85380222b18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"mike9\"\n}"},"url":"http://localhost:3555/api/user/friends/request/confirm","description":"<p>Adds user to both users' friends list.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends","request","confirm"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b97c60e3-b2ec-45f3-8fe1-f85380222b18"},{"name":"Delete Friend","id":"feae893c-0829-4761-8cf9-d5817315c236","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\":\"mike2\"\n}"},"url":"http://localhost:3555/api/user/friends/remove","description":"<p>Removes friend from both users' friends lists.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends","remove"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"feae893c-0829-4761-8cf9-d5817315c236"},{"name":"GET Friends","id":"08138171-16e4-4360-8e4b-1a0ed7fd48a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3555/api/user/friends","description":"<p>Return the user's friends list.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"08138171-16e4-4360-8e4b-1a0ed7fd48a1"},{"name":"Create Group","id":"96c57356-5069-431d-872f-05f21a9b1623","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"groupName\": \"moldy berries\"\n}"},"url":"http://localhost:3555/api/user/groups/create","description":"<p>Create new group object to organize friends under.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","groups","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"96c57356-5069-431d-872f-05f21a9b1623"},{"name":"Add User To Group","id":"85bd667b-504d-4dc6-9fa0-c1cc6a8504bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"groupId\": \"5e6703498570ed4c4886a89c\",\n\t\"friendsToAdd\": [\"5e5949dba7546d15b607add4\", \"5e5949fda7546d15b607add8\", \"5e594a39a7546d15b607ade4\"]\n}"},"url":"http://localhost:3555/api/user/groups/members/add","description":"<p>Add user to existing group object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","groups","members","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"85bd667b-504d-4dc6-9fa0-c1cc6a8504bf"},{"name":"Remove User From Group","id":"b4184761-ab23-4245-a03a-c4f48929815f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"groupId\": \"5e6703498570ed4c4886a89c\",\n\t\"friendsToRemove\": [\"5e5949dba7546d15b607add4\", \"5e5949fda7546d15b607add8\", \"5e594a39a7546d15b607ade4\"]\n}"},"url":"http://localhost:3555/api/user/groups/members/remove","description":"<p>Removes user from existing group object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","groups","members","remove"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b4184761-ab23-4245-a03a-c4f48929815f"},{"name":"Edit Group Name","id":"8d4f486d-bb9e-45ea-a74a-88c17ab5b313","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"groupId\":\"5e017583921b176bdf2c5a2f\",\n\t\"newTitle\": \"butt honeys\"\n}"},"url":"http://localhost:3555/api/user/groups/edit-name","description":"<p>Changes the title of a user's group.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","groups","edit-name"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d4f486d-bb9e-45ea-a74a-88c17ab5b313"},{"name":"Delete Group","id":"eb00d4f4-6ec2-4f25-820e-c81af7e6a258","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"groupId\": \"5e017a7cc673c36c9c9e4c48\"\n}"},"url":"http://localhost:3555/api/user/groups/delete","description":"<p>Removes group object completely.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","groups","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb00d4f4-6ec2-4f25-820e-c81af7e6a258"},{"name":"GET Groups","id":"1b5b859b-b250-43b9-be94-8fd75271e4d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:3555/api/user/groups/all","description":"<p>Returns all groups a user has created, with the members of those groups populated.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","groups","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b5b859b-b250-43b9-be94-8fd75271e4d1"},{"name":"Fetch Group","id":"ba0442c0-c686-4c72-a181-3bb05a440957","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"groupId\":\"5e03e5fc552f836f34a7730a\"\n}"},"url":"http://localhost:3555/api/user/groups/one","description":"<p>Return the details of a specific group.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","groups","one"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba0442c0-c686-4c72-a181-3bb05a440957"},{"name":"Fetch User","id":"89b006fa-222d-4250-9b48-ae5876b6341c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\":\"5dffeaf0ff8f2155d7f7af28\"\n}"},"url":"http://localhost:3555/api/user","description":"<p>Returns a friend's user object with no populated fields. If no body is sent, the request will return the requesting user's object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"89b006fa-222d-4250-9b48-ae5876b6341c"},{"name":"GET Friend Requests Received","id":"d572235b-6cea-427b-9c2f-4861702264c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:3555/api/user/friends/requests-in","description":"<p>Gets all friend requests people have sent to the user.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends","requests-in"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d572235b-6cea-427b-9c2f-4861702264c2"},{"name":"GET Friend Requests Sent","id":"f1dedeb7-30b8-4a42-9c15-51e584e09ee4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3555/api/user/friends/requests-out","description":"<p>GET friend requests sent to other users.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","friends","requests-out"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1dedeb7-30b8-4a42-9c15-51e584e09ee4"},{"name":"Update User Profile Details","id":"7c43db7a-111d-4bbf-901c-0006eb52e2be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"field\": \"gender\",\n\t\"newValue\": \"male\"\n}"},"url":"http://localhost:3555/api/user/update","description":"<p>Update a field from the user's profile. Forbidden fields will not be allowed to be overwritten manually (posts, friends, etc.). Accepted fields include no conflict, non-unique fields like bio, name, and birthday. Editing the birthday is pretty flexible-- mongoose does a good job at converting the date to the proper format. ISO Date format works. Example: \"1998-01-06\".</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c43db7a-111d-4bbf-901c-0006eb52e2be"},{"name":"Create Post","id":"19798150-ef6e-4cbd-8df7-50148e7d5da9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"postParams","value":"{\"text\":\"for you nick\",\"daysUntilArchive\":21,\"audienceIds\":[\"5e0d6a06e2765d1ab2e7b521\"],\"tag\":\"wedding\"}","type":"text"},{"key":"media","type":"file","value":null}]},"url":"http://localhost:3555/api/posts/create","description":"<p>Creating posts for feeds.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"19798150-ef6e-4cbd-8df7-50148e7d5da9"},{"name":"GET All Posts","id":"ecf36c84-e911-4f3c-83b2-efb8e6aad9d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3555/api/posts/all","description":"<p>Fetches all posts that were designated for you by your friends.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecf36c84-e911-4f3c-83b2-efb8e6aad9d8"},{"name":"Delete Post","id":"49a9f812-18d3-4390-a1c0-f7e1a12d2aa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"postId\": \"5e0af9778d1f6e14c345b7c8\"\n}"},"url":"http://localhost:3555/api/posts/delete","description":"<p>Deletes a post by id.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","delete"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"49a9f812-18d3-4390-a1c0-f7e1a12d2aa1"},{"name":"Fetch Post","id":"c27b41e1-bf52-48e8-948f-fe70c98f4726","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"postId\": \"5e0afaa979e01414e2002280\"\n}"},"url":"http://localhost:3555/api/posts/one","description":"<p>Get a specific post by id.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","one"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c27b41e1-bf52-48e8-948f-fe70c98f4726"},{"name":"Fetch posts by group","id":"978dbf57-a989-41ff-90c0-9eac5eebd19d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"groupId\": \"5e0d7f46818ebb1db589434d\"\n}"},"url":"http://localhost:3555/api/posts/from-group","description":"<p>Fetches posts from a user's group. Takes a group ID.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","from-group"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"978dbf57-a989-41ff-90c0-9eac5eebd19d"},{"name":"Public email save","id":"3514e17b-dbdc-4bcf-b73f-b8969aa6d5d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"mfcbonee@gmail.com\"\n}"},"url":"http://localhost:3555/api/public/email/save","description":"<p>Adds an email to our email list. Each email should be unique. Returns email obj.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","public","email","save"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3514e17b-dbdc-4bcf-b73f-b8969aa6d5d4"},{"name":"Image Upload","id":"38611048-ab28-402d-8f13-7e515d80f99d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","value":null}]},"url":"http://localhost:3555/api/posts/image","description":"","urlObject":{"protocol":"http","port":"3555","path":["api","posts","image"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"38611048-ab28-402d-8f13-7e515d80f99d"},{"name":"GET Own Profile","id":"b616e8cc-ca17-4346-8ae7-e08dd60c862f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>This is a heavy call to fetch user profile upon login. Returns user object with groups and friends fully populated.</p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"b616e8cc-ca17-4346-8ae7-e08dd60c862f"},{"name":"Logout","id":"38088a5e-765d-46e9-89a9-faaf4b4aa790","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","description":"<p>Logout user. Returns a redirect to /</p>\n","urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"38088a5e-765d-46e9-89a9-faaf4b4aa790"},{"name":"GET users posts","id":"fb64bbd1-8eb9-4044-ac88-b17b3e25bf5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3555/api/posts/user/clay1","description":"<p>Fetches posts from a user. Returns array of posts.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","user","clay1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb64bbd1-8eb9-4044-ac88-b17b3e25bf5c"},{"name":"React to Post","id":"49f56062-42f0-4b95-929f-c2a10e9f62fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"postId\": \"5e41cc3e080404a5da59f18a\",\n\t\"amountToAdd\": 102\n}"},"url":"http://localhost:3555/api/posts/react","description":"<p>Adds reaction count to a post. Unlimited count per user. Returns post obj with updated like count.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","react"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"49f56062-42f0-4b95-929f-c2a10e9f62fd"},{"name":"Delete profile picture","id":"96986ca6-60f7-4064-832e-3bbe610a1fc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"http://localhost:3555/api/user/profile-picture","description":"<p>Not needed. Can rely on PUT Update profile picture endpoint to delete the old picture. Returns new user object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","profile-picture"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"96986ca6-60f7-4064-832e-3bbe610a1fc3"},{"name":"Update profile picture","id":"99a5d7f7-37ba-4936-9d3e-16618683991a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"media","type":"file","value":null}]},"url":"http://localhost:3555/api/user/profile-picture","description":"<p>Updates the existing profile picture url. Returns new user object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","profile-picture"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"99a5d7f7-37ba-4936-9d3e-16618683991a"},{"name":"Reply to post with comment","id":"414db510-e2f5-4689-bf58-1745147525b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"text\": \"i am clay1\",\n\t\"postId\": \"5e46fbc1a50ffbd332df44e2\"\n}"},"url":"http://localhost:3555/api/posts/comment","description":"<p>Adds comment to a post. Returns post object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","comment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"414db510-e2f5-4689-bf58-1745147525b7"},{"name":"Reply to comment with comment","id":"b482ce9d-d0fb-4681-a73d-715f626bc68a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"text\": \"i am clay 3 responding to clay4\",\n\t\"postId\": \"5e46fbc1a50ffbd332df44e2\",\n\t\"replyTo\": \"5e46fc15a50ffbd332df44ea\"\n}"},"url":"http://localhost:3555/api/posts/sub-comment","description":"<p>Returns new post object.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","sub-comment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b482ce9d-d0fb-4681-a73d-715f626bc68a"},{"name":"GET Notifications","id":"247b9286-ade8-4925-8301-b12437f52d6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3555/api/user/notifications","description":"<p>Returns array of notification objects.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","notifications"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"247b9286-ade8-4925-8301-b12437f52d6a"},{"name":"GET Posts by tag","id":"3b1319d2-85af-4077-b1a1-6a37aa6537db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3555/api/posts/test","description":"<p>Returns array of posts.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","posts","test"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b1319d2-85af-4077-b1a1-6a37aa6537db"},{"name":"GET Public User","id":"67373686-2586-4db8-92c2-2e7b35cd6045","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3555/api/user/public/sarah1","description":"<p>Returns object of public user info.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","public","sarah1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"67373686-2586-4db8-92c2-2e7b35cd6045"},{"name":"GET Mutual Friends","id":"3611141b-d3aa-476b-8c8f-5cc125e6311f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3555/api/user/sarah1/mutual-friends","description":"<p>Returns object with array of friends and count of mutual friends.</p>\n","urlObject":{"protocol":"http","port":"3555","path":["api","user","sarah1","mutual-friends"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3611141b-d3aa-476b-8c8f-5cc125e6311f"},{"name":"Delete comment on post","id":"860dcdb2-1605-46af-8e07-078d9e04224f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"postId\": \"5eac653f5ca83900176ac1ff\",\n\t\"commentId\": \"5eb396eb2d63d8b2ac927d88\"\n}"},"url":"http://localhost:3555/api/posts/comment","urlObject":{"protocol":"http","port":"3555","path":["api","posts","comment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"860dcdb2-1605-46af-8e07-078d9e04224f"}]}