for owner
GET /api/v1/courses/:course_id/leaderboard
Parameters
| Name |
Description |
|
course_id
|
id of the course
|
Request
Headers
Route
GET /api/v1/courses/272/leaderboard
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/courses/272/leaderboard" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: 23K7nBsb1vpw2CJMFy7Sj4C6LYeYtQfpxw" \
-H "X-Api-Email: user-652@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"leaderboard": [
],
"meta": {
"page": 1,
"per": 10,
"count": 0
}
}