Postman assets live under docs/postman/:
docs/postman/LMS_Backend_API.postman_collection.jsondocs/postman/LMS_Backend_Environment.postman_environment.json
- Postman → Import → select
docs/postman/LMS_Backend_API.postman_collection.json. - Environments → Import → select
docs/postman/LMS_Backend_Environment.postman_environment.json. - Choose LMS Backend Environment from the environment dropdown.
Default base_url is http://localhost:5000. For a deployed API (e.g. Vercel), set base_url to https://your-deployment.vercel.app.
npm run seed- Admin:
admin@lms.com/Admin123! - Instructor:
instructor@lms.com/Instructor123! - Student:
student@lms.com/Student123!
- Login or Register — JWT is saved to
auth_tokenin the environment (per collection scripts). - Protected requests send
Authorization: Bearer <token>.
- Authentication, Users, Courses, Enrollments, Health.
- Extend the collection for modules, lessons, assignments, quizzes, submissions, and reviews as needed (same paths as API reference).
newman run docs/postman/LMS_Backend_API.postman_collection.json -e docs/postman/LMS_Backend_Environment.postman_environment.json- Confirm the API is running and
base_urlis correct. - Check MongoDB is reachable from your machine (local or Atlas).
- Refresh the token by logging in again if requests return
401.
For HTTP details and status codes, use Swagger UI at /api-docs or see the main API reference.