hyperswitch
hyperswitch copied to clipboard
[FEATURE] return total_count in payouts filtered list API response
Feature Description
Payouts filter API should also send a total_count
which represents the total number of payout entries available for a given set of constraints. This API supports pagination and returns only 20 entries at a given time, total_count
is helpful for knowing ahead of time about the total number of entries that are available.
Possible Implementation
Write a DB query for counting all the rows for a given set of constraints, consume this query to get the total count and send back the response.
Have you spent some time checking if this feature request has been raised before?
- [X] I checked and didn't find a similar issue
Have you read the Contributing Guidelines?
- [X] I have read the Contributing Guidelines
Are you willing to submit a PR?
Yes, I am willing to submit a PR!