Greenstand / treetracker-wallet-api

GNU Affero General Public License v3.0
18 stars 52 forks source link

fix:get all token ids from wallet #461

Closed paramkr2 closed 5 months ago

paramkr2 commented 5 months ago

Description

Issue(s) addressed

What kind of change(s) does this PR introduce?

Please check if the PR fulfils these requirements

Issue

What is the current behavior? The /tokens?limit= endpoint currently restricts the maximum number of tokens that can be retrieved to 2000. Requests exceeding this limit result in a validation error.

What is the new behavior? Requests made to this route can now specify any limit value

Breaking change

Does this PR introduce a breaking change? No

Kpoke commented 5 months ago

We do want to have a limit on the maximum number of tokens that can be returned. If having a higher limit is required we can increase the limit or have the frontend make use of pagination