1. Quiz Attempt
E-Learning
  • Auth
    • Register
      POST
    • Confirm Email
      POST
    • Resend Confirmation Email
      POST
    • Login
      POST
    • Google Login
      GET
    • Google Login By Id Token
      POST
    • Forget Password
      POST
    • Reset Password
      POST
    • Refresh Token
      POST
    • Revoke Refresh Token
      POST
  • Account
    • Get User
      GET
    • Update User
      PUT
    • Delete User
      DELETE
    • Change Password
      PUT
    • Uploade User Image
      POST
    • Delete User Image
      DELETE
    • Become Instructor
      POST
    • Get Users To Admin
      GET
    • Delete User By Admin
      DELETE
    • Add User To Role
      POST
    • Remove User From Role
      DELETE
    • Get instructor Requests
      GET
    • Approve Instructor Request
      PATCH
    • Reject Instructor Request
      PATCH
  • Course
    • Anonymous
      • Get All Courses
      • Get Course By Id
    • Instructor
      • Get Instructor Courses
      • Get Instructor Course By Id
      • Create Course
      • Publish Course
      • Unpublish Course
      • Update Course Info
      • Delete Course
      • Add Thumbnail
      • Delete Thumbnail
    • Admin
      • Get All Courses To Admin
      • Get Course By Id To Admin
      • Delete Course By Admin
      • Restore Soft Deleted Course By Admin
  • Chapter
    • Anonymous
      • Get All Course Chapters
      • Get Chapter
    • Instructor
      • Get All Chapters To Instructor
      • Get Chapter To Instructor
      • Create Chapter
      • Update Chapter
      • Reorder All Chapters
      • Delete Chapter
      • Add Chapter Image
      • Delete Chapter Image
    • Admin
      • Get All Chapters To Admin
      • Get Chapter To Admin
  • Lesson
    • Anonymous
      • Get All Lessons
      • Get Lesson
    • Instructor
      • Get All Lessons To Instructor
      • Get Lesson To Instructor
      • Create Lesson In Chapter
      • Upload Lesson Video
      • Delete Lesson Video
      • Update Lesson
      • Delete Lesson
      • Reorder All Lessons in Chapter
    • Admin
      • Get All Lessons To Admin
      • Get Lesson To Admin
  • Cart
    • Get Cart For User
    • Add Course In Cart
    • Delete Item From User Cart
  • Payment
    • Create Payment Intention
    • Get Payment History
  • Enrollment
    • Enrolle In Course
    • Unenroll From Course
    • Get Enrolled Course Details
    • Get Student Courses
    • Get Enrolled Students in Course
  • Learn
    • Get Student Course Learn
    • Mark Lesson Complete
  • Quiz
    • Create Quiz
    • Get Quiz
    • Update Quiz Info
    • Delete Quiz
    • Active Quiz
    • Deactive Quiz
  • Question
    • Question Types
    • Create Question
    • Get Question
    • Update Question
    • Delete Question
    • Reorder Questions
  • Quiz Attempt
    • Start Quiz Attempt
      POST
    • Get Active Quiz Attempt
      GET
    • Submit Quiz Attempt
      POST
    • Get Quiz Attempt Result
      GET
    • Get Quiz Attempts History
      GET
  1. Quiz Attempt

Get Active Quiz Attempt

GET
http://e-learning-platform.tryasp.net/api/courses/{courseId}/learn/lessons/{lessonId}/quiz/attempt/{quizAttemptId}
Authorized User

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Responses

🟢200Get Active Quiz Attempt
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://e-learning-platform.tryasp.net/api/courses//learn/lessons//quiz/attempt/' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "id": 3,
    "startTime": "2026-07-14T09:50:30.266447",
    "endTime": "2026-07-14T10:00:30.2665056",
    "quiz": {
        "id": 1,
        "title": "Middleware Pipeline Quiz",
        "description": "Test your understanding of how the ASP.NET Core middleware pipeline works.",
        "durationInMinutes": 10,
        "questions": [
            {
                "id": 3,
                "questionType": "TrueFalse",
                "questionText": "In ASP.NET Core, calling `next()` inside a middleware passes the request to the next middleware in the pipeline.",
                "points": 1.00,
                "orderNumber": 2,
                "options": [
                    {
                        "id": 6,
                        "optionText": "True"
                    },
                    {
                        "id": 7,
                        "optionText": "False"
                    }
                ]
            },
            {
                "id": 4,
                "questionType": "MCQ",
                "questionText": "What method is used to add a custom middleware class to the pipeline?",
                "points": 2.00,
                "orderNumber": 2,
                "options": [
                    {
                        "id": 8,
                        "optionText": "app.UseMiddleware<T>()"
                    },
                    {
                        "id": 9,
                        "optionText": "app.AddMiddleware<T>()"
                    },
                    {
                        "id": 10,
                        "optionText": "app.RegisterMiddleware<T>()"
                    },
                    {
                        "id": 11,
                        "optionText": "app.InjectMiddleware<T>()"
                    }
                ]
            },
            {
                "id": 1,
                "questionType": "MCQ",
                "questionText": "What is the correct order of middleware execution in ASP.NET Core?",
                "points": 2.00,
                "orderNumber": 3,
                "options": [
                    {
                        "id": 1,
                        "optionText": "Request flows in registration order; response flows in reverse order."
                    },
                    {
                        "id": 2,
                        "optionText": "Request and response both flow in registration order."
                    },
                    {
                        "id": 3,
                        "optionText": "Middleware order does not matter."
                    },
                    {
                        "id": 4,
                        "optionText": "Response flows in registration order; request flows in reverse order."
                    }
                ]
            },
            {
                "id": 2,
                "questionType": "Essay",
                "questionText": "The ASP.NET Core request pipeline is made up of a series of ________ components.",
                "points": 1.00,
                "orderNumber": 4,
                "options": [
                    {
                        "id": 5,
                        "optionText": "middleware"
                    }
                ]
            }
        ]
    }
}
Modified at 2026-07-20 15:13:26
Previous
Start Quiz Attempt
Next
Submit Quiz Attempt
Built with