API – List of quizzes
- To get the list of surveys you need to send GET request to the URI http://localhost:8080/api/v2/tests/get-items
- The request must contain the following headings Content-Type: application/json;charset=UTF-8 и Authorization: Bearer xxxxxx.
curl 'http://localhost:8080/api/v2/tests/get-items' -H 'Authorization: Bearer xxxxxx' -H 'Content-Type: application/json;charset=UTF-8'
- In case of successful request (HTTP response code - 200), the following result will be returned:
- quiz array
- pagination object (information about the number of pages, the current page, the number of quizzes)
The request supports filtering by the following fields:
title - Quiz title
tags - Tags
Example of a request with a search by title:
curl 'http://localhost:8080/api/v2/tests/get-items?filter[title]=Time management quiz'
- In case of error (HTTP code response - 400) it returns JSON object with information about the error