weglide / bugtracker

WeGlide platform bug tracker.
https://www.weglide.org
11 stars 1 forks source link

API POST ranking query parameter "limit" not working #152

Closed techolga closed 2 years ago

techolga commented 2 years ago

Describe the bug The query parameter "limit" on POST request for ranking is ignored.

To Reproduce Steps to reproduce the behavior: In bash:

curl -X POST https://api.weglide.org/v1/ranking?limit=1 -H "Accept: application/json" -H "Content-Type: application/json" --data-binary @- <<DATA { } DATA

Expected behavior One result should be given back, instead of default 250.

("skip" parameter works fine)

samuel-git commented 2 years ago

This is by design to allow better caching on our end. We will deprecate the limit parameter and fix skip to 250 increments. (It is. 100 for other lists). Does this work for you?

techolga commented 2 years ago

Should work for me. The skip parameter is already fixed to 250 increments according to my observations. Thanks for the quick reply.