{"info":{"_postman_id":"52fbda71-1d22-431c-a865-d96745ed3bae","name":"TruLern LMS API","description":"<html><head></head><body><h1 id=\"trulern-enterprise-nodejs-lms-rest-api-v20-headless\">TruLern - Enterprise Node.js LMS REST API v2.0 (Headless)</h1>\n<p>Welcome to the production-ready API reference for <strong>TruLern Enterprise LMS v2.0</strong>. This high-performance backend solution offers a complete, role-based architecture with <strong>0 vulnerabilities</strong> (<code>npm audit</code> clean).</p>\n<hr>\n<h2 id=\"🚀-key-upgrades-in-v20\">🚀 Key Upgrades in v2.0</h2>\n<ul>\n<li><p><strong>Expanded Footprint:</strong> Upgraded from 78 base endpoints to a comprehensive suite of <strong>150+ production-ready endpoints</strong>.</p>\n</li>\n<li><p><strong>Enterprise Modularization:</strong> Clean architectural separation between Core LMS paths and advanced admin utilities.</p>\n</li>\n<li><p><strong>Super Admin Engine:</strong> Dedicated structural paths for platform control, user management, and global configuration.</p>\n</li>\n</ul>\n<hr>\n<h2 id=\"🔥-new-enterprise-modules-v20\">🔥 New Enterprise Modules (v2.0)</h2>\n<h3 id=\"👑-super-admin-god-mode-12-endpoints\">👑 Super Admin God Mode (12+ Endpoints)</h3>\n<ul>\n<li><p><strong>Shadow Mode:</strong> Seamless user impersonation capability allowing admins to securely log in as, diagnose, and audit any student or instructor account in real-time.</p>\n</li>\n<li><p><strong>Platform Control:</strong> Global platform configuration, user management, system-wide settings, and licensing parameters.</p>\n</li>\n</ul>\n<h3 id=\"📊-analytics-engine-2-endpoints\">📊 Analytics Engine (2+ Endpoints)</h3>\n<ul>\n<li>Comprehensive data pipelines tracking learner progress, instructor performance metrics, revenue logs, and engagement velocity across courses.</li>\n</ul>\n<h3 id=\"📢-engagement--branding\">📢 Engagement &amp; Branding</h3>\n<ul>\n<li><p><strong>Student Announcements Feed:</strong> Real-time global and course-specific alert system for instant student notifications.</p>\n</li>\n<li><p><strong>Institute Logo Management:</strong> White-label asset engine handling custom branding configuration per institute.</p>\n</li>\n<li><p><strong>User Preferences API:</strong> Deep persistence layer tracking layout preferences, system locales, and individual user accessibility profiles.</p>\n</li>\n<li><p><strong>Course Status Management:</strong> Granular state controls for drafting, auditing, archiving, and live publishing of curricular content.</p>\n</li>\n</ul>\n<hr>\n<h2 id=\"🔑-authentication--security\">🔑 Authentication &amp; Security</h2>\n<p>Most endpoints require explicit bearer token verification.</p>\n<ol>\n<li><p>Use the <strong>Auth / Login</strong> endpoint to fetch a secure JWT.</p>\n</li>\n<li><p>Provide the token in your headers using the following key:<br> <code>x-auth-token:</code></p>\n</li>\n</ol>\n<h3 id=\"🧪-test-credentials\">🧪 Test Credentials</h3>\n<p>Use these accounts to evaluate cross-role logic across your environments:</p>\n<ul>\n<li><p><strong>Student Account:</strong></p>\n<ul>\n<li><p><strong>Email:</strong> <code>student@trulern.com</code></p>\n</li>\n<li><p><strong>Password:</strong> <code>123456</code></p>\n</li>\n</ul>\n</li>\n<li><p><strong>Instructor Account:</strong></p>\n<ul>\n<li><p><strong>Email:</strong> <code>instructor@trulern.com</code></p>\n</li>\n<li><p><strong>Password:</strong> <code>123456</code></p>\n</li>\n</ul>\n</li>\n<li><p><strong>Admin Account:</strong></p>\n<ul>\n<li><p><strong>Email:</strong> <code>admin@trulern.com</code></p>\n</li>\n<li><p><strong>Password:</strong> <code>123456</code></p>\n</li>\n</ul>\n</li>\n</ul>\n<hr>\n<p><strong>Architecture:</strong> Single-instance deployment with Role-Based Access Control (Admin, Instructor, Student). One Super Admin manages the entire platform, with unlimited instructors and students.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"TruLern - Enterprise Node.js LMS REST API v2.0 (Headless)","slug":"trulern-enterprise-nodejs-lms-rest-api-v20-headless"}],"owner":"51774809","collectionId":"52fbda71-1d22-431c-a865-d96745ed3bae","publishedId":"2sBXwyG76d","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"4F46E5"},"publishDate":"2026-06-27T09:33:31.000Z"},"item":[{"name":"Auth","item":[{"name":"Student Register","id":"befd2919-789d-45e3-9ed6-ae7d9be7d29b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"password\": \"password123\"\n}"},"url":"http://localhost:5000/api/register","urlObject":{"path":["api","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"befd2919-789d-45e3-9ed6-ae7d9be7d29b"},{"name":"Instructor Register","id":"f48a3f92-bf81-48a6-87ad-208fa6555c70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Smith\",\n  \"email\": \"jane.smith@example.com\",\n  \"password\": \"password123\"\n}"},"url":"http://localhost:5000/api/register-instructor","urlObject":{"path":["api","register-instructor"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f48a3f92-bf81-48a6-87ad-208fa6555c70"},{"name":"Login","id":"676871c1-3cca-4b48-915e-82a10c1534ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"admin@trulern.com\",\n  \"password\": \"123456\"\n}"},"url":"http://localhost:5000/api/login","urlObject":{"path":["api","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"676871c1-3cca-4b48-915e-82a10c1534ce"},{"name":"Forgot Password","id":"790f1c02-7e3d-4a9b-8b80-69e901d91d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"admin@trulern.com\"\n}"},"url":"http://localhost:5000/api/forgot-password","urlObject":{"path":["api","forgot-password"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"790f1c02-7e3d-4a9b-8b80-69e901d91d8f"},{"name":"Reset Password","id":"32341f12-95a3-4214-b0c6-eb17ad0e6ec2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"reset_token_from_email\",\n  \"newPassword\": \"newpassword123\",\n  \"confirmNewPassword\": \"newpassword123\"\n}"},"url":"http://localhost:5000/api/reset-password","urlObject":{"path":["api","reset-password"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"32341f12-95a3-4214-b0c6-eb17ad0e6ec2"},{"name":"Get Current User","id":"5dc95cca-3a7b-45c7-b7ba-53a8e9f24d9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/user/me","urlObject":{"path":["api","user","me"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5dc95cca-3a7b-45c7-b7ba-53a8e9f24d9f"},{"name":"Auth Routes - Register","id":"40a3914b-2285-4948-a57d-056ec2624300","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe2@example.com\",\n  \"password\": \"password123\",\n  \"role\": \"student\"\n}"},"url":"http://localhost:5000/api/auth/register","urlObject":{"path":["api","auth","register"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"40a3914b-2285-4948-a57d-056ec2624300"},{"name":"Auth Routes - Login","id":"ec4eb8d7-3f85-4d55-917b-580fb31e2964","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"admin@trulern.com\",\n  \"password\": \"123456\"\n}"},"url":"http://localhost:5000/api/auth/login","urlObject":{"path":["api","auth","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec4eb8d7-3f85-4d55-917b-580fb31e2964"},{"name":"Auth Routes - Get Me","id":"818f88a3-d767-4e72-bf55-9cb6309e2f03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/auth/me","urlObject":{"path":["api","auth","me"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"818f88a3-d767-4e72-bf55-9cb6309e2f03"}],"id":"7efb6a17-c829-44ba-b8bc-328aafc684f8","_postman_id":"7efb6a17-c829-44ba-b8bc-328aafc684f8","description":""},{"name":"Super Admin (God Mode)","item":[{"name":"Get All Users","id":"bd6b92af-69d9-44c4-b8d4-d49d133bf367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/users","urlObject":{"path":["api","admin","users"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd6b92af-69d9-44c4-b8d4-d49d133bf367"},{"name":"Get Platform Stats","id":"86a579a4-354b-423e-a834-04d5f085a115","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/stats","urlObject":{"path":["api","admin","stats"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"86a579a4-354b-423e-a834-04d5f085a115"},{"name":"Get Admin Analytics Chart","id":"6ced3e36-75f5-417e-bbfc-b442992d54ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/analytics","urlObject":{"path":["api","admin","analytics"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ced3e36-75f5-417e-bbfc-b442992d54ed"},{"name":"Get All Courses (Admin)","id":"a2cf3354-e82a-4720-afea-f98879378dff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/courses","urlObject":{"path":["api","admin","courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a2cf3354-e82a-4720-afea-f98879378dff"},{"name":"Force Delete Course (God Mode)","id":"f258900d-bb08-4cd0-a201-0b3be257fc70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/courses/","urlObject":{"path":["api","admin","courses",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f258900d-bb08-4cd0-a201-0b3be257fc70"},{"name":"Get All Orders (Admin)","id":"e11117ca-9707-4ac1-b123-d8674cb799df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/orders","urlObject":{"path":["api","admin","orders"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e11117ca-9707-4ac1-b123-d8674cb799df"},{"name":"Get All Announcements (Admin)","id":"207458e5-d180-4cbf-843e-92e8f4f4af76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/announcements","urlObject":{"path":["api","admin","announcements"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"207458e5-d180-4cbf-843e-92e8f4f4af76"},{"name":"Send Global Announcement","id":"80e7eaa0-2f2f-46c7-a78c-3b00bfe14e09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"target","value":"all_students","type":"text"},{"key":"message","value":"📢 System-wide announcement from Admin!","type":"text"},{"key":"attachment","type":"file","src":"/path/to/file.pdf"}]},"url":"http://localhost:5000/api/admin/announcements","urlObject":{"path":["api","admin","announcements"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"80e7eaa0-2f2f-46c7-a78c-3b00bfe14e09"},{"name":"Delete Announcement (Admin)","id":"946af104-1903-403a-b1e7-aa6e424e61f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/announcements/","urlObject":{"path":["api","admin","announcements",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"946af104-1903-403a-b1e7-aa6e424e61f1"},{"name":"Get All Reviews (Admin)","id":"becac5a9-ceea-40b2-81fd-6cd1973ffeec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/reviews","urlObject":{"path":["api","admin","reviews"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"becac5a9-ceea-40b2-81fd-6cd1973ffeec"},{"name":"Delete Any Review (Admin)","id":"b2143ac6-bd6f-4fc9-8811-290b5b2e0069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/reviews/","urlObject":{"path":["api","admin","reviews",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2143ac6-bd6f-4fc9-8811-290b5b2e0069"},{"name":"Shadow Mode (Impersonate User)","id":"ebb35ad4-2e97-45b6-909f-3a80dc13f314","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/admin/impersonate/","urlObject":{"path":["api","admin","impersonate",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ebb35ad4-2e97-45b6-909f-3a80dc13f314"}],"id":"e2057f6f-24ce-43e4-a8fc-790649328a73","_postman_id":"e2057f6f-24ce-43e4-a8fc-790649328a73","description":""},{"name":"Dashboard & Profile","item":[{"name":"Get Profile","id":"fd998938-e31a-4db1-96b1-bc478b564f78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/user/profile","urlObject":{"path":["api","user","profile"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"fd998938-e31a-4db1-96b1-bc478b564f78"},{"name":"Update Profile","id":"5f799edc-c5ff-462d-adb0-4ad934c01dac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"phone\": \"+1234567890\",\n  \"occupation\": \"Software Developer\",\n  \"bio\": \"Passionate about learning\",\n  \"email\": \"john.doe@example.com\"\n}"},"url":"http://localhost:5000/api/user/profile","urlObject":{"path":["api","user","profile"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5f799edc-c5ff-462d-adb0-4ad934c01dac"},{"name":"Update Preferences (NEW v2.0)","id":"14a34882-97a9-4f88-ba4a-89dde12fb839","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"bannerStyle\": \"modern\"\n}"},"url":"http://localhost:5000/api/user/preferences","urlObject":{"path":["api","user","preferences"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"14a34882-97a9-4f88-ba4a-89dde12fb839"},{"name":"Change Password","id":"df7c19bb-051c-4646-b0ff-5ce701fa0b7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"currentPassword\": \"password123\",\n  \"newPassword\": \"newpassword123\"\n}"},"url":"http://localhost:5000/api/user/password","urlObject":{"path":["api","user","password"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"df7c19bb-051c-4646-b0ff-5ce701fa0b7a"},{"name":"Update Social Links","id":"a8ab31c7-9217-406c-94ed-43d1fbb558e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"facebook\": \"https://facebook.com/johndoe\",\n  \"twitter\": \"https://twitter.com/johndoe\",\n  \"linkedin\": \"https://linkedin.com/in/johndoe\",\n  \"website\": \"https://johndoe.com\",\n  \"github\": \"https://github.com/johndoe\"\n}"},"url":"http://localhost:5000/api/user/social","urlObject":{"path":["api","user","social"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8ab31c7-9217-406c-94ed-43d1fbb558e8"},{"name":"Upload Avatar","id":"1bb074c5-8ce4-47ce-a0d3-4b9ce3dd6d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"avatar","type":"file","src":"/path/to/avatar.jpg"}]},"url":"http://localhost:5000/api/user/avatar","urlObject":{"path":["api","user","avatar"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1bb074c5-8ce4-47ce-a0d3-4b9ce3dd6d8f"},{"name":"Upload Cover Photo","id":"2a278627-3383-47ec-9001-0016ae9d3a43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"coverPhoto","type":"file","src":"/path/to/cover.jpg"}]},"url":"http://localhost:5000/api/user/cover","urlObject":{"path":["api","user","cover"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2a278627-3383-47ec-9001-0016ae9d3a43"},{"name":"Upload Institute Logo (NEW v2.0)","id":"aa735ac9-d3d8-4805-8343-4b431c09f3d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"instituteLogo","type":"file","src":"/path/to/logo.png"}]},"url":"http://localhost:5000/api/user/institute-logo","urlObject":{"path":["api","user","institute-logo"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa735ac9-d3d8-4805-8343-4b431c09f3d8"}],"id":"b6c905d6-0ad7-4f33-9ee8-c4067af7960f","_postman_id":"b6c905d6-0ad7-4f33-9ee8-c4067af7960f","description":""},{"name":"Instructor Dashboard","item":[{"name":"Get Instructor Dashboard Stats","id":"24e4dbd7-59eb-4228-b2f8-3f02448e70b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/dashboard","urlObject":{"path":["api","instructor","dashboard"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"24e4dbd7-59eb-4228-b2f8-3f02448e70b4"},{"name":"Get Instructor Analytics (NEW v2.0)","id":"9fa93c5f-6e9b-4a72-b80e-dd4aeff12398","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/analytics","urlObject":{"path":["api","instructor","analytics"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"9fa93c5f-6e9b-4a72-b80e-dd4aeff12398"},{"name":"Get Instructor Courses","id":"3a92b405-1a7f-475b-a513-c792161ce9c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/my-courses","urlObject":{"path":["api","instructor","my-courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a92b405-1a7f-475b-a513-c792161ce9c0"},{"name":"Get Instructor Courses with Status","id":"99f7d53e-3b59-4b9b-9174-4d5fd8305147","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/my-courses-status","urlObject":{"path":["api","instructor","my-courses-status"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"99f7d53e-3b59-4b9b-9174-4d5fd8305147"},{"name":"Get All Students for Instructor","id":"54638daa-89a1-4912-b25d-fa0277828141","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/students","urlObject":{"path":["api","instructor","students"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"54638daa-89a1-4912-b25d-fa0277828141"},{"name":"Get Single Student Details","id":"d87294ca-9ddf-4241-b2fd-7c819b76b1bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/students/","urlObject":{"path":["api","instructor","students",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d87294ca-9ddf-4241-b2fd-7c819b76b1bb"},{"name":"Remove Student from Courses","id":"53238e69-d9bf-4616-b8b9-f243135135e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/students/","urlObject":{"path":["api","instructor","students",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"53238e69-d9bf-4616-b8b9-f243135135e9"},{"name":"Get Instructor Announcements","id":"f5081491-bf30-4d00-afdf-f8d282483ff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/announcements","urlObject":{"path":["api","instructor","announcements"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5081491-bf30-4d00-afdf-f8d282483ff5"},{"name":"Get Instructor Orders","id":"a9984175-e1a0-4d31-ab93-faf8ab970623","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/orders","urlObject":{"path":["api","instructor","orders"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9984175-e1a0-4d31-ab93-faf8ab970623"},{"name":"Get Instructor Quiz Attempts","id":"31d1f3c4-39b3-42d4-93b9-bb4ed0de2dd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/quiz-attempts","urlObject":{"path":["api","instructor","quiz-attempts"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"31d1f3c4-39b3-42d4-93b9-bb4ed0de2dd5"},{"name":"Get Instructor's Reviews Received","id":"29b60dc9-88c1-4fd5-ba7e-2943f978b37a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructor/reviews/received","urlObject":{"path":["api","instructor","reviews","received"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"29b60dc9-88c1-4fd5-ba7e-2943f978b37a"},{"name":"Get Public Instructor Profile Courses","id":"82254bb7-e96b-43d7-a1da-687ad91e39b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructors//courses","urlObject":{"path":["api","instructors","","courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"82254bb7-e96b-43d7-a1da-687ad91e39b3"}],"id":"065ddf62-5c16-4643-9d6d-46a6ecad4b3b","_postman_id":"065ddf62-5c16-4643-9d6d-46a6ecad4b3b","description":""},{"name":"Student Dashboard","item":[{"name":"Get Student Dashboard Stats","id":"9aba5b8a-8790-46bf-a133-6fef20174fa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/student/dashboard","urlObject":{"path":["api","student","dashboard"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"9aba5b8a-8790-46bf-a133-6fef20174fa6"},{"name":"Get Student Enrolled Courses","id":"b2458bd0-adc3-4bd5-9db3-f545a6ff9eec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/student/my-courses","urlObject":{"path":["api","student","my-courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2458bd0-adc3-4bd5-9db3-f545a6ff9eec"},{"name":"Get Student Wishlist","id":"d80ce186-d292-4201-b1f7-c20e4b46f4c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/student/wishlist","urlObject":{"path":["api","student","wishlist"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d80ce186-d292-4201-b1f7-c20e4b46f4c0"},{"name":"Toggle Wishlist","id":"b40d84ca-329d-4fbf-a327-d178935b1b94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"courseId\": \"\"\n}"},"url":"http://localhost:5000/api/user/wishlist/toggle","urlObject":{"path":["api","user","wishlist","toggle"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b40d84ca-329d-4fbf-a327-d178935b1b94"},{"name":"Get Student Reviews","id":"b367c024-3039-4869-be04-e6e843091e20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/student/reviews","urlObject":{"path":["api","student","reviews"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b367c024-3039-4869-be04-e6e843091e20"},{"name":"Get Student Quiz Attempts","id":"e57c7eef-37f1-42ff-a0e7-1ea7a876a39b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/student/my-quiz-attempts","urlObject":{"path":["api","student","my-quiz-attempts"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e57c7eef-37f1-42ff-a0e7-1ea7a876a39b"},{"name":"Get Student Order History","id":"a8c8ff50-c299-41f9-914f-9e28d5b9aca0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/student/orders","urlObject":{"path":["api","student","orders"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8c8ff50-c299-41f9-914f-9e28d5b9aca0"},{"name":"Get Student Announcements Feed (NEW v2.0)","id":"5a122de3-4814-47fb-8b8f-7e99ddf8592b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/student/announcements","urlObject":{"path":["api","student","announcements"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a122de3-4814-47fb-8b8f-7e99ddf8592b"}],"id":"044ad52d-7000-498a-9a77-cb37dce87e46","_postman_id":"044ad52d-7000-498a-9a77-cb37dce87e46","description":""},{"name":"Course Management","item":[{"name":"Create Course (Instructor)","id":"971d7c2c-512c-4802-b824-d3cee804a723","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"New Course Title","type":"text"},{"key":"slug","value":"new-course-slug","type":"text"},{"key":"description","value":"Course description","type":"text"},{"key":"price","value":"99.99","type":"text"},{"key":"originalPrice","value":"149.99","type":"text"},{"key":"difficultyLevel","value":"Intermediate","type":"text"},{"key":"maxStudents","value":"100","type":"text"},{"key":"isPublic","value":"true","type":"text"},{"key":"isQAEnabled","value":"true","type":"text"},{"key":"previewVideoUrl","value":"https://vimeo.com/123456","type":"text"},{"key":"isMasterclass","value":"true","type":"text"},{"key":"thumbnail","type":"file","src":"/path/to/thumbnail.jpg"}]},"url":"http://localhost:5000/api/instructor/courses","urlObject":{"path":["api","instructor","courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"971d7c2c-512c-4802-b824-d3cee804a723"},{"name":"Get All Published Courses","id":"f28ba1d4-7b29-4eff-b233-e64a6ba83967","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/courses","urlObject":{"path":["api","courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f28ba1d4-7b29-4eff-b233-e64a6ba83967"},{"name":"Get Course by ID","id":"4d3619f0-eff4-4b9b-b540-63af95bed235","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/courses/","urlObject":{"path":["api","courses",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d3619f0-eff4-4b9b-b540-63af95bed235"},{"name":"Update Course","id":"bd140ae6-7596-493a-88a3-fbffa155cfd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Updated Course Title","type":"text"},{"key":"slug","value":"updated-course-slug","type":"text"},{"key":"description","value":"Updated description","type":"text"},{"key":"price","value":"89.99","type":"text"},{"key":"originalPrice","value":"129.99","type":"text"},{"key":"previewVideoUrl","value":"https://vimeo.com/654321","type":"text"},{"key":"status","value":"Published","type":"text"},{"key":"startDate","value":"2024-01-15","type":"text"},{"key":"difficultyLevel","value":"Expert","type":"text"},{"key":"maxStudents","value":"50","type":"text"},{"key":"school","value":"Computer Science","type":"text"},{"key":"categories","value":"[\"Programming\", \"Web Development\"]","type":"text"},{"key":"language","value":"[\"English\", \"Spanish\"]","type":"text"},{"key":"requirements","value":"Basic programming knowledge\\nInternet connection","type":"text"},{"key":"whatYoullLearn","value":"Learn React\\nMaster Node.js","type":"text"},{"key":"targetedAudience","value":"Beginners\\nIntermediate developers","type":"text"},{"key":"tags","value":"react,nodejs,javascript","type":"text"},{"key":"durationHours","value":"10","type":"text"},{"key":"durationMinutes","value":"30","type":"text"},{"key":"certificateTemplate","value":"option1","type":"text"},{"key":"certificateOrientation","value":"landscape","type":"text"},{"key":"isMasterclass","value":"true","type":"text"},{"key":"thumbnail","type":"file","src":"/path/to/new-thumbnail.jpg"},{"key":"courseLogo","type":"file","src":"/path/to/logo.png"}]},"url":"http://localhost:5000/api/courses/","urlObject":{"path":["api","courses",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd140ae6-7596-493a-88a3-fbffa155cfd0"},{"name":"Update Course Status (NEW v2.0)","id":"2d674702-df80-44fd-ba22-46c25202a967","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"status\": \"Published\"\n}"},"url":"http://localhost:5000/api/courses//status","urlObject":{"path":["api","courses","","status"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2d674702-df80-44fd-ba22-46c25202a967"},{"name":"Get Course for Edit","id":"c6ac2c6d-4d12-4527-b88b-daec0df45b26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses/edit/","urlObject":{"path":["api","courses","edit",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6ac2c6d-4d12-4527-b88b-daec0df45b26"},{"name":"Preview Course (Instructor)","id":"639f688b-6a01-44da-8e2a-57ace323c1f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses/preview/","urlObject":{"path":["api","courses","preview",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"639f688b-6a01-44da-8e2a-57ace323c1f6"},{"name":"Check Enrollment Status","id":"54f4b7be-9454-49b7-8a65-d7dfd6baf1b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses//enrollment-status","urlObject":{"path":["api","courses","","enrollment-status"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"54f4b7be-9454-49b7-8a65-d7dfd6baf1b1"},{"name":"Course Routes - Get All Courses","id":"f2fcb4d2-3ab3-4eaa-aab2-252db9987648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/courses","urlObject":{"path":["api","courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2fcb4d2-3ab3-4eaa-aab2-252db9987648"},{"name":"Course Routes - Get Instructor Courses","id":"def98f20-5dd1-4a30-9547-5d4e4d2cc65b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses/instructor/my-courses","urlObject":{"path":["api","courses","instructor","my-courses"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"def98f20-5dd1-4a30-9547-5d4e4d2cc65b"},{"name":"Course Routes - Update Course","id":"78786987-eb1f-4a26-b62c-7203dd0ad1f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Updated Title","type":"text"},{"key":"slug","value":"updated-slug","type":"text"},{"key":"description","value":"Updated description","type":"text"},{"key":"price","value":"79.99","type":"text"},{"key":"originalPrice","value":"99.99","type":"text"},{"key":"thumbnail","type":"file","src":"/path/to/thumbnail.jpg"}]},"url":"http://localhost:5000/api/courses/","urlObject":{"path":["api","courses",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"78786987-eb1f-4a26-b62c-7203dd0ad1f6"}],"id":"b91189b8-b431-4886-a029-4a4f6c99b08e","_postman_id":"b91189b8-b431-4886-a029-4a4f6c99b08e","description":""},{"name":"Content Management","item":[{"name":"Add Topic (Episode)","id":"d8d70ab2-4733-4911-9742-1ec7dd1a7dac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Introduction to React\",\n  \"summary\": \"Learn the basics of React\"\n}"},"url":"http://localhost:5000/api/courses//episodes","urlObject":{"path":["api","courses","","episodes"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8d70ab2-4733-4911-9742-1ec7dd1a7dac"},{"name":"Update Topic","id":"b3f044bd-3cfc-4f2e-8ace-a487c4588fad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Updated Topic Title\",\n  \"summary\": \"Updated summary\"\n}"},"url":"http://localhost:5000/api/courses//episodes/","urlObject":{"path":["api","courses","","episodes",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3f044bd-3cfc-4f2e-8ace-a487c4588fad"},{"name":"Delete Topic","id":"dc834f75-62b5-4103-856a-e147ee6e3dd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses//episodes/","urlObject":{"path":["api","courses","","episodes",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc834f75-62b5-4103-856a-e147ee6e3dd4"},{"name":"Add Lesson","id":"529848fb-d497-45da-bd6d-e9c9961ed231","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"React Components","type":"text"},{"key":"summary","value":"Learn about React components","type":"text"},{"key":"duration","value":"15 min","type":"text"},{"key":"isPreview","value":"true","type":"text"},{"key":"lessonType","value":"video","type":"text"},{"key":"videoSource","value":"vimeo","type":"text"},{"key":"videoUrl","value":"https://vimeo.com/123456","type":"text"},{"key":"articleBody","value":"Article content for reading lessons","type":"text"},{"key":"videoFile","type":"file","src":"/path/to/video.mp4"},{"key":"exerciseFiles","type":"file","src":"/path/to/exercise.pdf"}]},"url":"http://localhost:5000/api/courses//episodes//lessons","urlObject":{"path":["api","courses","","episodes","","lessons"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"529848fb-d497-45da-bd6d-e9c9961ed231"},{"name":"Update Lesson","id":"106e7c37-bea1-472d-9510-40b9623047a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"Updated Lesson Title","type":"text"},{"key":"summary","value":"Updated summary","type":"text"},{"key":"duration","value":"20 min","type":"text"},{"key":"isPreview","value":"false","type":"text"},{"key":"lessonType","value":"reading","type":"text"},{"key":"articleBody","value":"Updated article content","type":"text"},{"key":"videoSource","value":"youtube","type":"text"},{"key":"videoUrl","value":"https://youtube.com/watch?v=abc123","type":"text"},{"key":"videoFile","type":"file","src":"/path/to/new-video.mp4"},{"key":"exerciseFiles","type":"file","src":"/path/to/new-exercise.pdf"}]},"url":"http://localhost:5000/api/courses//episodes//lessons/{{lesson_id}}","urlObject":{"path":["api","courses","","episodes","","lessons","{{lesson_id}}"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"106e7c37-bea1-472d-9510-40b9623047a7"},{"name":"Delete Lesson","id":"b788cb69-271b-433e-9fb8-96e0affa2750","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses//episodes//lessons/{{lesson_id}}","urlObject":{"path":["api","courses","","episodes","","lessons","{{lesson_id}}"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b788cb69-271b-433e-9fb8-96e0affa2750"},{"name":"Delete Lesson File","id":"fec16754-6d38-477e-99ae-ee4c8acf45aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"filePath\": \"uploads/pdfs/file.pdf\"\n}"},"url":"http://localhost:5000/api/courses//episodes//lessons/{{lesson_id}}/files","urlObject":{"path":["api","courses","","episodes","","lessons","{{lesson_id}}","files"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"fec16754-6d38-477e-99ae-ee4c8acf45aa"},{"name":"Mark Lesson Complete","id":"351985c5-2536-47a0-97de-ba17ed33c5b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses//lessons/{{lesson_id}}/complete","urlObject":{"path":["api","courses","","lessons","{{lesson_id}}","complete"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"351985c5-2536-47a0-97de-ba17ed33c5b0"}],"id":"1fab84cf-f4bc-4d71-b616-e21ea9c665d8","_postman_id":"1fab84cf-f4bc-4d71-b616-e21ea9c665d8","description":""},{"name":"Quizzes","item":[{"name":"Add Quiz","id":"c1587b78-3458-4c58-ae7a-4f46c14a5ee1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"title\": \"React Fundamentals Quiz\",\n  \"summary\": \"Test your React knowledge\"\n}"},"url":"http://localhost:5000/api/courses//episodes//quizzes","urlObject":{"path":["api","courses","","episodes","","quizzes"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1587b78-3458-4c58-ae7a-4f46c14a5ee1"},{"name":"Update Quiz Settings","id":"f11cb6cd-f6c3-4d1d-bacd-6e477fa84b09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"title\": \"Updated Quiz Title\",\n  \"summary\": \"Updated summary\",\n  \"settings\": {\n    \"timeLimit\": {\n      \"value\": 60,\n      \"unit\": \"Minutes\"\n    },\n    \"hideTimeLimit\": false,\n    \"feedbackMode\": \"reveal\",\n    \"passingGrade\": 70,\n    \"maxQuestionsAllowed\": 20,\n    \"autoStart\": true,\n    \"questionLayout\": \"single_question\",\n    \"questionOrder\": \"Random\",\n    \"hideQuestionNumber\": false,\n    \"shortAnswerCharLimit\": 500,\n    \"essayCharLimit\": 1000\n  }\n}"},"url":"http://localhost:5000/api/courses//episodes//quizzes/","urlObject":{"path":["api","courses","","episodes","","quizzes",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f11cb6cd-f6c3-4d1d-bacd-6e477fa84b09"},{"name":"Delete Quiz","id":"2ab00a9d-1980-4818-8950-a9abb203e2a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses//episodes//quizzes/","urlObject":{"path":["api","courses","","episodes","","quizzes",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ab00a9d-1980-4818-8950-a9abb203e2a9"},{"name":"Add Question","id":"e3f6cb52-26f9-4ac3-9556-abcfef087017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"questionText\": \"What is React?\",\n  \"questionType\": \"single-choice\",\n  \"points\": 10,\n  \"options\": [\n    {\n      \"text\": \"A JavaScript library\",\n      \"isCorrect\": true\n    },\n    {\n      \"text\": \"A programming language\",\n      \"isCorrect\": false\n    },\n    {\n      \"text\": \"A database\",\n      \"isCorrect\": false\n    }\n  ]\n}"},"url":"http://localhost:5000/api/courses//episodes//quizzes//questions","urlObject":{"path":["api","courses","","episodes","","quizzes","","questions"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3f6cb52-26f9-4ac3-9556-abcfef087017"},{"name":"Update Question","id":"e582ac5c-6471-4ca0-898d-bd77b887ecb3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"questionText\": \"Updated question text\",\n  \"questionType\": \"multiple-choice\",\n  \"points\": 15,\n  \"options\": [\n    {\n      \"text\": \"Option 1\",\n      \"isCorrect\": true\n    },\n    {\n      \"text\": \"Option 2\",\n      \"isCorrect\": false\n    },\n    {\n      \"text\": \"Option 3\",\n      \"isCorrect\": true\n    }\n  ]\n}"},"url":"http://localhost:5000/api/courses//episodes//quizzes//questions/","urlObject":{"path":["api","courses","","episodes","","quizzes","","questions",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e582ac5c-6471-4ca0-898d-bd77b887ecb3"},{"name":"Delete Question","id":"2506d81b-8ce5-4915-a059-32b9a83c371f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/courses//episodes//quizzes//questions/","urlObject":{"path":["api","courses","","episodes","","quizzes","","questions",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"2506d81b-8ce5-4915-a059-32b9a83c371f"},{"name":"Submit Quiz","id":"6f4eaa4a-5b63-4280-84ee-5841a857a405","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"answers\": {\n    \"\": [\"option_id_1\"],\n    \"question_id_2\": \"User's text answer\"\n  }\n}"},"url":"http://localhost:5000/api/courses//quizzes//submit","urlObject":{"path":["api","courses","","quizzes","","submit"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f4eaa4a-5b63-4280-84ee-5841a857a405"},{"name":"Get Quiz Result","id":"a1fcf26b-bd6b-4303-b2b1-47f77a58e5fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/quiz-results/","urlObject":{"path":["api","quiz-results",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1fcf26b-bd6b-4303-b2b1-47f77a58e5fb"},{"name":"Debug Question","id":"ce29e082-5dc7-4f1e-8a20-b56d45968e97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/debug/question/","urlObject":{"path":["api","debug","question",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce29e082-5dc7-4f1e-8a20-b56d45968e97"}],"id":"e69b475a-b0da-4406-a2d7-26f08ad18e9d","_postman_id":"e69b475a-b0da-4406-a2d7-26f08ad18e9d","description":""},{"name":"Engagement","item":[{"name":"Get All Resources","id":"da022b84-7936-467c-ad19-d8478d525520","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/resources","urlObject":{"path":["api","resources"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"da022b84-7936-467c-ad19-d8478d525520"},{"name":"Create Resource","id":"66b78ecf-3f64-4eea-87b2-a9baa03f251a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"React Cheat Sheet","type":"text"},{"key":"description","value":"Complete React cheat sheet","type":"text"},{"key":"mainCategory","value":"Programming","type":"text"},{"key":"subCategory","value":"Frontend","type":"text"},{"key":"thumbnail","type":"file","src":"/path/to/thumbnail.jpg"},{"key":"pdfFile","type":"file","src":"/path/to/document.pdf"}]},"url":"http://localhost:5000/api/resources","urlObject":{"path":["api","resources"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"66b78ecf-3f64-4eea-87b2-a9baa03f251a"},{"name":"Get Instructor Resources","id":"085cdb9d-3621-45a2-b535-90dfb64f1202","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/resources/instructor","urlObject":{"path":["api","resources","instructor"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"085cdb9d-3621-45a2-b535-90dfb64f1202"},{"name":"Delete Resource","id":"fff40fb5-b683-433b-83f1-2d476f53b2fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/resources/","urlObject":{"path":["api","resources",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"fff40fb5-b683-433b-83f1-2d476f53b2fc"},{"name":"Send Announcement","id":"bf261987-3d7b-4962-bf5f-5f36c0a7bcaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"courseId","value":"","type":"text"},{"key":"message","value":"New content has been added to the course!","type":"text"},{"key":"attachment","type":"file","src":"/path/to/attachment.zip"}]},"url":"http://localhost:5000/api/announcements","urlObject":{"path":["api","announcements"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf261987-3d7b-4962-bf5f-5f36c0a7bcaf"},{"name":"Get Instructor Announcements","id":"a02ba68c-926d-4d48-95f1-3fe9bf2b318b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/instructors//announcements","urlObject":{"path":["api","instructors","","announcements"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a02ba68c-926d-4d48-95f1-3fe9bf2b318b"},{"name":"Delete Announcement","id":"e87916d9-ec92-43e0-b5f7-aeab3edf98f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/announcements/","urlObject":{"path":["api","announcements",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e87916d9-ec92-43e0-b5f7-aeab3edf98f2"},{"name":"Submit Course Review","id":"14240509-2df5-4c05-9c33-91e214f8553a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"rating\": 5,\n  \"comment\": \"Excellent course!\",\n  \"city\": \"New York\",\n  \"age\": 30,\n  \"designation\": \"Software Developer\"\n}"},"url":"http://localhost:5000/api/courses//reviews","urlObject":{"path":["api","courses","","reviews"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"14240509-2df5-4c05-9c33-91e214f8553a"},{"name":"Add Instructor Testimonial","id":"cbed2d99-6262-492b-8097-5bd03fdb3960","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-auth-token","value":""}],"body":{"mode":"formdata","formdata":[{"key":"rating","value":"5","type":"text"},{"key":"comment","value":"Great student!","type":"text"},{"key":"city","value":"Los Angeles","type":"text"},{"key":"age","value":"35","type":"text"},{"key":"designation","value":"Senior Developer","type":"text"},{"key":"overrideName","value":"John Smith","type":"text"},{"key":"instructorAvatar","type":"file","src":"/path/to/avatar.jpg"}]},"url":"http://localhost:5000/api/courses//instructor-reviews","urlObject":{"path":["api","courses","","instructor-reviews"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbed2d99-6262-492b-8097-5bd03fdb3960"},{"name":"Get Course Reviews","id":"04e14406-28e4-43dd-863a-c4bdeb0e1916","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/courses//reviews","urlObject":{"path":["api","courses","","reviews"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"04e14406-28e4-43dd-863a-c4bdeb0e1916"},{"name":"Delete Review","id":"5ad2eab4-e39e-4cd1-a188-009c2050e7c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/reviews/","urlObject":{"path":["api","reviews",""],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ad2eab4-e39e-4cd1-a188-009c2050e7c1"}],"id":"2ac5aca8-3265-4cd2-bb32-c4bb2f46fd55","_postman_id":"2ac5aca8-3265-4cd2-bb32-c4bb2f46fd55","description":""},{"name":"Payments","item":[{"name":"Stripe Create Intent","id":"578fdd9f-cbb5-4ad8-bb1b-4d9a5413b566","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"amount\": 9999,\n  \"currency\": \"usd\"\n}"},"url":"http://localhost:5000/api/payment/stripe/create-intent","urlObject":{"path":["api","payment","stripe","create-intent"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"578fdd9f-cbb5-4ad8-bb1b-4d9a5413b566"},{"name":"Stripe Verify","id":"90a5d4d2-ee94-4d59-bc6d-a9092fbb8e84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"paymentIntentId\": \"pi_123456\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"type\": \"course\",\n      \"title\": \"Course Title\",\n      \"price\": 99.99\n    }\n  ],\n  \"totalAmount\": 99.99,\n  \"billing\": {\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"john@example.com\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  },\n  \"shipping\": {\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"john@example.com\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  }\n}"},"url":"http://localhost:5000/api/payment/stripe/verify","urlObject":{"path":["api","payment","stripe","verify"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"90a5d4d2-ee94-4d59-bc6d-a9092fbb8e84"},{"name":"PayPal Create Order","id":"8578b378-c30b-4fb7-965d-b0af860a6d94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"amount\": \"99.99\"\n}"},"url":"http://localhost:5000/api/payment/paypal/create-order","urlObject":{"path":["api","payment","paypal","create-order"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8578b378-c30b-4fb7-965d-b0af860a6d94"},{"name":"PayPal Capture Order","id":"e7b1f92e-b78c-47a0-9d7a-6ff823644d6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"orderID\": \"PAYPAL_ORDER_ID\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"type\": \"course\",\n      \"title\": \"Course Title\",\n      \"price\": 99.99\n    }\n  ],\n  \"totalAmount\": 99.99,\n  \"billing\": {\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"john@example.com\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  },\n  \"shipping\": {\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"john@example.com\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  }\n}"},"url":"http://localhost:5000/api/payment/paypal/capture-order","urlObject":{"path":["api","payment","paypal","capture-order"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7b1f92e-b78c-47a0-9d7a-6ff823644d6b"},{"name":"Razorpay Create Order","id":"0a7d38f7-fdda-4009-92fb-fb78a6826ff9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"type\": \"course\",\n      \"title\": \"Course Title\",\n      \"price\": 99.99\n    }\n  ],\n  \"totalAmount\": 99.99\n}"},"url":"http://localhost:5000/api/payment/create-order","urlObject":{"path":["api","payment","create-order"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a7d38f7-fdda-4009-92fb-fb78a6826ff9"},{"name":"Razorpay Verify","id":"47971682-12f3-4a72-aa66-f2f31fdce53b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-auth-token","value":""}],"body":{"mode":"raw","raw":"{\n  \"razorpay_order_id\": \"order_123\",\n  \"razorpay_payment_id\": \"pay_123\",\n  \"razorpay_signature\": \"signature_123\",\n  \"items\": [\n    {\n      \"id\": \"\",\n      \"type\": \"course\",\n      \"title\": \"Course Title\",\n      \"price\": 99.99\n    }\n  ],\n  \"totalAmount\": 99.99,\n  \"billing\": {\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"john@example.com\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  },\n  \"shipping\": {\n    \"firstName\": \"John\",\n    \"lastName\": \"Doe\",\n    \"email\": \"john@example.com\",\n    \"address1\": \"123 Main St\",\n    \"city\": \"New York\",\n    \"state\": \"NY\",\n    \"zip\": \"10001\",\n    \"country\": \"US\"\n  }\n}"},"url":"http://localhost:5000/api/payment/verify","urlObject":{"path":["api","payment","verify"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"47971682-12f3-4a72-aa66-f2f31fdce53b"}],"id":"580c2315-ba24-48c5-8728-85ca9e8512ba","_postman_id":"580c2315-ba24-48c5-8728-85ca9e8512ba","description":""},{"name":"Certificates & Misc","item":[{"name":"Download Certificate","id":"1de12bc4-d008-4594-bf95-cf368a4d4746","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":""}],"url":"http://localhost:5000/api/certificate//download","urlObject":{"path":["api","certificate","","download"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"1de12bc4-d008-4594-bf95-cf368a4d4746"},{"name":"Health Check","id":"6896a9ba-a80b-43e1-8c5c-7062a9224307","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/test","urlObject":{"path":["api","test"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6896a9ba-a80b-43e1-8c5c-7062a9224307"}],"id":"789bc9ef-02a8-4c13-b9e6-abddefe07fde","_postman_id":"789bc9ef-02a8-4c13-b9e6-abddefe07fde","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"requests":{},"exec":[""],"id":"2466726d-3554-41a2-8403-8241e45d364b"}},{"listen":"test","script":{"type":"text/javascript","requests":{},"exec":["// Store authentication token","if (pm.response.code === 200 && pm.response.json().token) {","    pm.collectionVariables.set('token', pm.response.json().token);","    console.log('Token stored:', pm.response.json().token);","}","","// Store course ID from response","if (pm.response.code === 201 || pm.response.code === 200) {","    var jsonData = pm.response.json();","    if (jsonData.course && jsonData.course._id) {","        pm.collectionVariables.set('course_id', jsonData.course._id);","        console.log('Course ID stored:', jsonData.course._id);","    }","    if (jsonData.course && jsonData.course.episodes && jsonData.course.episodes.length > 0) {","        pm.collectionVariables.set('episode_id', jsonData.course.episodes[0]._id);","        console.log('Episode ID stored:', jsonData.course.episodes[0]._id);","    }","    if (jsonData.course && jsonData.course.episodes && jsonData.course.episodes[0].quizzes && jsonData.course.episodes[0].quizzes.length > 0) {","        pm.collectionVariables.set('quiz_id', jsonData.course.episodes[0].quizzes[0]._id);","        console.log('Quiz ID stored:', jsonData.course.episodes[0].quizzes[0]._id);","    }","    if (jsonData.course && jsonData.course.episodes && jsonData.course.episodes[0].quizzes && jsonData.course.episodes[0].quizzes[0].questions && jsonData.course.episodes[0].quizzes[0].questions.length > 0) {","        pm.collectionVariables.set('question_id', jsonData.course.episodes[0].quizzes[0].questions[0]._id);","        console.log('Question ID stored:', jsonData.course.episodes[0].quizzes[0].questions[0]._id);","    }","    if (jsonData.result && jsonData.result._id) {","        pm.collectionVariables.set('result_id', jsonData.result._id);","        console.log('Result ID stored:', jsonData.result._id);","    }","    if (jsonData.student && jsonData.student._id) {","        pm.collectionVariables.set('student_id', jsonData.student._id);","        console.log('Student ID stored:', jsonData.student._id);","    }","    if (jsonData.user && jsonData.user._id) {","        pm.collectionVariables.set('instructor_id', jsonData.user._id);","        console.log('Instructor ID stored:', jsonData.user._id);","    }","    if (jsonData.review && jsonData.review._id) {","        pm.collectionVariables.set('review_id', jsonData.review._id);","        console.log('Review ID stored:', jsonData.review._id);","    }","    if (jsonData.resource && jsonData.resource._id) {","        pm.collectionVariables.set('resource_id', jsonData.resource._id);","        console.log('Resource ID stored:', jsonData.resource._id);","    }","    if (jsonData.announcement && jsonData.announcement._id) {","        pm.collectionVariables.set('announcement_id', jsonData.announcement._id);","        console.log('Announcement ID stored:', jsonData.announcement._id);","    }","    if (jsonData.user && jsonData.user.id) {","        pm.collectionVariables.set('user_id', jsonData.user.id);","        console.log('User ID stored:', jsonData.user.id);","    }","}"],"id":"3605ae52-2a1e-4802-a5c6-454c2edcac7b"}}],"variable":[{"key":"base_url","value":"http://localhost:5000"},{"key":"token","value":""},{"key":"course_id","value":""},{"key":"episode_id","value":""},{"key":"quiz_id","value":""},{"key":"question_id","value":""},{"key":"result_id","value":""},{"key":"student_id","value":""},{"key":"instructor_id","value":""},{"key":"review_id","value":""},{"key":"resource_id","value":""},{"key":"announcement_id","value":""},{"key":"user_id","value":""}]}