GSA / code-gov-api

API powering the code.gov source code harvester
http://code.gov
Other
53 stars 28 forks source link

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

Open Nosferican opened 5 years ago

Nosferican commented 5 years ago

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.