API – Complex 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 complex quiz report you need to send GET request to the following URI
https://localhost:8080/api/rest.php/tasks-reports?page=1&count=10&filter[taskId]={id}&filter[complexTestId]={id}&sorting[task_finish_date]=desc&action=get-complex-test-report&complexTestId={id} - The request must contain the headings Content-Type: application/json;charset=UTF-8 and Authorization: Bearer xxxxxx.
Request example:
curl 'https://localhost:8080/api/rest.php/tasks-reports?page=1&count=10&filter[taskId]=287812&filter[complexTestId]=633&sorting[task_finish_date]=desc&action=get-complex-test-report&complexTestId=633' -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 287812 - task id
instead of 633 you need to set the complex quiz id.
instead of 287812 - task id
instead of 633 you need to set the complex 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:
- position - Position
- city - City
- department - Department
- tags - tag
- task_finish_date - task completion date
In case of error (HTTP response code - 400) it returns JSON object with error information