-
Notifications
You must be signed in to change notification settings - Fork 56
홈 랭크 조회 오류 #416
Copy link
Copy link
Closed
Description
1. 랭크 조회 api 오류
사용자 랭크가 3 이하인 경우, 현재 페이지가 -1로 처리됩니다.
그러면 홈에서 랭킹 조회시에
startRankNumber를 -1로 계산하고 호출하는데, 해당 api는 rank를 0보다 큰 값을 요구합니다.
결과:
Request URL
https://render.gitanimals.org/ranks?rank=-1&size=5&type=WEEKLY_USER_CONTRIBUTIONS
Request Method
GET
Status Code
400 Bad Request
2. 랭크 자체의 이슈
본인의 랭크를 알기 위해서 다음 api를 호출합니다.
> curl https://render.gitanimals.org/ranks/by-username/daeho-ro ...
{
"id": "673860353918768213",
"rank": 0,
"image": "https://avatars.githubusercontent.com/u/40587651?v=4",
"name": "daeho-ro",
"contributions": 42
}
보다시피 rank가 0으로, 1부터 1위가 아닌 상태입니다.
rank 1부터 1등으로 간주하고 있습니다.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels