Skip to content

Compare Test Results

Endpoint used to compare the results of a classification test between two students in Toolzz LMS.

Terminal window
curl --request GET \
--url 'https://kong.api.toolzz.com.br/api/reports/classification/compare-test-results?first_student_id=123&second_student_id=456&test_name=test&course_id=789' \
--header 'Authorization: Bearer <token>'
{
"test_id": 123,
"test_name": "<string>",
"first_student_score": 90,
"second_student_score": 85,
"first_student": {
"id": 123,
"name": "<string>",
"email": "<string>",
"answers": [
{
"question_id": 1,
"question": "<string>",
"answer": "<string>"
}
]
},
"second_student": {
"id": 456,
"name": "<string>",
"email": "<string>",
"answers": [
{
"question_id": 1,
"question": "<string>",
"answer": "<string>"
}
]
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
first_student_idintID of the first student to be compared.Yes
second_student_idintID of the second student to be compared.Yes
test_namestringName of the assessment that will be used for comparison between students.Yes
course_idintCourse identifier in which the assessment was linked.Yes

Note: To use this resource, it is necessary to have the “Classification Tests” feature active on the platform.


KeyTypeDescription
test_idnumberUnique identifier for the test.
test_namestringName of the test.
first_student_scorenumberScore of the first student.
second_student_scorenumberScore of the second student.
first_studentobjectInformation of the first student.
first_student.idnumberUnique identifier for the first student.
first_student.namestringName of the first student.
first_student.emailstringEmail of the first student.
first_student.answersarrayList of answers provided by the first student.
first_student.answers.question_idnumberUnique identifier for the question.
first_student.answers.questionstringThe question asked.
first_student.answers.answerstringThe answer provided by the student.
second_studentobjectInformation of the second student.
second_student.idnumberUnique identifier for the second student.
second_student.namestringName of the second student.
second_student.emailstringEmail of the second student.
second_student.answersarrayList of answers provided by the second student.
second_student.answers.question_idnumberUnique identifier for the question.
second_student.answers.questionstringThe question asked.
second_student.answers.answerstringThe answer provided by the student.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.