curl --request GET \ --url 'https://backend.testeswaffle.org/streaks/ranking/global/with-position' \ --header 'Authorization: Bearer SEU_JWT_TOKEN'
{ "success": true, "data": { "ranking": [ { "position": 1, "displayName": "João Silva", "email": "jo***@gmail.com", "currentStreak": 365, "maxStreak": 365, "lastInteractionDate": "19/01/2025 08:30:15" }, { "position": 2, "displayName": "Carlos Usuário", "email": "ca***@exemplo.com", "currentStreak": 280, "maxStreak": 300, "lastInteractionDate": "19/01/2025 07:45:22" } ], "lastUpdated": "2025-01-19T11:30:00.000Z", "cacheInfo": { "cached": true, "ttl": 61200 } } }
Obtém o ranking global e inclui a posição específica do usuário autenticado
Authorization: Bearer <token>
Show properties
Show ranking item
userPosition
null
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Ranking com posição do usuário obtido com sucesso
Show child attributes