Get organizations API's limit parameter seems not working. It always returns all organizations, which can be reproduced in https://try.gitea.io/api/swagger#/
I'm working on a Gitea mobile client and find this issue.
Thanks!
@pd4d10 it is working as expected: https://try.gitea.io/api/v1/orgs?page=1&limit=5
can confirm that https://try.gitea.io/api/v1/orgs?limit=5 is not working ...
this is intended:
https://github.com/go-gitea/gitea/blob/74a4a1e17f99d147db9329718a5ecc87984b0ecd/models/user.go#L1601-L1603
just send a page number if you like paggination
@pd4d10 if you got it working - can you close this issue?
After page param added it works. Thanks for the quick response!
Hi, @6543 , it works with the page query added. But the response header seems to lack x-page, x-hasmore and x-total.
Could you help to check this? Thanks!