{"info":{"_postman_id":"cbe3bcd4-0e69-4599-9aa3-cbcdb012633a","name":"TruLern LMS API","description":"<html><head></head><body><h1 id=\"trulern-lms-headless-api\">TruLern LMS Headless API</h1>\n<p>Welcome to the official API reference for the <strong>TruLern Enterprise LMS</strong>. This API provides a complete backend solution for building educational platforms.</p>\n<h3 id=\"🚀-getting-started\">🚀 Getting Started</h3>\n<p>This API is live and hosted on our demo server. You can make real requests to these endpoints right now.</p>\n<h3 id=\"🔑-authentication\">🔑 Authentication</h3>\n<p>Most endpoints require authentication.</p>\n<ol>\n<li><p>Use the <strong>Auth / Login</strong> endpoint to get a JWT Token.</p>\n</li>\n<li><p>The system expects the token in the header: <code>x-auth-token:</code></p>\n</li>\n</ol>\n<h3 id=\"🧪-test-credentials\">🧪 Test Credentials</h3>\n<p>Use these accounts to test different roles (Student vs. Admin).</p>\n<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<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<h3 id=\"📚-modules-included\">📚 Modules Included</h3>\n<ul>\n<li><p><strong>Auth:</strong> Registration, Login, Password Reset</p>\n</li>\n<li><p><strong>Courses:</strong> Create, Edit, Publish, Stream Video</p>\n</li>\n<li><p><strong>Quizzes:</strong> Create Assessments, Auto-grading</p>\n</li>\n<li><p><strong>Payments:</strong> Stripe, PayPal, Razorpay Integration</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"TruLern LMS Headless API","slug":"trulern-lms-headless-api"}],"owner":"51774809","collectionId":"cbe3bcd4-0e69-4599-9aa3-cbcdb012633a","publishedId":"2sBXVoA89d","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-01-31T07:20:05.000Z"},"item":[{"name":"Auth","item":[{"name":"Student Register","id":"0017ee99-76dd-43de-8dd1-173585139d44","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":"0017ee99-76dd-43de-8dd1-173585139d44"},{"name":"Instructor Register","id":"aa1d0414-5dd6-4018-92be-0f0452992de7","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":"aa1d0414-5dd6-4018-92be-0f0452992de7"},{"name":"Login","id":"14a3e216-b67a-46f8-b85f-006fbc15ca3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"jane.smith@example.com\",\n  \"password\": \"password123\"\n}"},"url":"http://localhost:5000/api/login","urlObject":{"path":["api","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"14a3e216-b67a-46f8-b85f-006fbc15ca3f"},{"name":"Forgot Password","id":"58e54fbb-6f91-4f10-bc3a-dc0a4c323f2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"jane.smith@example.com\"\n}"},"url":"http://localhost:5000/api/forgot-password","urlObject":{"path":["api","forgot-password"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"58e54fbb-6f91-4f10-bc3a-dc0a4c323f2c"},{"name":"Reset Password","id":"3deb7947-b521-4edb-b37d-7a9ab2bf6d95","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":"3deb7947-b521-4edb-b37d-7a9ab2bf6d95"},{"name":"Get Current User","id":"b24698eb-2d69-4d82-95b8-c3b6604712ab","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":"b24698eb-2d69-4d82-95b8-c3b6604712ab"},{"name":"Auth Routes - Register","id":"8464b30c-ad89-4699-a06f-891135f3a5cb","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":"8464b30c-ad89-4699-a06f-891135f3a5cb"},{"name":"Auth Routes - Login","id":"6d96b21a-2d7e-4bed-9c98-df8edc7d4f77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"john.doe2@example.com\",\n  \"password\": \"password123\"\n}"},"url":"http://localhost:5000/api/auth/login","urlObject":{"path":["api","auth","login"],"host":["http://localhost:5000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d96b21a-2d7e-4bed-9c98-df8edc7d4f77"},{"name":"Auth Routes - Get Me","id":"a0ba8edd-c91b-4b49-ad37-34988fbd204e","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":"a0ba8edd-c91b-4b49-ad37-34988fbd204e"}],"id":"707c418f-c174-4678-8c87-24ff6a517250","_postman_id":"707c418f-c174-4678-8c87-24ff6a517250","description":""},{"name":"Dashboard & Profile","item":[{"name":"Get Profile","id":"ad77fb0e-708e-4195-969d-100c9addecfd","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":"ad77fb0e-708e-4195-969d-100c9addecfd"},{"name":"Update Profile","id":"8740c465-1134-45db-902a-786203b80de2","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":"8740c465-1134-45db-902a-786203b80de2"},{"name":"Change Password","id":"d0436365-cb62-4dd7-9cb5-314ec826be88","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":"d0436365-cb62-4dd7-9cb5-314ec826be88"},{"name":"Update Social Links","id":"32323c17-c9a3-4ae0-9f25-2ded2d2509f6","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":"32323c17-c9a3-4ae0-9f25-2ded2d2509f6"},{"name":"Upload Avatar","id":"bc7a4edc-217d-49cc-82bf-a32d80ab3e18","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":"bc7a4edc-217d-49cc-82bf-a32d80ab3e18"},{"name":"Upload Cover Photo","id":"938b637b-ed8f-400f-90f8-fc879bb1fb75","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":"938b637b-ed8f-400f-90f8-fc879bb1fb75"}],"id":"bbc5ae28-ac1f-4136-af35-21fe3b1b6b2b","_postman_id":"bbc5ae28-ac1f-4136-af35-21fe3b1b6b2b","description":""},{"name":"Instructor Dashboard","item":[{"name":"Get Instructor Dashboard Stats","id":"fe045612-7b3a-4aaa-9a7f-bd466c0aa64f","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":"fe045612-7b3a-4aaa-9a7f-bd466c0aa64f"},{"name":"Get Instructor Courses","id":"edf2f961-8946-4e66-9382-5309fd43ccf9","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":"edf2f961-8946-4e66-9382-5309fd43ccf9"},{"name":"Get Instructor Courses with Status","id":"2777a596-9b52-4a18-b93a-8e397f3990e4","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":"2777a596-9b52-4a18-b93a-8e397f3990e4"},{"name":"Get All Students for Instructor","id":"68d6bce5-7be6-40f1-b9be-adf1a1beef84","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":"68d6bce5-7be6-40f1-b9be-adf1a1beef84"},{"name":"Get Single Student Details","id":"75aed604-ec7f-4a5b-b44a-7a93c2c96491","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":"75aed604-ec7f-4a5b-b44a-7a93c2c96491"},{"name":"Remove Student from Courses","id":"d8e555d4-b13e-4b66-b8a9-bdd75ca29573","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":"d8e555d4-b13e-4b66-b8a9-bdd75ca29573"},{"name":"Get Instructor Announcements","id":"5292d5c2-3892-45e5-a68f-05c66516f4ff","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":"5292d5c2-3892-45e5-a68f-05c66516f4ff"},{"name":"Get Instructor Orders","id":"83448029-0024-4626-80ed-1158e5e1790c","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":"83448029-0024-4626-80ed-1158e5e1790c"},{"name":"Get Instructor's Reviews Received","id":"fb76ae6a-d76d-464f-930f-aa858dd91cbb","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":"fb76ae6a-d76d-464f-930f-aa858dd91cbb"},{"name":"Get Public Instructor Profile Courses","id":"6a962ecd-fe95-4251-ae46-bd332153b4fc","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":"6a962ecd-fe95-4251-ae46-bd332153b4fc"}],"id":"7dbdc6e4-c686-4132-b043-bf57e700453c","_postman_id":"7dbdc6e4-c686-4132-b043-bf57e700453c","description":""},{"name":"Student Dashboard","item":[{"name":"Get Student Dashboard Stats","id":"5a6170ab-8393-4a4f-9911-cf3238626b15","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":"5a6170ab-8393-4a4f-9911-cf3238626b15"},{"name":"Get Student Enrolled Courses","id":"9af9fbec-ad30-497d-9e5b-b42bffd1bb20","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":"9af9fbec-ad30-497d-9e5b-b42bffd1bb20"},{"name":"Get Student Wishlist","id":"6eda09ff-46e8-4164-bb8f-5670c439aace","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":"6eda09ff-46e8-4164-bb8f-5670c439aace"},{"name":"Toggle Wishlist","id":"e8f4b788-a0b8-4271-8892-25397157c879","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":"e8f4b788-a0b8-4271-8892-25397157c879"},{"name":"Get Student Reviews","id":"bfc9dc52-f692-435d-b7b9-a66942913e9d","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":"bfc9dc52-f692-435d-b7b9-a66942913e9d"},{"name":"Get Student Quiz Attempts","id":"b71eeef3-1f87-4a1e-832c-763dc9b94913","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":"b71eeef3-1f87-4a1e-832c-763dc9b94913"},{"name":"Get Student Order History","id":"1d1a89fc-acf4-4f03-b948-b19ae4c11a93","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":"1d1a89fc-acf4-4f03-b948-b19ae4c11a93"}],"id":"de7afbf9-1efb-47d4-adca-667d3c38ef96","_postman_id":"de7afbf9-1efb-47d4-adca-667d3c38ef96","description":""},{"name":"Course Management","item":[{"name":"Create Course (Instructor)","id":"78c6d5cc-de00-48ad-8808-3d8e797019a9","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":"78c6d5cc-de00-48ad-8808-3d8e797019a9"},{"name":"Get All Published Courses","id":"1724f49c-84f3-4baf-884f-5cf956836b2f","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":"1724f49c-84f3-4baf-884f-5cf956836b2f"},{"name":"Get Course by ID","id":"cbdaca8f-00af-4fa6-9ad8-61842a864bd1","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":"cbdaca8f-00af-4fa6-9ad8-61842a864bd1"},{"name":"Update Course","id":"86357a03-c423-4ab4-b0f8-13083b62751e","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":"86357a03-c423-4ab4-b0f8-13083b62751e"},{"name":"Get Course for Edit","id":"3f018aeb-1c12-47cd-925d-0a8db1219d8b","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":"3f018aeb-1c12-47cd-925d-0a8db1219d8b"},{"name":"Preview Course (Instructor)","id":"dfd2ae14-90de-4b7a-97b0-4b4d054ee4dc","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":"dfd2ae14-90de-4b7a-97b0-4b4d054ee4dc"},{"name":"Check Enrollment Status","id":"a40a3aca-87d3-4380-a9d7-3c42e4b5609d","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":"a40a3aca-87d3-4380-a9d7-3c42e4b5609d"},{"name":"Course Routes - Get All Courses","id":"e5152f63-6b05-4874-96fb-3dd7fcc45f83","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":"e5152f63-6b05-4874-96fb-3dd7fcc45f83"},{"name":"Course Routes - Get Instructor Courses","id":"c856ae62-4250-4773-98a7-1f81d6db330f","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":"c856ae62-4250-4773-98a7-1f81d6db330f"},{"name":"Course Routes - Update Course","id":"552f222a-fe94-4322-82e6-6ca777bc2e5d","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":"552f222a-fe94-4322-82e6-6ca777bc2e5d"},{"name":"Course Routes - Update Status","id":"854bbf60-7d4f-43e4-b35c-f992bbf5a14a","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":"854bbf60-7d4f-43e4-b35c-f992bbf5a14a"}],"id":"8e5f7b0d-29c3-485b-8a00-756949f5be16","_postman_id":"8e5f7b0d-29c3-485b-8a00-756949f5be16","description":""},{"name":"Content Management","item":[{"name":"Add Topic (Episode)","id":"ab2ffbc7-c653-4002-8711-ec441f2d2c1b","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":"ab2ffbc7-c653-4002-8711-ec441f2d2c1b"},{"name":"Update Topic","id":"86bc6d13-8a96-40cc-9fa4-e60dfe0a4f3a","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":"86bc6d13-8a96-40cc-9fa4-e60dfe0a4f3a"},{"name":"Delete Topic","id":"3b04c24e-f883-4e07-9f2a-59cd406e72a4","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":"3b04c24e-f883-4e07-9f2a-59cd406e72a4"},{"name":"Add Lesson","id":"c862e80f-7a03-4e50-9b69-359b5c25bdab","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":"c862e80f-7a03-4e50-9b69-359b5c25bdab"},{"name":"Update Lesson","id":"3c033783-f33e-4f6a-8f16-be203602536b","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":"3c033783-f33e-4f6a-8f16-be203602536b"},{"name":"Delete Lesson","id":"682e1bd6-3d08-4f17-b1b0-324c509da5c0","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":"682e1bd6-3d08-4f17-b1b0-324c509da5c0"},{"name":"Delete Lesson File","id":"b57b025d-2fbb-4300-a530-2f144454f365","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":"b57b025d-2fbb-4300-a530-2f144454f365"},{"name":"Mark Lesson Complete","id":"d683c107-f521-46bd-ac8a-91c4a0fe8fef","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":"d683c107-f521-46bd-ac8a-91c4a0fe8fef"}],"id":"d0368228-49f1-45c7-aced-1406f8a71285","_postman_id":"d0368228-49f1-45c7-aced-1406f8a71285","description":""},{"name":"Quizzes","item":[{"name":"Add Quiz","id":"6137d88d-fb4d-4127-9785-5853003c6403","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":"6137d88d-fb4d-4127-9785-5853003c6403"},{"name":"Update Quiz Settings","id":"2c7e899f-c53e-4406-90a4-7bc3014592ad","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":"2c7e899f-c53e-4406-90a4-7bc3014592ad"},{"name":"Delete Quiz","id":"efb64915-9323-441f-90ac-3913305c552d","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":"efb64915-9323-441f-90ac-3913305c552d"},{"name":"Add Question","id":"c5ac1868-55d6-4d37-b38e-0edfe3da13c8","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":"c5ac1868-55d6-4d37-b38e-0edfe3da13c8"},{"name":"Update Question","id":"85626afd-c48c-4978-8d9d-bcce432ed813","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":"85626afd-c48c-4978-8d9d-bcce432ed813"},{"name":"Delete Question","id":"a015acba-5c64-4c65-90e7-b692a18084fc","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":"a015acba-5c64-4c65-90e7-b692a18084fc"},{"name":"Submit Quiz","id":"2e177bad-14a0-4722-97ce-55495e0c2688","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":"2e177bad-14a0-4722-97ce-55495e0c2688"},{"name":"Get Quiz Result","id":"c2e5ebad-5092-42be-b099-486cd5782a21","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":"c2e5ebad-5092-42be-b099-486cd5782a21"},{"name":"Get Instructor Quiz Attempts","id":"1ba09209-681c-48e5-b161-0902147b3f81","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":"1ba09209-681c-48e5-b161-0902147b3f81"},{"name":"Debug Question","id":"b1ce7682-f05b-4461-852c-0c4e2e34e562","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":"b1ce7682-f05b-4461-852c-0c4e2e34e562"}],"id":"ca08f4d6-cae0-4b86-96e9-6bb64ffc6607","_postman_id":"ca08f4d6-cae0-4b86-96e9-6bb64ffc6607","description":""},{"name":"Engagement","item":[{"name":"Get All Resources","id":"99950be3-2dc1-4510-934a-c60eeda67c02","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":"99950be3-2dc1-4510-934a-c60eeda67c02"},{"name":"Create Resource","id":"28d9ee4e-5a3e-4583-a201-b6d1b7ad71b4","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":"28d9ee4e-5a3e-4583-a201-b6d1b7ad71b4"},{"name":"Get Instructor Resources","id":"261b0902-ad82-4531-81b5-3aaf4ebc80ac","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":"261b0902-ad82-4531-81b5-3aaf4ebc80ac"},{"name":"Delete Resource","id":"96f2a0a7-8897-4a6e-a1f1-105b21e5d9f5","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":"96f2a0a7-8897-4a6e-a1f1-105b21e5d9f5"},{"name":"Send Announcement","id":"2e794d46-6301-4e0b-b5b9-ef61ebef94eb","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":"2e794d46-6301-4e0b-b5b9-ef61ebef94eb"},{"name":"Get Instructor Announcements","id":"a1e412ca-9655-46f9-9c2d-8dc486778ab3","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":"a1e412ca-9655-46f9-9c2d-8dc486778ab3"},{"name":"Delete Announcement","id":"ae8ecadf-5001-484c-a888-49ee49702f04","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":"ae8ecadf-5001-484c-a888-49ee49702f04"},{"name":"Submit Course Review","id":"7b9cf23d-d6ba-476b-8dac-952c8574e745","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":"7b9cf23d-d6ba-476b-8dac-952c8574e745"},{"name":"Add Instructor Testimonial","id":"2cf812c6-1495-4413-a94b-20156491e871","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":"2cf812c6-1495-4413-a94b-20156491e871"},{"name":"Get Course Reviews","id":"1b6a66eb-fb42-42b2-b365-237ade24355f","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":"1b6a66eb-fb42-42b2-b365-237ade24355f"},{"name":"Delete Review","id":"fad18064-34dc-45c4-adc6-d5ef87b1dc1b","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":"fad18064-34dc-45c4-adc6-d5ef87b1dc1b"}],"id":"9416a7e5-4335-4fe8-b7d2-1873df32c9a5","_postman_id":"9416a7e5-4335-4fe8-b7d2-1873df32c9a5","description":""},{"name":"Payments","item":[{"name":"Stripe Create Intent","id":"6b799aa3-02dd-4103-a93f-6691a45525fe","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":"6b799aa3-02dd-4103-a93f-6691a45525fe"},{"name":"Stripe Verify","id":"4d6c5946-f8ed-4153-b964-a09515e79d0e","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":"4d6c5946-f8ed-4153-b964-a09515e79d0e"},{"name":"PayPal Create Order","id":"78d86608-5eda-49df-9a92-20f0a6c2e7ff","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":"78d86608-5eda-49df-9a92-20f0a6c2e7ff"},{"name":"PayPal Capture Order","id":"a80a057b-30a1-445a-94e7-8ca31bf7cdd9","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":"a80a057b-30a1-445a-94e7-8ca31bf7cdd9"},{"name":"Razorpay Create Order","id":"402655b5-8a12-44d4-a80d-e74a81c00236","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":"402655b5-8a12-44d4-a80d-e74a81c00236"},{"name":"Razorpay Verify","id":"a4ead1a9-4a11-416a-b152-4497ec4636cb","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":"a4ead1a9-4a11-416a-b152-4497ec4636cb"}],"id":"26308f3d-af72-4823-9604-5e66a643a8dd","_postman_id":"26308f3d-af72-4823-9604-5e66a643a8dd","description":""},{"name":"Certificates & Misc","item":[{"name":"Download Certificate","id":"adb22bec-f869-4d6a-8c84-59c3614047f7","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":"adb22bec-f869-4d6a-8c84-59c3614047f7"},{"name":"Health Check","id":"03ca0f63-2738-40f9-9722-f521faed6e91","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":"03ca0f63-2738-40f9-9722-f521faed6e91"}],"id":"a124cca8-9038-4737-9bf2-84ee6b8c2656","_postman_id":"a124cca8-9038-4737-9bf2-84ee6b8c2656","description":""}],"event":[{"listen":"prerequest","script":{"id":"643a2174-e149-46ac-92e4-007b0bceb3b7","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"a9bde3d9-18c7-414e-b69c-a4c6742020fd","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);","    }","}"]}}],"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":""}]}