API – Quizzing report
Before making a request, log in as a user with the Administrator role. How to log in via API is described here API – Authorization
- To get the quiz report you need to send GET request to the following URI
https://localhost:8080/api/v2/test-report/{id}?page=1&count=10&filter[testId]={id}&sorting[user_full_name]=asc - The request must contain the headings Content-Type: application/json;charset=UTF-8 and Authorization: Bearer xxxxxx.
Request example:
curl 'https://localhost:8080/api/v2/test-report/1116?page=1&count=10&filter[testId]=1116&sorting[user_full_name]=asc' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'
Instead of a local address http://localhost:8080 you need to use the address of your server.
instead of 1116 you need to set the quiz id.
instead of 1116 you need to set the quiz id.
Answer
- In case of successful request (HTTP response code - 200), the following result will be returned:
- results arraydata
- pagination object (information about the number of pages, the current page, the number of results)pager
The request supports filtering by the following fields:
taskId - Task ID
position - Position
city - City
department - Department
tags - tag
task_last_attempt_at - date of the last attempt
- In case of error (HTTP response code - 400) it returns JSON object with error information