Skip to main content

Get Course Dashboard Quiz

This endpoint retrieves the list of all quiz that the users that joined the course identified by {id} made. It will also return some useful stats that can be used to make a course dashboard about quiz.

info

This operation requires the course creator or manager role.

HTTP Request

GET /api/v2/course/{id}/quiz/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this course
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results
searchquerystringfalseA search term (search inside username, real_name of the users and name of lessons)
statusesquerylist(string)¦stringfalseFilter by join_status; default: ["manager", "joined"]

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/course/{id}/quiz/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» resultslist(Course Quiz Dashboard)falsenoneList of results. Every items will contain only the necessary fields