GET /api/leaderboard
Get leaderboard

Ejemplos

"leaders": [
  {
    "id": 1,
    "email": "usuario1@test.com",
    "name": "usuario1",
    "contents_learnt": 68,
    "achievements": 7,
    "time_elapsed": 9409558493,
    "user_id": 10
  },
  {
    "id": 3,
    "email": "usuario3@test.com",
    "name": "usuario3",
    "contents_learnt": 14,
    "achievements": 5,
    "time_elapsed": 3067483,
    "user_id": 12
  },
  {
    "id": 2,
    "email": "usuario2@test.com",
    "name": "usuario2",
    "contents_learnt": 9,
    "achievements": 4,
    "time_elapsed": 3992873,
    "user_id": 22
  }
],
"meta": {
  "total_count": 3,
  "total_pages": 1,
  "total_contents": 71,
  "user_data": {
    "id": 1,
    "email": "usuario1@test.com",
    "name": "usuario1",
    "contents_learnt": 68,
    "achievements": 7,
    "time_elapsed": 9409558493,
    "user_id": 10,
    "position": 1
  }
}
    

Parámetros

Nombre del parámetro Descripción
user_id
opcional

Value:

Must be Integer

event_id
opcional

Value:

Must be Integer