Get Lesson Details
Retrieves detailed information about a specific lesson including content, quizzes, and resources. Requires enrollment in the parent course.Path Parameters
Lesson ID
Response
Detailed lesson object
Example Request
Example Response
Lesson Access Control
Access to lesson content is controlled by enrollment status:- Regular Users: Must be enrolled in the course to access any lesson
- Admin/Instructor: Can access all lessons without enrollment
Lesson Content Types
Lessons support three main content types:Video Lessons
Video lessons have avideo_url field pointing to the video file. The URL may be transformed to use Azure Front Door CDN if enabled.
Text Lessons
Text lessons contain HTML or markdown content in thetext_content field.
Quiz Lessons
Quiz lessons contain questions from the normalizedquiz_questions table. Questions support multiple types:
- multiple-choice: Single correct answer from options
- true-false: Boolean answer
- fill-blank: Text input with correct answers
- short-answer: Keyword-based evaluation
- essay: Free-form text (manual grading)
- matching: Match items from two lists
Quiz Question Structure
Quiz questions are stored in thequiz_questions table with the following structure:
Resources
Lessons can include downloadable resources linked through thelesson_resources junction table:
Error Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized - Authentication required |
| 403 | Forbidden - Not enrolled in course |
| 404 | Not Found - Lesson not found |
| 500 | Internal Server Error |