{"info":{"_postman_id":"76a1c7e9-8dd5-4160-a63f-4b7e925cfb91","name":"Event Management Sytem","description":"<html><head></head><body><p>This will store all the endpoins of different tasks like authentication , event creation, notification etc</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"39632752","collectionId":"76a1c7e9-8dd5-4160-a63f-4b7e925cfb91","publishedId":"2sAYQXpDfK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-14T23:31:26.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register User","id":"278d73b1-6431-45ab-abab-de5f28b2e898","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Pratham","type":"text"},{"key":"email","value":"pratham27dw@gmail.com","type":"text"},{"key":"password","value":"123","type":"text"},{"key":"role","value":"admin","type":"text"}]},"url":"localhost:3000/api/v1/users/register","description":"<p>This will register the user and a access token will be generated. Password will be hashed and encrypted.</p>\n","urlObject":{"port":"3000","path":["api","v1","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"39119875-d2fa-4311-886d-a5caa13a7b7c","name":"Register User","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Pratham","type":"text"},{"key":"email","value":"pratham27dw@gmail.com","type":"text"},{"key":"password","value":"123","type":"text"},{"key":"role","value":"admin","type":"text"}]},"url":"localhost:3000/api/v1/users/register"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"582"},{"key":"ETag","value":"W/\"246-aMrv0efE/6SkDD9QijZE/8hi2O4\""},{"key":"Date","value":"Tue, 14 Jan 2025 21:36:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Verified token\",\n    \"success\": true,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ODZkOGVlZDVlNDljMTY5M2I3MTA4OSIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTczNjg5MDYwNiwiZXhwIjoxNzM4MTg2NjA2fQ.tNZ1CaKdAPAFAJmMnmLnhjdDw0WNDkOLtwnH-7vOLWY\",\n    \"userId\": \"6786d8eed5e49c1693b71089\",\n    \"data\": {\n        \"name\": \"Pratham\",\n        \"email\": \"pratham27dw@gmail.com\",\n        \"password\": \"$2a$10$kt4VfDI8PIXFmMdg.M2KQu1561.qF8b3Ve8Iv.fRwaKc6qEUbNQIi\",\n        \"role\": \"admin\",\n        \"isDeleted\": false,\n        \"deletedAt\": null,\n        \"_id\": \"6786d8eed5e49c1693b71089\",\n        \"createdAt\": \"2025-01-14T21:36:46.649Z\",\n        \"updatedAt\": \"2025-01-14T21:36:46.649Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"278d73b1-6431-45ab-abab-de5f28b2e898"},{"name":"Login User","id":"3eaccd4a-51cc-480c-a0a8-730c2b7d1cf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"prathamd549@gmail.com","type":"text"},{"key":"password","value":"123456789","type":"text"},{"key":"name","value":"Pratham27","type":"text"},{"key":"role","value":"organiser","type":"text"}]},"url":"localhost:3000/api/v1/users/register","description":"<p>This will login the user .</p>\n","urlObject":{"port":"3000","path":["api","v1","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e0350ae9-ff65-427b-ba66-51a197cf80c0","name":"Login User","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"pratham27dw@gmail.com","type":"text"},{"key":"password","value":"123","type":"text"}]},"url":"localhost:3000/api/v1/users/login"},"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":"535"},{"key":"ETag","value":"W/\"217-OsMD7+XWpgk4WrPjwmRRyaGrNS0\""},{"key":"Date","value":"Tue, 14 Jan 2025 21:42:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ODZkOGVlZDVlNDljMTY5M2I3MTA4OSIsImlhdCI6MTczNjg5MDkzOSwiZXhwIjoxNzM4MTg2OTM5fQ.HOUpJfSgzqpsZJN-wwIbZ-85mp4GR_mLjFmtMoUNNJ8\",\n    \"data\": {\n        \"_id\": \"6786d8eed5e49c1693b71089\",\n        \"name\": \"Pratham\",\n        \"email\": \"pratham27dw@gmail.com\",\n        \"password\": \"$2a$10$kt4VfDI8PIXFmMdg.M2KQu1561.qF8b3Ve8Iv.fRwaKc6qEUbNQIi\",\n        \"role\": \"admin\",\n        \"isDeleted\": false,\n        \"deletedAt\": null,\n        \"createdAt\": \"2025-01-14T21:36:46.649Z\",\n        \"updatedAt\": \"2025-01-14T21:36:46.649Z\",\n        \"__v\": 0\n    },\n    \"userId\": \"6786d8eed5e49c1693b71089\"\n}"}],"_postman_id":"3eaccd4a-51cc-480c-a0a8-730c2b7d1cf6"},{"name":"Get user","id":"8bda0803-a516-4389-91e0-40ad718c2755","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"localhost:3000/api/v1/users/6786833e017a1a69e0e648a9","description":"<p>This endpoint will fetch the user details but user can fetch details of itself only . Admin can fetch any user details.</p>\n","urlObject":{"port":"3000","path":["api","v1","users","6786833e017a1a69e0e648a9"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"802deef2-c17c-4f9e-ae34-b9daa19d53eb","name":"Get user","originalRequest":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"localhost:3000/api/v1/users/6786833e017a1a69e0e648a9"},"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":"384"},{"key":"ETag","value":"W/\"180-2eNhJOLa75eUK9NIV/32YvfXLK0\""},{"key":"Date","value":"Tue, 14 Jan 2025 21:50:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"6786833e017a1a69e0e648a9\",\n        \"name\": \"kaddu\",\n        \"email\": \"pratham.2022ug4019@iiitranchi.ac.in\",\n        \"password\": \"$2a$10$2B/YyPg3vXov0QrSupmAEe378dDNkkeuaXFqBD6t0WwgzW.SW7MeS\",\n        \"role\": \"user\",\n        \"isDeleted\": false,\n        \"deletedAt\": null,\n        \"createdAt\": \"2025-01-14T15:31:10.412Z\",\n        \"updatedAt\": \"2025-01-14T15:31:10.412Z\",\n        \"__v\": 0\n    },\n    \"success\": true,\n    \"err\": {},\n    \"message\": \"Successfully fetched the user info\"\n}"}],"_postman_id":"8bda0803-a516-4389-91e0-40ad718c2755"},{"name":"Update User","id":"c82f8048-10e4-424f-a232-d61f74b23626","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Kaddu dwivedi","type":"text"}]},"url":"localhost:3000/api/v1/users/6786833e017a1a69e0e648a9","description":"<p>This endpoint will update user details.</p>\n","urlObject":{"port":"3000","path":["api","v1","users","6786833e017a1a69e0e648a9"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"49403d93-5015-4d73-b3c1-57e6ebb82cf3","name":"Update user","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Kaddu dwivedi","type":"text"}]},"url":"localhost:3000/api/v1/users/6786833e017a1a69e0e648a9"},"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":"392"},{"key":"ETag","value":"W/\"188-rxEVBF/d8VHYRK9CSOSEnNvm5Pw\""},{"key":"Date","value":"Tue, 14 Jan 2025 21:53:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"_id\": \"6786833e017a1a69e0e648a9\",\n        \"name\": \"Kaddu dwivedi\",\n        \"email\": \"pratham.2022ug4019@iiitranchi.ac.in\",\n        \"password\": \"$2a$10$2B/YyPg3vXov0QrSupmAEe378dDNkkeuaXFqBD6t0WwgzW.SW7MeS\",\n        \"role\": \"user\",\n        \"isDeleted\": false,\n        \"deletedAt\": null,\n        \"createdAt\": \"2025-01-14T15:31:10.412Z\",\n        \"updatedAt\": \"2025-01-14T21:53:19.012Z\",\n        \"__v\": 0\n    },\n    \"success\": true,\n    \"err\": {},\n    \"message\": \"Successfully updated the user info\"\n}"}],"_postman_id":"c82f8048-10e4-424f-a232-d61f74b23626"}],"id":"e60b7d2c-c23b-49b2-97ce-a7cc8ee5fa0d","description":"<p>In Authentication folder, there are all the api endpoints related to authentication and authorisation via JWT.</p>\n","_postman_id":"e60b7d2c-c23b-49b2-97ce-a7cc8ee5fa0d"},{"name":"Event-management","item":[{"name":"Event creation","id":"67277468-293c-476e-a6bd-01d1663fad45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"About Firebase 2F Authentication","type":"text"},{"key":"description","value":"We will teach you all about authentication with the help of firebase.","type":"text"},{"key":"date","value":"2025-01-22","type":"text"},{"key":"location","value":"Gorakhpur","type":"text"},{"key":"capacity","value":"100","type":"text"}]},"url":"localhost:3000/api/v1/events","description":"<p>This endpoint will help you create the event. But only organiser can create an event.</p>\n","urlObject":{"port":"3000","path":["api","v1","events"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"843075c3-a41c-463e-ab58-ae52bafd4a66","name":"Creating a event","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"About Firebase 2F Authentication","type":"text"},{"key":"description","value":"We will teach you all about authentication with the help of firebase.","type":"text"},{"key":"date","value":"2025-01-22","type":"text"},{"key":"location","value":"Gorakhpur","type":"text"},{"key":"capacity","value":"100","type":"text"}]},"url":"localhost:3000/api/v1/events"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"368"},{"key":"ETag","value":"W/\"170-c/mt7ZunnSDMI+uwMnFOxn58YHk\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:58:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Event created successfully\",\n    \"data\": {\n        \"name\": \"About Firebase 2F Authentication\",\n        \"description\": \"We will teach you all about authentication with the help of firebase.\",\n        \"date\": \"2025-01-22T00:00:00.000Z\",\n        \"location\": \"Gorakhpur\",\n        \"capacity\": 100,\n        \"organizer\": \"6786ebbe6f8f615db4ef9c5f\",\n        \"attendees\": [],\n        \"_id\": \"6786ec05387f718c265611c8\",\n        \"__v\": 0\n    },\n    \"success\": true,\n    \"err\": {}\n}"}],"_postman_id":"67277468-293c-476e-a6bd-01d1663fad45"},{"name":"Fetch all events","id":"7a3a1683-0c44-47bd-a1df-8f2c3d57b406","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/v1/events","description":"<p>This endpoint will fetch all the hosted events.</p>\n","urlObject":{"port":"3000","path":["api","v1","events"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"58a0025f-6af3-4b35-b51a-8bcdf74e017e","name":"fetch the events","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/v1/events"},"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":"1429"},{"key":"ETag","value":"W/\"595-1MUMw+tARzTxoyIsr7OdcXSXcJg\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:59:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Events fetched successfully\",\n    \"data\": [\n        {\n            \"_id\": \"67868247017a1a69e0e64898\",\n            \"name\": \"About Gemini and Nextjs \",\n            \"description\": \"We will learn about gemini api intigration\",\n            \"date\": \"2025-01-18T00:00:00.000Z\",\n            \"location\": \"Ranchi\",\n            \"capacity\": 400,\n            \"organizer\": \"67865bef8b3353f22164a2bb\",\n            \"attendees\": [\n                \"67865c1d8b3353f22164a2be\",\n                \"67865c2d8b3353f22164a2c1\",\n                \"67865c628b3353f22164a2c7\",\n                \"6786830e017a1a69e0e648a6\",\n                \"6786833e017a1a69e0e648a9\"\n            ],\n            \"__v\": 5\n        },\n        {\n            \"_id\": \"6786b84d4c967b788e527cc4\",\n            \"name\": \"About internships\",\n            \"description\": \"We will talk about different opportunities \",\n            \"date\": \"2025-01-19T00:00:00.000Z\",\n            \"location\": \"Ranchi\",\n            \"capacity\": 40,\n            \"organizer\": \"67865bef8b3353f22164a2bb\",\n            \"attendees\": [\n                \"67865c1d8b3353f22164a2be\",\n                \"67865c2d8b3353f22164a2c1\",\n                \"67865c628b3353f22164a2c7\",\n                \"6786830e017a1a69e0e648a6\"\n            ],\n            \"__v\": 4\n        },\n        {\n            \"_id\": \"6786b8834c967b788e527cc6\",\n            \"name\": \"About DSA\",\n            \"description\": \"We will talk about 20 different patterns of problems\",\n            \"date\": \"2025-01-20T00:00:00.000Z\",\n            \"location\": \"Ranchi\",\n            \"capacity\": 50,\n            \"organizer\": \"67865bef8b3353f22164a2bb\",\n            \"attendees\": [\n                \"67865c1d8b3353f22164a2be\",\n                \"67865c2d8b3353f22164a2c1\"\n            ],\n            \"__v\": 4\n        },\n        {\n            \"_id\": \"6786ec05387f718c265611c8\",\n            \"name\": \"About Firebase 2F Authentication\",\n            \"description\": \"We will teach you all about authentication with the help of firebase.\",\n            \"date\": \"2025-01-22T00:00:00.000Z\",\n            \"location\": \"Gorakhpur\",\n            \"capacity\": 100,\n            \"organizer\": \"6786ebbe6f8f615db4ef9c5f\",\n            \"attendees\": [],\n            \"__v\": 0\n        }\n    ],\n    \"success\": true,\n    \"err\": {}\n}"}],"_postman_id":"7a3a1683-0c44-47bd-a1df-8f2c3d57b406"},{"name":"Fetch specific event","id":"50103491-974f-4c02-9625-386318d43dd7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/v1/events/67868247017a1a69e0e64898","description":"<p>This endpoint will fetch details of a specific event.</p>\n","urlObject":{"port":"3000","path":["api","v1","events","67868247017a1a69e0e64898"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c8b77043-bc1b-40dd-8f69-4a37d641dfb0","name":"fetch specific event","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/v1/events/67868247017a1a69e0e64898"},"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":"736"},{"key":"ETag","value":"W/\"2e0-obGDpe1044yWdDg5AqQQqqqFJEI\""},{"key":"Date","value":"Tue, 14 Jan 2025 23:00:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Event fetched successfully\",\n    \"data\": {\n        \"_id\": \"67868247017a1a69e0e64898\",\n        \"name\": \"About Gemini and Nextjs \",\n        \"description\": \"We will learn about gemini api intigration\",\n        \"date\": \"2025-01-18T00:00:00.000Z\",\n        \"location\": \"Ranchi\",\n        \"capacity\": 400,\n        \"organizer\": null,\n        \"attendees\": [\n            {\n                \"_id\": \"67865c1d8b3353f22164a2be\",\n                \"name\": \"Pratham274\",\n                \"email\": \"prath@gmail.com\"\n            },\n            {\n                \"_id\": \"67865c2d8b3353f22164a2c1\",\n                \"name\": \"Purvi\",\n                \"email\": \"purvi@gmail.com\"\n            },\n            {\n                \"_id\": \"67865c628b3353f22164a2c7\",\n                \"name\": \"Ranjan\",\n                \"email\": \"rahul@gmail.com\"\n            },\n            {\n                \"_id\": \"6786830e017a1a69e0e648a6\",\n                \"name\": \"Joyboy\",\n                \"email\": \"pratham.gungun12345@gmail.com\"\n            },\n            {\n                \"_id\": \"6786833e017a1a69e0e648a9\",\n                \"name\": \"Kaddu dwivedi\",\n                \"email\": \"pratham.2022ug4019@iiitranchi.ac.in\"\n            }\n        ],\n        \"__v\": 5\n    },\n    \"success\": true,\n    \"err\": {}\n}"}],"_postman_id":"50103491-974f-4c02-9625-386318d43dd7"},{"name":"Update event details","id":"857cb67d-cdfb-49c3-a872-ea2e107bf40d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"date","value":"2025-01-31","type":"text"}]},"url":"localhost:3000/api/v1/events/6786ec05387f718c265611c8","description":"<p>This endpoint will help you update the event details but only organiser will be able to do so.</p>\n","urlObject":{"port":"3000","path":["api","v1","events","6786ec05387f718c265611c8"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0a26b624-01e2-43d4-81d1-2345e81ccbf6","name":"Updating the event details","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"date","value":"2025-01-31","type":"text"}]},"url":"localhost:3000/api/v1/events/6786ec05387f718c265611c8"},"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":"368"},{"key":"ETag","value":"W/\"170-qUFTUdS+TfMpmZZRYaHIjyD/W3M\""},{"key":"Date","value":"Tue, 14 Jan 2025 23:09:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Event updated successfully\",\n    \"data\": {\n        \"_id\": \"6786ec05387f718c265611c8\",\n        \"name\": \"About Firebase 2F Authentication\",\n        \"description\": \"We will teach you all about authentication with the help of firebase.\",\n        \"date\": \"2025-01-31T00:00:00.000Z\",\n        \"location\": \"Gorakhpur\",\n        \"capacity\": 100,\n        \"organizer\": \"6786ebbe6f8f615db4ef9c5f\",\n        \"attendees\": [],\n        \"__v\": 0\n    },\n    \"success\": true,\n    \"err\": {}\n}"}],"_postman_id":"857cb67d-cdfb-49c3-a872-ea2e107bf40d"},{"name":"Delete event","id":"0bc2f873-aa74-4731-bd1a-4d2e2b28aff3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:3000/api/v1/events/6786ec05387f718c265611c8","description":"<p>This endpoint will help you delete the event details but only organiser will be able to do so.</p>\n","urlObject":{"port":"3000","path":["api","v1","events","6786ec05387f718c265611c8"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a7db7a07-5d62-442e-842e-1539b0f05b0a","name":"Delete the event","originalRequest":{"method":"DELETE","header":[],"url":"localhost:3000/api/v1/events/6786ec05387f718c265611c8"},"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":"368"},{"key":"ETag","value":"W/\"170-B/nPxbnapibESlzkCet6E6k8ZDE\""},{"key":"Date","value":"Tue, 14 Jan 2025 23:10:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Event deleted successfully\",\n    \"data\": {\n        \"_id\": \"6786ec05387f718c265611c8\",\n        \"name\": \"About Firebase 2F Authentication\",\n        \"description\": \"We will teach you all about authentication with the help of firebase.\",\n        \"date\": \"2025-01-31T00:00:00.000Z\",\n        \"location\": \"Gorakhpur\",\n        \"capacity\": 100,\n        \"organizer\": \"6786ebbe6f8f615db4ef9c5f\",\n        \"attendees\": [],\n        \"__v\": 0\n    },\n    \"success\": true,\n    \"err\": {}\n}"}],"_postman_id":"0bc2f873-aa74-4731-bd1a-4d2e2b28aff3"}],"id":"a90ec947-9e53-4668-a415-cfb635b67c18","description":"<p>In Event-management folder, there are api endpoints with the help of which you can create, delete, get, update event .</p>\n","_postman_id":"a90ec947-9e53-4668-a415-cfb635b67c18"},{"name":"Event Registration and Attendee","item":[{"name":"Registering for event","id":"595e34d4-6aed-4f72-b145-46329759af6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"localhost:3000/api/v1/events/6786b8834c967b788e527cc6/register","description":"<p>This endpoint will help you register for the event.</p>\n","urlObject":{"port":"3000","path":["api","v1","events","6786b8834c967b788e527cc6","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1e16eef0-e8b3-4f2c-9888-9e42dfbca775","name":"Register for event","originalRequest":{"method":"POST","header":[],"url":"localhost:3000/api/v1/events/6786b8834c967b788e527cc6/register"},"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":"460"},{"key":"ETag","value":"W/\"1cc-Y1RclrXVY8SUF7+wqaKKsOoiqsU\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:21:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Registered successfully\",\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"6786b8834c967b788e527cc6\",\n        \"name\": \"About DSA\",\n        \"description\": \"We will talk about 20 different patterns of problems\",\n        \"date\": \"2025-01-20T00:00:00.000Z\",\n        \"location\": \"Ranchi\",\n        \"capacity\": 50,\n        \"organizer\": {\n            \"_id\": \"67865bef8b3353f22164a2bb\",\n            \"name\": \"Pratham27\",\n            \"email\": \"prathamd549@gmail.com\"\n        },\n        \"attendees\": [\n            \"67865c1d8b3353f22164a2be\",\n            \"67865c2d8b3353f22164a2c1\",\n            \"6786d8eed5e49c1693b71089\"\n        ],\n        \"__v\": 3\n    },\n    \"err\": {}\n}"}],"_postman_id":"595e34d4-6aed-4f72-b145-46329759af6a"},{"name":"get event attendees","id":"ab494c39-8b65-49cb-b080-146827427a4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/v1/events/6786b8834c967b788e527cc6/attendees","description":"<p>This endpoint will fetch the information like name and email of all the attendees of a specific event.</p>\n","urlObject":{"port":"3000","path":["api","v1","events","6786b8834c967b788e527cc6","attendees"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ec882b74-abe7-4877-b079-e0d4cb233970","name":"get event attendees","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/v1/events/6786b8834c967b788e527cc6/attendees"},"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":"318"},{"key":"ETag","value":"W/\"13e-/VQV3zWSbGp3bIvq122sM1Ps820\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:22:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"_id\": \"67865c1d8b3353f22164a2be\",\n            \"name\": \"Pratham274\",\n            \"email\": \"prath@gmail.com\"\n        },\n        {\n            \"_id\": \"67865c2d8b3353f22164a2c1\",\n            \"name\": \"Purvi\",\n            \"email\": \"purvi@gmail.com\"\n        },\n        {\n            \"_id\": \"6786d8eed5e49c1693b71089\",\n            \"name\": \"Pratham\",\n            \"email\": \"pratham27dw@gmail.com\"\n        }\n    ],\n    \"message\": \"Attendees fetched successfully\",\n    \"err\": {}\n}"}],"_postman_id":"ab494c39-8b65-49cb-b080-146827427a4c"},{"name":"Cancel registration","id":"27a5628b-2b05-4a74-bf55-da1416dc3e8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:3000/api/v1/events/6786b8834c967b788e527cc6/register","description":"<p>This endpoint will help you cancel your registration.</p>\n","urlObject":{"port":"3000","path":["api","v1","events","6786b8834c967b788e527cc6","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e39f696d-de3c-4427-bdcb-8c045d46e4ee","name":"Cancel registration","originalRequest":{"method":"DELETE","header":[],"url":"localhost:3000/api/v1/events/6786b8834c967b788e527cc6/register"},"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":"534"},{"key":"ETag","value":"W/\"216-WbPIrUOBtQSR4ngAmIon3CVUwgE\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:23:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Registration canceled\",\n    \"data\": {\n        \"_id\": \"6786b8834c967b788e527cc6\",\n        \"name\": \"About DSA\",\n        \"description\": \"We will talk about 20 different patterns of problems\",\n        \"date\": \"2025-01-20T00:00:00.000Z\",\n        \"location\": \"Ranchi\",\n        \"capacity\": 50,\n        \"organizer\": {\n            \"_id\": \"67865bef8b3353f22164a2bb\",\n            \"name\": \"Pratham27\",\n            \"email\": \"prathamd549@gmail.com\"\n        },\n        \"attendees\": [\n            {\n                \"_id\": \"67865c1d8b3353f22164a2be\",\n                \"name\": \"Pratham274\",\n                \"email\": \"prath@gmail.com\"\n            },\n            {\n                \"_id\": \"67865c2d8b3353f22164a2c1\",\n                \"name\": \"Purvi\",\n                \"email\": \"purvi@gmail.com\"\n            }\n        ],\n        \"__v\": 4\n    },\n    \"err\": {}\n}"}],"_postman_id":"27a5628b-2b05-4a74-bf55-da1416dc3e8f"}],"id":"4d161bfc-e39f-4722-a6cf-3940319a8b8f","description":"<p>In this folder, there are endpoints which can help you register for the event, cancel your registration and get attendees information.</p>\n","_postman_id":"4d161bfc-e39f-4722-a6cf-3940319a8b8f"},{"name":"Admin APIs","item":[{"name":"Fetch all users by Admin","id":"a5253d03-f277-46c4-8730-c4fba0066473","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"localhost:3000/api/v1/admin/users","description":"<p>This will fetch all the users that have registered for the website. This endpoint is only accessible for by the admin.</p>\n","urlObject":{"port":"3000","path":["api","v1","admin","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"17ac8fb5-45be-4b11-af2b-1e31f9303dcb","name":"Fetch all users","originalRequest":{"method":"GET","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"localhost:3000/api/v1/admin/users"},"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":"1208"},{"key":"ETag","value":"W/\"4b8-n7YhPhYyyow7B08WkCK6TAUgXJ8\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:05:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Users retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"67865716ca82763c2d7c4960\",\n            \"name\": \"Pratham\",\n            \"email\": \"pratham@gmail.com\",\n            \"role\": \"admin\",\n            \"isDeleted\": false,\n            \"deletedAt\": null,\n            \"createdAt\": \"2025-01-14T12:22:46.575Z\",\n            \"updatedAt\": \"2025-01-14T12:22:46.575Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"67865bef8b3353f22164a2bb\",\n            \"name\": \"Pratham27\",\n            \"email\": \"prathamd549@gmail.com\",\n            \"role\": \"organiser\",\n            \"isDeleted\": false,\n            \"deletedAt\": null,\n            \"createdAt\": \"2025-01-14T12:43:27.169Z\",\n            \"updatedAt\": \"2025-01-14T12:43:27.169Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"67865c1d8b3353f22164a2be\",\n            \"name\": \"Pratham274\",\n            \"email\": \"prath@gmail.com\",\n            \"role\": \"user\",\n            \"isDeleted\": false,\n            \"deletedAt\": null,\n            \"createdAt\": \"2025-01-14T12:44:13.439Z\",\n            \"updatedAt\": \"2025-01-14T12:44:13.439Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"67865c2d8b3353f22164a2c1\",\n            \"name\": \"Purvi\",\n            \"email\": \"purvi@gmail.com\",\n            \"role\": \"user\",\n            \"isDeleted\": false,\n            \"deletedAt\": null,\n            \"createdAt\": \"2025-01-14T12:44:29.537Z\",\n            \"updatedAt\": \"2025-01-14T12:44:29.537Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"67865c628b3353f22164a2c7\",\n            \"name\": \"Ranjan\",\n            \"email\": \"rahul@gmail.com\",\n            \"role\": \"user\",\n            \"isDeleted\": false,\n            \"deletedAt\": null,\n            \"createdAt\": \"2025-01-14T12:45:22.366Z\",\n            \"updatedAt\": \"2025-01-14T12:45:22.366Z\",\n            \"__v\": 0\n        }\n    ],\n    \"pagination\": {\n        \"totalUsers\": 9,\n        \"currentPage\": 1,\n        \"totalPages\": 2\n    }\n}"}],"_postman_id":"a5253d03-f277-46c4-8730-c4fba0066473"},{"name":"delete(soft) user by admin","id":"3aa609e7-3ef6-4ee1-880f-8591bb2774cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:3000/api/v1/admin/users/67865eaf58a9d8947be61d17","description":"<p>This endpoint will delete(soft) the user registrations from all the events as well as from database.</p>\n<p>Soft deletion mean user info will be in database but isDeleted will be marked as true.</p>\n","urlObject":{"port":"3000","path":["api","v1","admin","users","67865eaf58a9d8947be61d17"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"515e14e6-a0b2-4f9b-9b2d-5b55bbb8f004","name":"Delete user by admin","originalRequest":{"method":"DELETE","header":[],"url":"localhost:3000/api/v1/admin/users/67865eaf58a9d8947be61d17"},"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":"371"},{"key":"ETag","value":"W/\"173-dvWpzoZk5TT7szqx3lk/QgmlLu8\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:08:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User deleted successfully\",\n    \"data\": {\n        \"_id\": \"67865eaf58a9d8947be61d17\",\n        \"name\": \"Pallavi\",\n        \"email\": \"pallavi@gmail.com\",\n        \"password\": \"$2a$10$pJpfUDmaa68q37Yj9SUAhevD8Ohf1pUS1Ait5.ZNhla40o7OQIJQm\",\n        \"role\": \"user\",\n        \"isDeleted\": true,\n        \"deletedAt\": \"2025-01-14T22:08:52.550Z\",\n        \"createdAt\": \"2025-01-14T12:55:11.862Z\",\n        \"updatedAt\": \"2025-01-14T22:08:52.550Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"3aa609e7-3ef6-4ee1-880f-8591bb2774cb"},{"name":"Fetch all events by admin","id":"0acb40a7-7982-4571-afa7-96b09ac1fd03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3000/api/v1/admin/events","description":"<p>This endpoint will help you fetch all the events that are hosted on the platform. Again, this endpoint is only accessible by admin.</p>\n","urlObject":{"port":"3000","path":["api","v1","admin","events"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dfa7d074-3a49-4b98-904e-306f4dd93481","name":"Fetched all events","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/v1/admin/events"},"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":"643"},{"key":"ETag","value":"W/\"283-ml9hlzGkXsxC8mVhptY6KQSiXI8\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:10:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Events retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"67868247017a1a69e0e64898\",\n            \"name\": \"About Gemini and Nextjs \",\n            \"date\": \"2025-01-18T00:00:00.000Z\",\n            \"location\": \"Ranchi\",\n            \"capacity\": 400,\n            \"organizer\": \"67865bef8b3353f22164a2bb\",\n            \"registrationsCount\": 5\n        },\n        {\n            \"_id\": \"6786b84d4c967b788e527cc4\",\n            \"name\": \"About internships\",\n            \"date\": \"2025-01-19T00:00:00.000Z\",\n            \"location\": \"Ranchi\",\n            \"capacity\": 40,\n            \"organizer\": \"67865bef8b3353f22164a2bb\",\n            \"registrationsCount\": 4\n        },\n        {\n            \"_id\": \"6786b8834c967b788e527cc6\",\n            \"name\": \"About DSA\",\n            \"date\": \"2025-01-20T00:00:00.000Z\",\n            \"location\": \"Ranchi\",\n            \"capacity\": 50,\n            \"organizer\": \"67865bef8b3353f22164a2bb\",\n            \"registrationsCount\": 2\n        }\n    ]\n}"}],"_postman_id":"0acb40a7-7982-4571-afa7-96b09ac1fd03"}],"id":"30990cfa-eb09-4fb8-b627-2808b2f03385","description":"<p>In Admin folder , there are apis by which admin can manipulate data. You can only access these endpoints if you are a admin.</p>\n","_postman_id":"30990cfa-eb09-4fb8-b627-2808b2f03385"},{"name":"Analytics APIs","item":[{"name":"Popular events","id":"435f1e4e-9b9c-4af5-ae9b-0e1f95387ad5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/v1/analytics/events/popular","description":"<p>This endpoint will fetch all the popular events. Popular events is determined by events with most no of attendees.</p>\n","urlObject":{"port":"3000","path":["api","v1","analytics","events","popular"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6639d2e7-2841-48e5-a737-5b06e7d6b5ed","name":"popular events","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/v1/analytics/events/popular"},"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":"606"},{"key":"ETag","value":"W/\"25e-cRIOVYZ3dp069jzHqzNQqUPXcCU\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:00:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"_id\": \"67868247017a1a69e0e64898\",\n            \"name\": \"About Gemini and Nextjs \",\n            \"attendees\": [\n                \"67865c1d8b3353f22164a2be\",\n                \"67865c2d8b3353f22164a2c1\",\n                \"67865c628b3353f22164a2c7\",\n                \"6786830e017a1a69e0e648a6\",\n                \"6786833e017a1a69e0e648a9\"\n            ]\n        },\n        {\n            \"_id\": \"6786b84d4c967b788e527cc4\",\n            \"name\": \"About internships\",\n            \"attendees\": [\n                \"67865c1d8b3353f22164a2be\",\n                \"67865c2d8b3353f22164a2c1\",\n                \"67865c628b3353f22164a2c7\",\n                \"6786830e017a1a69e0e648a6\"\n            ]\n        },\n        {\n            \"_id\": \"6786b8834c967b788e527cc6\",\n            \"name\": \"About DSA\",\n            \"attendees\": [\n                \"67865c1d8b3353f22164a2be\",\n                \"67865c2d8b3353f22164a2c1\"\n            ]\n        }\n    ],\n    \"message\": \"Popular events fetched successfully\",\n    \"err\": {}\n}"}],"_postman_id":"435f1e4e-9b9c-4af5-ae9b-0e1f95387ad5"},{"name":"Most active users","id":"87747f84-1d8a-41cc-aeab-d1f4023b2b25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/v1/analytics/users/active","description":"<p>This endpoint will fetch most active users. The users who have most no of participation in different events is termed as most active user.</p>\n","urlObject":{"port":"3000","path":["api","v1","analytics","users","active"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"32440e8e-f713-4504-b1ad-e2388ff44602","name":"Most active users","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/v1/analytics/users/active"},"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":"447"},{"key":"ETag","value":"W/\"1bf-qoaCeOdSiKmmGpmnHGq72lUbS9Y\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:01:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Top 5 most active users retrieved successfully\",\n    \"data\": [\n        {\n            \"name\": \"Pratham274\",\n            \"email\": \"prath@gmail.com\",\n            \"registrations\": 3\n        },\n        {\n            \"name\": \"Purvi\",\n            \"email\": \"purvi@gmail.com\",\n            \"registrations\": 3\n        },\n        {\n            \"name\": \"Ranjan\",\n            \"email\": \"rahul@gmail.com\",\n            \"registrations\": 2\n        },\n        {\n            \"name\": \"Joyboy\",\n            \"email\": \"pratham.gungun12345@gmail.com\",\n            \"registrations\": 2\n        },\n        {\n            \"name\": \"Kaddu dwivedi\",\n            \"email\": \"pratham.2022ug4019@iiitranchi.ac.in\",\n            \"registrations\": 1\n        }\n    ],\n    \"err\": {}\n}"}],"_postman_id":"87747f84-1d8a-41cc-aeab-d1f4023b2b25"},{"name":"Get event stats","id":"7ad8dbb3-f546-4184-a057-d7d2c7bb33e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/api/v1/analytics/events/67868247017a1a69e0e64898/stats","description":"<p>This endpoint will fetch the stats of a specific event like total registrations, capacity etc.</p>\n","urlObject":{"port":"3000","path":["api","v1","analytics","events","67868247017a1a69e0e64898","stats"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e9f76dd1-a40a-4c5f-833b-6bf1b6afb9d6","name":"event stats","originalRequest":{"method":"GET","header":[],"url":"localhost:3000/api/v1/analytics/events/67868247017a1a69e0e64898/stats"},"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":"589"},{"key":"ETag","value":"W/\"24d-/zXG6rqPA05Z7G9id/cjl1RBgDg\""},{"key":"Date","value":"Tue, 14 Jan 2025 22:02:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"67868247017a1a69e0e64898\",\n        \"name\": \"About Gemini and Nextjs \",\n        \"attendees\": [\n            {\n                \"_id\": \"67865c1d8b3353f22164a2be\",\n                \"name\": \"Pratham274\",\n                \"email\": \"prath@gmail.com\"\n            },\n            {\n                \"_id\": \"67865c2d8b3353f22164a2c1\",\n                \"name\": \"Purvi\",\n                \"email\": \"purvi@gmail.com\"\n            },\n            {\n                \"_id\": \"67865c628b3353f22164a2c7\",\n                \"name\": \"Ranjan\",\n                \"email\": \"rahul@gmail.com\"\n            },\n            {\n                \"_id\": \"6786830e017a1a69e0e648a6\",\n                \"name\": \"Joyboy\",\n                \"email\": \"pratham.gungun12345@gmail.com\"\n            },\n            {\n                \"_id\": \"6786833e017a1a69e0e648a9\",\n                \"name\": \"Kaddu dwivedi\",\n                \"email\": \"pratham.2022ug4019@iiitranchi.ac.in\"\n            }\n        ]\n    },\n    \"message\": \"Event stats fetched successfully\",\n    \"err\": {}\n}"}],"_postman_id":"7ad8dbb3-f546-4184-a057-d7d2c7bb33e2"}],"id":"0eda9a8b-5018-400d-94ef-628c40d6d865","description":"<p>In Analytics folder, there are api endpoints which will help you find analytics of an event like registration count, most active users based on registrations etc.</p>\n","_postman_id":"0eda9a8b-5018-400d-94ef-628c40d6d865"},{"name":"Notifications","item":[{"name":"Send notification","id":"ff0d3242-dfbb-4949-8219-5f6004ac4ac1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"event_id","value":"67868247017a1a69e0e64898","type":"text"},{"key":"message","value":"This will be your best expreince of life","type":"text"}]},"url":"localhost:3000/api/v1/notifications/send","urlObject":{"port":"3000","path":["api","v1","notifications","send"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c84bed49-6df1-4412-92f4-719b0005296b","name":"notification via email","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"event_id","value":"67868247017a1a69e0e64898","type":"text"},{"key":"message","value":"This will be your best expreince of life","type":"text"}]},"url":"localhost:3000/api/v1/notifications/send"},"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":"64"},{"key":"ETag","value":"W/\"40-3vCGJvF4EpUYTjIS/4fnD97wd1I\""},{"key":"Date","value":"Tue, 14 Jan 2025 21:58:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Notifications sent to all attendees\",\n    \"success\": true\n}"}],"_postman_id":"ff0d3242-dfbb-4949-8219-5f6004ac4ac1"}],"id":"6219bbaa-f96b-426d-afb2-165febfc90cf","description":"<p>In this folder there is a api endpoint for sending notification to all the attendees of a specific event</p>\n","_postman_id":"6219bbaa-f96b-426d-afb2-165febfc90cf"}]}