forked from itsfourthidiot/ira
-
Notifications
You must be signed in to change notification settings - Fork 0
Calculate Student's quiz score
Gauri Pandharinath Bodke edited this page Jun 15, 2022
·
1 revision
Calculate Student's quiz score
URL: /api/student/course/:courseID/module/quiz/score
URL Parameters : courseId=[integer]
where courseId
is the ID of the course to which module needs to be added.
Method: POST
Authorization required: Yes
Content-Type: application/json
Request
{
"moduleId": 21,
"response":[25,26,28,29]
}
Code : 200 Created
Example:
{
"ID": 6,
"CreatedAt": "2022-04-13T19:22:25.067392867-04:00",
"UpdatedAt": "2022-04-13T19:22:25.067392867-04:00",
"DeletedAt": null,
"studentId": 12,
"quizId": 17,
"scoreValue": 1
}
Code: 400 Bad Request
Example:
{
"error": "incorrect parameters"
}
Code: 401 Unauthorized
Example:
{
"error": "token not found"
}
Code: 401 Unauthorized
Example:
{
"error": "user unauthorized"
}
Code: 404 Bad Request
Example:
{
"error": "course not found"
}
Code: 404 Bad Request
Example:
{
"error": "course not Published"
}
Code: 404 Bad Request
Example:
{
"error": "student not enrolled"
}
Code: 404 Bad Request
Example:
{
"error": "incorrect module type"
}
Code: 500 Internal Server Error
Example:
{
"error": "internal server error"
}
- Sprint Progress:
- Database design
- CI/CD using GitHub Actions
- How to run the project?
- Sprint 3 UI Screenshots
-
Back-end API documentation
- Create an instructor account
- Login to an instructor account
- Create a student account
- Login to a student account
- Get the list of all courses
- Get the list of courses created by an instructor
- Create a course
- Publish a course
- Get course description
- Update the course description by an instructor
- Add video module to the course
- Add quiz module to the course
- Calculate student quiz score
- Get course details
- Get module details
- Check if the student is enrolled in a course
- Enroll a student into a particular course
- Get the list of all courses enrolled by a student