code-gov-api icon indicating copy to clipboard operation
code-gov-api copied to clipboard

Total in agencies/repos endpoint should be based on query result not size

Open Nosferican opened this issue 6 years ago • 0 comments

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.

Nosferican avatar Oct 17 '19 23:10 Nosferican