Leaderboard API

for owner

GET /api/v1/courses/:course_id/leaderboard

Parameters

Name Description
course_id id of the course

Request

Headers

Accept: application/json
X-Api-Token: 23K7nBsb1vpw2CJMFy7Sj4C6LYeYtQfpxw
X-Api-Email: user-652@example.com

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

Content-Type: application/json; charset=utf-8
Content-Length: 55

Status

200 OK

Body

{
  "leaderboard": [

  ],
  "meta": {
    "page": 1,
    "per": 10,
    "count": 0
  }
}