{"info":{"_postman_id":"e5cfc2cd-1bd9-4b81-a4f4-334be6da0580","name":"Mentors-Students","description":"<html><head></head><body><p>This Document explain about how the vercel api and its end point working and created by using node express js and test by postman. This project provides students mentor backend api.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24927116","collectionId":"e5cfc2cd-1bd9-4b81-a4f4-334be6da0580","publishedId":"2s8ZDcyzQA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-25T15:53:01.000Z"},"item":[{"name":"Welcome","id":"8933351c-1af7-49c5-8fae-f41d9cc0d07d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/","description":"<p>Welcome page to confirm the api is working or not</p>\n","urlObject":{"protocol":"http","port":"4000","path":[""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"42697c2b-5aa1-4803-9fda-39fceced9fb0","name":"Welcome","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-s481bLnzVYUjJj71nVhHFEYee0c\""},{"key":"Date","value":"Fri, 20 Jan 2023 13:02:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"Welcome from project ! 🙋‍♂️, 🌏 🎊✨🤩"}],"_postman_id":"8933351c-1af7-49c5-8fae-f41d9cc0d07d"},{"name":"Mentors","id":"ccf464c8-dbcf-452d-8b2e-8a1b1be6f69e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n    \"id\":\"1\",\r\n    \"name\":\"Ragav\",\r\n    \"who\":\"mentor\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/mentors","description":"<p>This api end point is used to get the mentors details who are all not yet assigned to any group.</p>\n<p>If any one assigned to any group the person name will be removed from this collection and added to the assigned collection in proper manner in object.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["mentors"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2ddc70d3-438d-40ce-9556-21c5189f911a","name":"Mentors","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n    \"id\":\"1\",\r\n    \"name\":\"Ragav\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/mentors"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"ETag","value":"W/\"3c-FCPxTV3EJNcqGSNVo195IyyqX3I\""},{"key":"Date","value":"Fri, 20 Jan 2023 13:00:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63ca905c696b8d2e9c4be8b7\",\n        \"id\": \"1\",\n        \"name\": \"Ragav\"\n    }\n]"}],"_postman_id":"ccf464c8-dbcf-452d-8b2e-8a1b1be6f69e"},{"name":"Update Mentor","id":"28ca308f-145f-4d59-8b42-afcda6ef47a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"1\",\r\n    \"name\":\"Ragav.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/mentors/1","description":"<p>This api end point is used to update the mentor details based on the specific id.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["mentors","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5871c827-7faf-435b-9cbf-cfa6459d34fe","name":"Update Mentor","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":\"1\",\r\n    \"name\":\"Ragav.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/mentors/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"ETag","value":"W/\"5c-ShutYOH895Hqw6kT0TGoGJBY4Q0\""},{"key":"Date","value":"Tue, 24 Jan 2023 09:51:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true,\n    \"modifiedCount\": 0,\n    \"upsertedId\": null,\n    \"upsertedCount\": 0,\n    \"matchedCount\": 1\n}"}],"_postman_id":"28ca308f-145f-4d59-8b42-afcda6ef47a8"},{"name":"Create mentor","id":"c6cdc78f-1c35-4c0b-a9aa-de68ffaef47b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n    \"id\":\"1\",\r\n    \"name\":\"Ragav\",\r\n    \"who\":\"mentor\"\r\n    },\r\n    {\r\n    \"id\":\"2\",\r\n    \"name\":\"Jagan\",\r\n    \"who\":\"mentor\"\r\n    },\r\n    {\r\n    \"id\":\"3\",\r\n    \"name\":\"Lavish\",\r\n    \"who\":\"mentor\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/mentors","description":"<p>This post method is used to create or insert mentors in the mentor collection .</p>\n<p>we can add single mentor and also add multiple mentors at a time.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["mentors"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6cdc78f-1c35-4c0b-a9aa-de68ffaef47b"},{"name":"Delete Mentor","id":"13e8a492-729f-41d1-9846-281472310aed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/mentors/1","description":"<p>We can delete the specific mentor based on id by using the Delete method.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["mentors","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c016e8c6-cf29-4ce9-b166-dbf5d013a988","name":"Delete Mentor","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/mentors/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-fgR5yLHQ1Hpp6zDESHaY9wJreYE\""},{"key":"Date","value":"Tue, 24 Jan 2023 09:55:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true,\n    \"deletedCount\": 1\n}"}],"_postman_id":"13e8a492-729f-41d1-9846-281472310aed"},{"name":"Students","id":"c42fc5ee-a089-4402-a7cf-40d76af63e0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/students","description":"<p>This api end point is used to get the students details who are all not yet assigned to any group.</p>\n<p>If any one assigned to any group the person name will be removed from this collection and added to the assigned collection in proper manner in object.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["students"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"14a2bdbc-7a3d-4ca5-85ac-dfeb123463c9","name":"Students","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"120"},{"key":"ETag","value":"W/\"78-GWjmIiaayAfG7maOxOsU/dk0Ldo\""},{"key":"Date","value":"Fri, 20 Jan 2023 13:11:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63ca929d53804c20f6274db8\",\n        \"id\": \"1\",\n        \"name\": \"deepak\"\n    },\n    {\n        \"_id\": \"63ca929d53804c20f6274db9\",\n        \"id\": \"2\",\n        \"name\": \"Ameer\"\n    }\n]"}],"_postman_id":"c42fc5ee-a089-4402-a7cf-40d76af63e0c"},{"name":"Update Student","id":"0c58f8a7-fbf1-4514-ae98-2cfa5e9a353e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n    {\r\n        \"who\": \"students\"\r\n    }\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/students/1","description":"<p>This api end point is used to update the mentor details based on the specific id.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["students","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"eba28344-25af-4a35-9d2a-42cdd23035bd","name":"Update Student","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"who\": \"students\"\r\n    }\r\n]","options":{"raw":{"language":"javascript"}}},"url":"http://localhost:4000/students/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"92"},{"key":"ETag","value":"W/\"5c-ShutYOH895Hqw6kT0TGoGJBY4Q0\""},{"key":"Date","value":"Fri, 20 Jan 2023 13:51:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true,\n    \"modifiedCount\": 0,\n    \"upsertedId\": null,\n    \"upsertedCount\": 0,\n    \"matchedCount\": 1\n}"}],"_postman_id":"0c58f8a7-fbf1-4514-ae98-2cfa5e9a353e"},{"name":"Create Student","id":"28865c1e-d4df-49d2-b014-8746369121ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"id\": \"1\",\r\n        \"name\": \"deepak\",\r\n        \"who\":\"student\"\r\n    },\r\n    {\r\n        \"id\": \"2\",\r\n        \"name\": \"pardhu\",\r\n        \"who\":\"student\"\r\n    },\r\n    {\r\n        \"id\": \"3\",\r\n        \"name\": \"Ameer\",\r\n        \"who\":\"student\"\r\n    },\r\n    {\r\n        \"id\": \"4\",\r\n        \"name\": \"dhanonjai\",\r\n        \"who\":\"student\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/students","description":"<p>By using this post mentod we can create the student inside the student collection database</p>\n","urlObject":{"protocol":"http","port":"4000","path":["students"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5e507d0b-4c86-4fb9-8f75-177708752c63","name":"Create Student","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"id\": \"1\",\r\n        \"name\": \"deepak\",\r\n        \"who\":\"student\"\r\n    },\r\n    {\r\n        \"id\": \"2\",\r\n        \"name\": \"pardhu\",\r\n        \"who\":\"student\"\r\n    },\r\n    {\r\n        \"id\": \"3\",\r\n        \"name\": \"Ameer\",\r\n        \"who\":\"student\"\r\n    },\r\n    {\r\n        \"id\": \"4\",\r\n        \"name\": \"dhanonjai\",\r\n        \"who\":\"student\"\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-bI95485hmNmaH+YL5sTvSQiwADA\""},{"key":"Date","value":"Tue, 24 Jan 2023 09:56:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"datas added successfully\"\n}"}],"_postman_id":"28865c1e-d4df-49d2-b014-8746369121ed"},{"name":"Delete Student","id":"e0096b79-46ff-47b6-8a07-50c68b08c07f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/students/1","description":"<p>By using this delete method we can delete the specific person from the student collection database.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["students","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9acceb06-7da1-4449-8d9f-c5e0b4e02f58","name":"Delete Student","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/students/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-fgR5yLHQ1Hpp6zDESHaY9wJreYE\""},{"key":"Date","value":"Fri, 20 Jan 2023 14:12:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true,\n    \"deletedCount\": 1\n}"}],"_postman_id":"e0096b79-46ff-47b6-8a07-50c68b08c07f"},{"name":"Assigned details","id":"82aadb8b-ea5d-4cfa-a0dc-616871bcb2c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/assigned","description":"<p>This post mentod allows to get the all assigned group details in object format.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["assigned"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f6edbf59-0156-4243-a774-dd21956071fb","name":"Assigned details","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/assigned"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"292"},{"key":"ETag","value":"W/\"124-LUG2kRMT/kxT+Y3NPFApxZXusqY\""},{"key":"Date","value":"Tue, 24 Jan 2023 09:57:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63cfab86b04489f2d3a5c210\",\n        \"students\": [\n            {\n                \"_id\": \"63cfa9288116bfd808ebe2e7\",\n                \"id\": \"3\",\n                \"name\": \"Ameer\",\n                \"who\": \"student\"\n            },\n            {\n                \"_id\": \"63cfab63b04489f2d3a5c20c\",\n                \"id\": \"1\",\n                \"name\": \"deepak\",\n                \"who\": \"student\"\n            }\n        ],\n        \"id\": \"1\",\n        \"mentor\": {\n            \"_id\": \"63cfab11b04489f2d3a5c20a\",\n            \"id\": \"2\",\n            \"name\": \"Jagan\",\n            \"who\": \"mentor\"\n        }\n    }\n]"}],"_postman_id":"82aadb8b-ea5d-4cfa-a0dc-616871bcb2c7"},{"name":"create group","id":"fde12387-dc41-41dd-b921-63d10dc773fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"id\":\"1\",\r\n      \"mentor\":\"2\",\r\n      \"students\":[\"3\",\"1\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/assigned","description":"<p>In this post method we can create the group with student and mentor.</p>\n<p>one mentor and multiple student we can create</p>\n","urlObject":{"protocol":"http","port":"4000","path":["assigned"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"50247475-1ca5-4348-b40c-dace0e4d8c93","name":"create group","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n      \"id\":\"1\",\r\n      \"mentor\":\"1\",\r\n      \"students\":[\"1\",\"2\"]\r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/create-group"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-8ZLoS3Ivun/06szF9OhFbXZqw2U\""},{"key":"Date","value":"Fri, 20 Jan 2023 15:34:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true,\n    \"insertedId\": \"63cab46b32b334120deaa9d5\"\n}"}],"_postman_id":"fde12387-dc41-41dd-b921-63d10dc773fc"},{"name":"Remove-group","id":"1c71a08d-090d-4be9-b522-92fc38d4b4f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:4000/assigned/1","description":"<p>By using this delete method we can delete the group by using specific id of the assigned group.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["assigned","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0b52d691-2e48-466d-8fa3-92711787a2dd","name":"Remove-group","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/remove-group/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"38"},{"key":"ETag","value":"W/\"26-fgR5yLHQ1Hpp6zDESHaY9wJreYE\""},{"key":"Date","value":"Fri, 20 Jan 2023 16:49:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true,\n    \"deletedCount\": 1\n}"}],"_postman_id":"1c71a08d-090d-4be9-b522-92fc38d4b4f7"},{"name":"get Users","id":"3f647350-3ff3-43ef-a17a-64253892fa00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"deepak\",\r\n    \"password\":\"Ironman2205\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/users","urlObject":{"protocol":"http","port":"4000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f647350-3ff3-43ef-a17a-64253892fa00"},{"name":"signup","id":"bbf2ee03-c7cd-4a38-a09c-79f08329e1f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n   \"username\":\"deepak\",\r\n   \"password\":\"ironman22\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/users/signup","urlObject":{"protocol":"http","port":"4000","path":["users","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bbf2ee03-c7cd-4a38-a09c-79f08329e1f6"},{"name":"login","id":"fac191e3-f2d6-45a4-b57b-cd31929c00c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"deepak\",\r\n    \"password\":\"ironman22\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/users/login","urlObject":{"protocol":"http","port":"4000","path":["users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"fac191e3-f2d6-45a4-b57b-cd31929c00c1"}]}