{"info":{"_postman_id":"00780dc7-6fd4-4d41-9928-beff1ead15c3","name":"Friend","description":"<html><head></head><body><p>Apis created to send friend request, accept friend request, remove an specific friend and lastly can get your friends log!</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16001457","collectionId":"00780dc7-6fd4-4d41-9928-beff1ead15c3","publishedId":"2s8ZDbWgPJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-24T13:24:46.000Z"},"item":[{"name":"SendFriendReq","id":"7b1fa6af-7e27-4787-b691-0fba32140d5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{your-base-url}}/friend/63cfd6fe92aa2e5a716b35b0","description":"<p>This api endpoint will send a friend request when you give friend id, eg - <a href=\"http://baseurl/friend/%7BfriendID%7D\">http://baseurl/friend/{friendID}</a></p>\n","urlObject":{"path":["friend","63cfd6fe92aa2e5a716b35b0"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"7d2c7673-38fe-4ef4-b455-5c3462c4b47f","name":"SendFriendReq","originalRequest":{"method":"POST","header":[],"url":"{{your-base-url}}/friend/63cfd6fe92aa2e5a716b35b0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"ETag","value":"W/\"41-j6aZaSdVJLwRW8bgbLbDbfZ45N4\""},{"key":"Date","value":"Tue, 24 Jan 2023 13:17:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Friend request was sent successfully\"\n}"}],"_postman_id":"7b1fa6af-7e27-4787-b691-0fba32140d5a"},{"name":"removeFriend","id":"ee8b3f22-b619-4bc7-81bb-d7f8d69e0634","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{your-base-url}}/friend/63cfd7f992aa2e5a716b35b6","description":"<p>This api endpoint will remove a friend when you give friend id, eg - <a href=\"http://baseurl/friend/%7BfriendID%7D\">http://baseurl/friend/{friendID}</a></p>\n","urlObject":{"path":["friend","63cfd7f992aa2e5a716b35b6"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"d01198a2-671c-4146-8dbd-4840a65728e3","name":"removeFriend","originalRequest":{"method":"DELETE","header":[],"url":"{{your-base-url}}/friend/63cfd7f992aa2e5a716b35b6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-LM8gDvqzNHuCH96/u+pMqTA7HzE\""},{"key":"Date","value":"Tue, 24 Jan 2023 13:19:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Friend removed from list!\"\n}"}],"_postman_id":"ee8b3f22-b619-4bc7-81bb-d7f8d69e0634"},{"name":"get friends log","id":"0d08c82e-8286-45cd-8dfa-eedb815eb7df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{your-base-url}}/friend","description":"<p>This api endpoint will get you your log of accepted log of friends!</p>\n","urlObject":{"path":["friend"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"bd4cacca-0994-45e1-abc3-b98b704f231b","name":"get friends log","originalRequest":{"method":"GET","header":[],"url":"{{your-base-url}}/friend"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"473"},{"key":"ETag","value":"W/\"1d9-w0+lUP6UCA7oSI39XcBt4GR00yE\""},{"key":"Date","value":"Tue, 24 Jan 2023 13:18:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"user\": [\n        {\n            \"_id\": \"63cfda6f92aa2e5a716b35bd\",\n            \"requester\": \"63cfd7f992aa2e5a716b35b6\",\n            \"recipient\": {\n                \"social\": {\n                    \"leetcodeProfile\": {\n                        \"languagesUsed\": []\n                    },\n                    \"codeforcesProfile\": {\n                        \"languagesUsed\": []\n                    }\n                },\n                \"_id\": \"63cfd6fe92aa2e5a716b35b0\",\n                \"name\": \"Pratik\",\n                \"email\": \"Guddu@gmail.com\",\n                \"rating\": 0,\n                \"createdAt\": \"2023-01-24T13:02:54.484Z\",\n                \"updatedAt\": \"2023-01-24T13:17:35.426Z\",\n                \"__v\": 0\n            },\n            \"status\": 1,\n            \"createdAt\": \"2023-01-24T13:17:35.409Z\",\n            \"updatedAt\": \"2023-01-24T13:17:35.409Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"0d08c82e-8286-45cd-8dfa-eedb815eb7df"},{"name":"addFriend","id":"be1237b3-86ee-41b4-bf86-f985cecbfb1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"url":"{{your-base-url}}/friend/63cfd7f992aa2e5a716b35b6","description":"<p>This api endpoint will accept a friend request when you give friend id, eg - <a href=\"https://desktop.postman.com/?desktopVersion=9.31.0&amp;userId=16001457&amp;teamId=2124421\">http://baseurl/friend/{friendID}</a></p>\n","urlObject":{"path":["friend","63cfd7f992aa2e5a716b35b6"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"c780a3fe-cb5f-41ef-a460-5d801211c98e","name":"addFriend","originalRequest":{"method":"PUT","header":[],"url":"{{your-base-url}}/friend/63cfd7f992aa2e5a716b35b6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-DvWirzVD37HSfM3iDcKk/IS7U1Y\""},{"key":"Date","value":"Tue, 24 Jan 2023 13:18:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Friend added to list!\"\n}"}],"_postman_id":"be1237b3-86ee-41b4-bf86-f985cecbfb1f"}]}