{"info":{"_postman_id":"3f32840a-0d88-486d-9330-b68ae55b6501","name":"user","description":"<html><head></head><body><p>API's created specifically for the users to update his profile, fetch user profile data, fetch users for feed, and lastly a leaderboard.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16001457","collectionId":"3f32840a-0d88-486d-9330-b68ae55b6501","publishedId":"2s8ZDbX1G4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-24T14:30:35.000Z"},"item":[{"name":"getUserDashboard","id":"e3946883-c23b-4e0c-bc2a-7997bc8ac5d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{your-base-url}}/user/dashboard","description":"<p>This api endpoint will get you response of a logged user profile data.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"3f32840a-0d88-486d-9330-b68ae55b6501","id":"3f32840a-0d88-486d-9330-b68ae55b6501","name":"user","type":"collection"}},"urlObject":{"path":["user","dashboard"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"2fdce743-d6ba-4800-ae87-874e4cf1ba21","name":"getUserDashboard","originalRequest":{"method":"GET","header":[],"url":"{{your-base-url}}/user/dashboard"},"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":"1073"},{"key":"ETag","value":"W/\"431-WrwmQsUZFk9DTxen7t43BwQyp4A\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:12:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"loggedUser\": {\n        \"photo\": {\n            \"id\": \"users/vszih9qiot3tdqlta2ct\",\n            \"url\": \"https://res.cloudinary.com/pratikaswani/image/upload/v1674569117/users/vszih9qiot3tdqlta2ct.jpg\"\n        },\n        \"social\": {\n            \"githubProfile\": {\n                \"username\": \"pratik9333\",\n                \"publicRepos\": \"71\",\n                \"followers\": \"10\",\n                \"following\": \"6\"\n            },\n            \"leetcodeProfile\": {\n                \"contest\": {\n                    \"attended\": 0,\n                    \"rating\": 0\n                },\n                \"username\": \"pratik9333\",\n                \"rating\": 3922707,\n                \"solvedQuestions\": 1,\n                \"submissions\": 1,\n                \"languagesUsed\": [\n                    \"C++\",\n                    \"Python3\"\n                ]\n            },\n            \"codeforcesProfile\": {\n                \"contest\": {\n                    \"attended\": 235,\n                    \"rating\": 3768\n                },\n                \"username\": \"tourist\",\n                \"rating\": 3768,\n                \"submissions\": 4142,\n                \"languagesUsed\": [\n                    \"GNU C++20 (64)\",\n                    \"GNU C++17 (64)\",\n                    \"GNU C++17\",\n                    \"Kotlin 1.4\",\n                    \"Secret 2021\",\n                    \"Python 3\",\n                    \"GNU C++14\",\n                    \"GNU C++11\",\n                    \"Text\",\n                    \"UnknownX\",\n                    \"JSON\",\n                    \"Q#\",\n                    \"Java 8\",\n                    \"Java 7\",\n                    \"GNU C++0x\",\n                    \"GNU C++\",\n                    \"PHP\",\n                    \"Mysterious Language\",\n                    \"MS C++\",\n                    \"Delphi\",\n                    \"FPC\",\n                    \"Secret_171\",\n                    \"Tcl\"\n                ],\n                \"solvedQuestions\": 2343\n            }\n        },\n        \"_id\": \"63cfd7f992aa2e5a716b35b6\",\n        \"name\": \"Pratik Aswani\",\n        \"email\": \"pratik123@gmail.com\",\n        \"nextUpdateCycle\": 1674570869676,\n        \"rating\": 0,\n        \"createdAt\": \"2023-01-24T13:07:05.337Z\",\n        \"updatedAt\": \"2023-01-24T14:05:27.986Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e3946883-c23b-4e0c-bc2a-7997bc8ac5d5"},{"name":"updateUserDetails","id":"b247a1b3-ddce-472e-a323-f4fb36eb95e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pratik Aswani","type":"text"},{"key":"email","value":"pratik123@gmail.com","type":"text"},{"key":"photo","type":"file","src":"/Users/pratikaswani/Downloads/Social Coding-3.jpg"},{"key":"codechefId","value":"tourist","type":"text","disabled":true},{"key":"leetcodeId","value":"pratik9333","type":"text"},{"key":"githubId","value":"pratik9333","type":"text"},{"key":"codeforcesId","value":"tourist","type":"text"}]},"url":"{{your-base-url}}/user","description":"<p>This api endpoint update a user profile, you can give any number of fields in request such as name, email, coding profiles id, etc. All are optional. The one with changed value as request will give a updated user as response.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"3f32840a-0d88-486d-9330-b68ae55b6501","id":"3f32840a-0d88-486d-9330-b68ae55b6501","name":"user","type":"collection"}},"urlObject":{"path":["user"],"host":["{{your-base-url}}"],"query":[],"variable":[]}},"response":[{"id":"763a5862-7b0e-403a-a72a-485937fbed8f","name":"updateUserDetails","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pratik Aswani","type":"text"},{"key":"email","value":"pratik123@gmail.com","type":"text"},{"key":"photo","type":"file","src":"/Users/pratikaswani/Downloads/Social Coding-3.jpg"},{"key":"codechefId","value":"tourist","type":"text","disabled":true},{"key":"leetcodeId","value":"pratik9333","type":"text"},{"key":"githubId","value":"pratik9333","type":"text"},{"key":"codeforcesId","value":"tourist","type":"text"}]},"url":"{{your-base-url}}/user"},"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":"1070"},{"key":"ETag","value":"W/\"42e-HNbLgU1bjMKf9KDbdtjufbshaSQ\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:05:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User profile is updated\",\n    \"updatedUser\": {\n        \"photo\": {\n            \"id\": \"users/vszih9qiot3tdqlta2ct\",\n            \"url\": \"https://res.cloudinary.com/pratikaswani/image/upload/v1674569117/users/vszih9qiot3tdqlta2ct.jpg\"\n        },\n        \"social\": {\n            \"githubProfile\": {\n                \"username\": \"pratik9333\",\n                \"publicRepos\": \"71\",\n                \"followers\": \"10\",\n                \"following\": \"6\"\n            },\n            \"leetcodeProfile\": {\n                \"contest\": {\n                    \"attended\": 0,\n                    \"rating\": 0\n                },\n                \"username\": \"pratik9333\",\n                \"rating\": 3922707,\n                \"solvedQuestions\": 1,\n                \"submissions\": 1,\n                \"languagesUsed\": [\n                    \"C++\",\n                    \"Python3\"\n                ]\n            },\n            \"codeforcesProfile\": {\n                \"contest\": {\n                    \"attended\": 235,\n                    \"rating\": 3768\n                },\n                \"username\": \"tourist\",\n                \"rating\": 3768,\n                \"submissions\": 4142,\n                \"languagesUsed\": [\n                    \"GNU C++20 (64)\",\n                    \"GNU C++17 (64)\",\n                    \"GNU C++17\",\n                    \"Kotlin 1.4\",\n                    \"Secret 2021\",\n                    \"Python 3\",\n                    \"GNU C++14\",\n                    \"GNU C++11\",\n                    \"Text\",\n                    \"UnknownX\",\n                    \"JSON\",\n                    \"Q#\",\n                    \"Java 8\",\n                    \"Java 7\",\n                    \"GNU C++0x\",\n                    \"GNU C++\",\n                    \"PHP\",\n                    \"Mysterious Language\",\n                    \"MS C++\",\n                    \"Delphi\",\n                    \"FPC\",\n                    \"Secret_171\",\n                    \"Tcl\"\n                ],\n                \"solvedQuestions\": 2343\n            }\n        },\n        \"_id\": \"63cfd7f992aa2e5a716b35b6\",\n        \"name\": \"Pratik Aswani\",\n        \"email\": \"pratik123@gmail.com\",\n        \"rating\": 0,\n        \"createdAt\": \"2023-01-24T13:07:05.337Z\",\n        \"updatedAt\": \"2023-01-24T14:05:27.986Z\"\n    }\n}"}],"_postman_id":"b247a1b3-ddce-472e-a323-f4fb36eb95e2"},{"name":"getUsers","id":"1523d3bc-1d6a-4d2b-b8da-d2a7b3d1867f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{your-base-url}}/user?page=1&search=Pratik","description":"<p>This api endpoint will give a list of users, you have to send a query with request.</p>\n<p>Except page, all query are optional</p>\n<ol>\n<li>First query will be the page to mention the page number, every page has limit of 6 users.</li>\n</ol>\n<ul>\n<li><a href=\"http://baseurl/user?page=1\">http://baseurl/user?page=1</a></li>\n<li><a href=\"http://baseurl/user?page=2\">http://baseurl/user?page=2</a></li>\n</ul>\n<p>2. Second query will be the limit to limit the number of users, default is 6.</p>\n<ul>\n<li><a href=\"http://baseurl/user?page=1&amp;limit=1\">http://baseurl/user?page=1&amp;limit=1</a></li>\n</ul>\n<p>This will get you just one user from first page.</p>\n<p>3. Third query will be the search to seach user by name.</p>\n<ul>\n<li><a href=\"http://baseurl/user?page=1&amp;limit=4&amp;search=pratik\">http://baseurl/user?page=1&amp;limit=4&amp;search=pratik</a></li>\n</ul>\n<p>This will get you four users from page one with users having name pratik.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"3f32840a-0d88-486d-9330-b68ae55b6501","id":"3f32840a-0d88-486d-9330-b68ae55b6501","name":"user","type":"collection"}},"urlObject":{"path":["user"],"host":["{{your-base-url}}"],"query":[{"key":"page","value":"1"},{"key":"search","value":"Pratik"}],"variable":[]}},"response":[{"id":"5ad7d29c-090f-409b-b835-9af20a56bad4","name":"get first 6 users on page 1","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{your-base-url}}/user?page=1","host":["{{your-base-url}}"],"path":["user"],"query":[{"key":"page","value":"1"}]}},"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":"1343"},{"key":"ETag","value":"W/\"53f-vGXQB7fK0id9nCDMJXJJFLWArFY\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:05:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"Users\": [\n        {\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\": 100,\n            \"createdAt\": \"2023-01-24T13:02:54.484Z\",\n            \"updatedAt\": \"2023-01-24T14:03:41.738Z\",\n            \"__v\": 0\n        },\n        {\n            \"photo\": {\n                \"id\": \"users/vszih9qiot3tdqlta2ct\",\n                \"url\": \"https://res.cloudinary.com/pratikaswani/image/upload/v1674569117/users/vszih9qiot3tdqlta2ct.jpg\"\n            },\n            \"social\": {\n                \"githubProfile\": {\n                    \"username\": \"pratik9333\",\n                    \"publicRepos\": \"71\",\n                    \"followers\": \"10\",\n                    \"following\": \"6\"\n                },\n                \"leetcodeProfile\": {\n                    \"contest\": {\n                        \"attended\": 0,\n                        \"rating\": 0\n                    },\n                    \"username\": \"pratik9333\",\n                    \"rating\": 3922707,\n                    \"solvedQuestions\": 1,\n                    \"submissions\": 1,\n                    \"languagesUsed\": [\n                        \"C++\",\n                        \"Python3\"\n                    ]\n                },\n                \"codeforcesProfile\": {\n                    \"contest\": {\n                        \"attended\": 235,\n                        \"rating\": 3768\n                    },\n                    \"username\": \"tourist\",\n                    \"rating\": 3768,\n                    \"submissions\": 4142,\n                    \"languagesUsed\": [\n                        \"GNU C++20 (64)\",\n                        \"GNU C++17 (64)\",\n                        \"GNU C++17\",\n                        \"Kotlin 1.4\",\n                        \"Secret 2021\",\n                        \"Python 3\",\n                        \"GNU C++14\",\n                        \"GNU C++11\",\n                        \"Text\",\n                        \"UnknownX\",\n                        \"JSON\",\n                        \"Q#\",\n                        \"Java 8\",\n                        \"Java 7\",\n                        \"GNU C++0x\",\n                        \"GNU C++\",\n                        \"PHP\",\n                        \"Mysterious Language\",\n                        \"MS C++\",\n                        \"Delphi\",\n                        \"FPC\",\n                        \"Secret_171\",\n                        \"Tcl\"\n                    ],\n                    \"solvedQuestions\": 2343\n                }\n            },\n            \"_id\": \"63cfd7f992aa2e5a716b35b6\",\n            \"name\": \"Pratik Aswani\",\n            \"email\": \"pratik123@gmail.com\",\n            \"rating\": 0,\n            \"createdAt\": \"2023-01-24T13:07:05.337Z\",\n            \"updatedAt\": \"2023-01-24T14:05:27.986Z\",\n            \"__v\": 0\n        }\n    ],\n    \"totalUsersCount\": 2,\n    \"filteredUsers\": 2\n}"},{"id":"881c9aa3-3520-4ce9-8e27-f6528d8d6ca1","name":"get next six users on page 2","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{your-base-url}}/user?page=2","host":["{{your-base-url}}"],"path":["user"],"query":[{"key":"page","value":"2"}]}},"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-Bk7kvVZyy0bVMu1tMLN0PgM9O64\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:06:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"Users\": [],\n    \"totalUsersCount\": 2,\n    \"filteredUsers\": 0\n}"},{"id":"569cbfbd-046a-451b-8f83-1cfc765773c2","name":"get users by searching their name","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{your-base-url}}/user?page=1&search=Pratik","host":["{{your-base-url}}"],"path":["user"],"query":[{"key":"page","value":"1"},{"key":"search","value":"Pratik"}]}},"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":"1343"},{"key":"ETag","value":"W/\"53f-vGXQB7fK0id9nCDMJXJJFLWArFY\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:06:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"Users\": [\n        {\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\": 100,\n            \"createdAt\": \"2023-01-24T13:02:54.484Z\",\n            \"updatedAt\": \"2023-01-24T14:03:41.738Z\",\n            \"__v\": 0\n        },\n        {\n            \"photo\": {\n                \"id\": \"users/vszih9qiot3tdqlta2ct\",\n                \"url\": \"https://res.cloudinary.com/pratikaswani/image/upload/v1674569117/users/vszih9qiot3tdqlta2ct.jpg\"\n            },\n            \"social\": {\n                \"githubProfile\": {\n                    \"username\": \"pratik9333\",\n                    \"publicRepos\": \"71\",\n                    \"followers\": \"10\",\n                    \"following\": \"6\"\n                },\n                \"leetcodeProfile\": {\n                    \"contest\": {\n                        \"attended\": 0,\n                        \"rating\": 0\n                    },\n                    \"username\": \"pratik9333\",\n                    \"rating\": 3922707,\n                    \"solvedQuestions\": 1,\n                    \"submissions\": 1,\n                    \"languagesUsed\": [\n                        \"C++\",\n                        \"Python3\"\n                    ]\n                },\n                \"codeforcesProfile\": {\n                    \"contest\": {\n                        \"attended\": 235,\n                        \"rating\": 3768\n                    },\n                    \"username\": \"tourist\",\n                    \"rating\": 3768,\n                    \"submissions\": 4142,\n                    \"languagesUsed\": [\n                        \"GNU C++20 (64)\",\n                        \"GNU C++17 (64)\",\n                        \"GNU C++17\",\n                        \"Kotlin 1.4\",\n                        \"Secret 2021\",\n                        \"Python 3\",\n                        \"GNU C++14\",\n                        \"GNU C++11\",\n                        \"Text\",\n                        \"UnknownX\",\n                        \"JSON\",\n                        \"Q#\",\n                        \"Java 8\",\n                        \"Java 7\",\n                        \"GNU C++0x\",\n                        \"GNU C++\",\n                        \"PHP\",\n                        \"Mysterious Language\",\n                        \"MS C++\",\n                        \"Delphi\",\n                        \"FPC\",\n                        \"Secret_171\",\n                        \"Tcl\"\n                    ],\n                    \"solvedQuestions\": 2343\n                }\n            },\n            \"_id\": \"63cfd7f992aa2e5a716b35b6\",\n            \"name\": \"Pratik Aswani\",\n            \"email\": \"pratik123@gmail.com\",\n            \"rating\": 0,\n            \"createdAt\": \"2023-01-24T13:07:05.337Z\",\n            \"updatedAt\": \"2023-01-24T14:05:27.986Z\",\n            \"__v\": 0\n        }\n    ],\n    \"totalUsersCount\": 2,\n    \"filteredUsers\": 2\n}"}],"_postman_id":"1523d3bc-1d6a-4d2b-b8da-d2a7b3d1867f"},{"name":"Leaderboard","id":"5404505b-5b6b-4d1a-866c-12308f33a7c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"up\": 1\n}","options":{"raw":{"language":"json"}}},"url":"{{your-base-url}}/user/leaderboard?page=1&search=pratik","description":"<p>This api endpoint will give a leaderboard data of top rated users, you have to send a query with request.</p>\n<p>Except page, all query are optional</p>\n<ol>\n<li>First query will be the page to mention the page number, every page has limit of 6 users.</li>\n</ol>\n<ul>\n<li><a href=\"http://baseurl/user?page=1\">http://baseurl/user?page=1</a></li>\n<li><a href=\"http://baseurl/user?page=2\">http://baseurl/user?page=2</a></li>\n</ul>\n<p>2. Second query will be the limit to limit the number of users, default is 6.</p>\n<ul>\n<li><a href=\"http://baseurl/user?page=1&amp;limit=1\">http://baseurl/user?page=1&amp;limit=1</a></li>\n</ul>\n<p>This will get you just one user from first page.</p>\n<p>3. Third query will be the search to seach user by name.</p>\n<ul>\n<li><a href=\"http://baseurl/user?page=1&amp;limit=4&amp;search=pratik\">http://baseurl/user?page=1&amp;limit=4&amp;search=pratik</a></li>\n</ul>\n<p>This will get you four users from page one with users having name pratik.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"3f32840a-0d88-486d-9330-b68ae55b6501","id":"3f32840a-0d88-486d-9330-b68ae55b6501","name":"user","type":"collection"}},"urlObject":{"path":["user","leaderboard"],"host":["{{your-base-url}}"],"query":[{"key":"page","value":"1"},{"key":"search","value":"pratik"}],"variable":[]}},"response":[{"id":"580ec2b7-4ad9-4c71-82a8-863846f11171","name":"Leaderboard contains next 6 top rated users i.e page-1","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"up\": 1\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{your-base-url}}/user/leaderboard?page=1","host":["{{your-base-url}}"],"path":["user","leaderboard"],"query":[{"key":"page","value":"1"}]}},"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":"1337"},{"key":"ETag","value":"W/\"539-hmfoBxPlPdxwVKt70nguEVqu0Xg\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:12:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\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\": 100,\n            \"createdAt\": \"2023-01-24T13:02:54.484Z\",\n            \"updatedAt\": \"2023-01-24T14:03:41.738Z\",\n            \"__v\": 0\n        },\n        {\n            \"photo\": {\n                \"id\": \"users/vszih9qiot3tdqlta2ct\",\n                \"url\": \"https://res.cloudinary.com/pratikaswani/image/upload/v1674569117/users/vszih9qiot3tdqlta2ct.jpg\"\n            },\n            \"social\": {\n                \"githubProfile\": {\n                    \"username\": \"pratik9333\",\n                    \"publicRepos\": \"71\",\n                    \"followers\": \"10\",\n                    \"following\": \"6\"\n                },\n                \"leetcodeProfile\": {\n                    \"contest\": {\n                        \"attended\": 0,\n                        \"rating\": 0\n                    },\n                    \"username\": \"pratik9333\",\n                    \"rating\": 3922707,\n                    \"solvedQuestions\": 1,\n                    \"submissions\": 1,\n                    \"languagesUsed\": [\n                        \"C++\",\n                        \"Python3\"\n                    ]\n                },\n                \"codeforcesProfile\": {\n                    \"contest\": {\n                        \"attended\": 235,\n                        \"rating\": 3768\n                    },\n                    \"username\": \"tourist\",\n                    \"rating\": 3768,\n                    \"submissions\": 4142,\n                    \"languagesUsed\": [\n                        \"GNU C++20 (64)\",\n                        \"GNU C++17 (64)\",\n                        \"GNU C++17\",\n                        \"Kotlin 1.4\",\n                        \"Secret 2021\",\n                        \"Python 3\",\n                        \"GNU C++14\",\n                        \"GNU C++11\",\n                        \"Text\",\n                        \"UnknownX\",\n                        \"JSON\",\n                        \"Q#\",\n                        \"Java 8\",\n                        \"Java 7\",\n                        \"GNU C++0x\",\n                        \"GNU C++\",\n                        \"PHP\",\n                        \"Mysterious Language\",\n                        \"MS C++\",\n                        \"Delphi\",\n                        \"FPC\",\n                        \"Secret_171\",\n                        \"Tcl\"\n                    ],\n                    \"solvedQuestions\": 2343\n                }\n            },\n            \"_id\": \"63cfd7f992aa2e5a716b35b6\",\n            \"name\": \"Pratik Aswani\",\n            \"email\": \"pratik123@gmail.com\",\n            \"rating\": 0,\n            \"createdAt\": \"2023-01-24T13:07:05.337Z\",\n            \"updatedAt\": \"2023-01-24T14:05:27.986Z\",\n            \"__v\": 0\n        }\n    ],\n    \"filteredUsers\": 2,\n    \"usersCount\": 2\n}"},{"id":"a7f44632-68e3-4a05-8142-6e853930cbf5","name":"Leaderboard contains next 6 top rated users i.e page-2","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"up\": 1\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{your-base-url}}/user/leaderboard?page=2","host":["{{your-base-url}}"],"path":["user","leaderboard"],"query":[{"key":"page","value":"2"}]}},"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":"59"},{"key":"ETag","value":"W/\"3b-RZo0eeQXDBCGzuWGpOGLAel8Zz0\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:13:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [],\n    \"filteredUsers\": 0,\n    \"usersCount\": 2\n}"},{"id":"03ead1f1-17fc-45be-a396-f1acb6dcd315","name":"Leaderboard contains first 6 top rated users which have name pratik i.e page-1 and search-pratik","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"up\": 1\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{your-base-url}}/user/leaderboard?page=1&search=pratik","host":["{{your-base-url}}"],"path":["user","leaderboard"],"query":[{"key":"page","value":"1"},{"key":"search","value":"pratik"}]}},"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":"1337"},{"key":"ETag","value":"W/\"539-hmfoBxPlPdxwVKt70nguEVqu0Xg\""},{"key":"Date","value":"Tue, 24 Jan 2023 14:13:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\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\": 100,\n            \"createdAt\": \"2023-01-24T13:02:54.484Z\",\n            \"updatedAt\": \"2023-01-24T14:03:41.738Z\",\n            \"__v\": 0\n        },\n        {\n            \"photo\": {\n                \"id\": \"users/vszih9qiot3tdqlta2ct\",\n                \"url\": \"https://res.cloudinary.com/pratikaswani/image/upload/v1674569117/users/vszih9qiot3tdqlta2ct.jpg\"\n            },\n            \"social\": {\n                \"githubProfile\": {\n                    \"username\": \"pratik9333\",\n                    \"publicRepos\": \"71\",\n                    \"followers\": \"10\",\n                    \"following\": \"6\"\n                },\n                \"leetcodeProfile\": {\n                    \"contest\": {\n                        \"attended\": 0,\n                        \"rating\": 0\n                    },\n                    \"username\": \"pratik9333\",\n                    \"rating\": 3922707,\n                    \"solvedQuestions\": 1,\n                    \"submissions\": 1,\n                    \"languagesUsed\": [\n                        \"C++\",\n                        \"Python3\"\n                    ]\n                },\n                \"codeforcesProfile\": {\n                    \"contest\": {\n                        \"attended\": 235,\n                        \"rating\": 3768\n                    },\n                    \"username\": \"tourist\",\n                    \"rating\": 3768,\n                    \"submissions\": 4142,\n                    \"languagesUsed\": [\n                        \"GNU C++20 (64)\",\n                        \"GNU C++17 (64)\",\n                        \"GNU C++17\",\n                        \"Kotlin 1.4\",\n                        \"Secret 2021\",\n                        \"Python 3\",\n                        \"GNU C++14\",\n                        \"GNU C++11\",\n                        \"Text\",\n                        \"UnknownX\",\n                        \"JSON\",\n                        \"Q#\",\n                        \"Java 8\",\n                        \"Java 7\",\n                        \"GNU C++0x\",\n                        \"GNU C++\",\n                        \"PHP\",\n                        \"Mysterious Language\",\n                        \"MS C++\",\n                        \"Delphi\",\n                        \"FPC\",\n                        \"Secret_171\",\n                        \"Tcl\"\n                    ],\n                    \"solvedQuestions\": 2343\n                }\n            },\n            \"_id\": \"63cfd7f992aa2e5a716b35b6\",\n            \"name\": \"Pratik Aswani\",\n            \"email\": \"pratik123@gmail.com\",\n            \"rating\": 0,\n            \"createdAt\": \"2023-01-24T13:07:05.337Z\",\n            \"updatedAt\": \"2023-01-24T14:05:27.986Z\",\n            \"__v\": 0\n        }\n    ],\n    \"filteredUsers\": 2,\n    \"usersCount\": 2\n}"}],"_postman_id":"5404505b-5b6b-4d1a-866c-12308f33a7c6"}],"auth":{"type":"bearer","bearer":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"392b8ca5-e2f3-4e28-8b7a-c3ac6c3352ef","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dcd3adfd-227b-41cc-914b-4af4d4334a37","type":"text/javascript","exec":[""]}}]}