curl --request GET \
--url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
"success": true,
"data": {
"ranking": [
{
"position": 1,
"email": "top***@***.com",
"currentStreak": 365,
"maxStreak": 365,
"isCurrentUser": false
},
{
"position": 2,
"email": "sec***@***.com",
"currentStreak": 180,
"maxStreak": 200,
"isCurrentUser": false
},
{
"position": 3,
"email": "lei***@exemplo.com",
"currentStreak": 150,
"maxStreak": 150,
"isCurrentUser": true
}
],
"userPosition": {
"position": 3,
"totalReaders": 5432
}
}
}
Obtém o ranking dos leitores com maiores streaks
curl --request GET \
--url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
"success": true,
"data": {
"ranking": [
{
"position": 1,
"email": "top***@***.com",
"currentStreak": 365,
"maxStreak": 365,
"isCurrentUser": false
},
{
"position": 2,
"email": "sec***@***.com",
"currentStreak": 180,
"maxStreak": 200,
"isCurrentUser": false
},
{
"position": 3,
"email": "lei***@exemplo.com",
"currentStreak": 150,
"maxStreak": 150,
"isCurrentUser": true
}
],
"userPosition": {
"position": 3,
"totalReaders": 5432
}
}
}
Show properties
curl --request GET \
--url 'https://backend.testeswaffle.org/streaks/[email protected]'
{
"success": true,
"data": {
"ranking": [
{
"position": 1,
"email": "top***@***.com",
"currentStreak": 365,
"maxStreak": 365,
"isCurrentUser": false
},
{
"position": 2,
"email": "sec***@***.com",
"currentStreak": 180,
"maxStreak": 200,
"isCurrentUser": false
},
{
"position": 3,
"email": "lei***@exemplo.com",
"currentStreak": 150,
"maxStreak": 150,
"isCurrentUser": true
}
],
"userPosition": {
"position": 3,
"totalReaders": 5432
}
}
}