code-gov-api
code-gov-api copied to clipboard
Total in agencies/repos endpoint should be based on query result not size
Is your feature request related to a problem? Please describe.
When using the repos endpoint the total return is how many items match the query.
When querying the agencies endpoint the total is the number of items returned (i.e., as a function of size)
Describe the solution you'd like
Have the value of total in the agencies endpoint match that of the repos.
Describe alternatives you've considered
A possible solution would be to include in the headers a count of how many items were returned.