-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/count header #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I guess we'll also need to update the compliance test suite so that CI continues to pass if we decide to remove the count endpoint. |
I suppose the count endpoint might be useful if you only want the count. Otherwise you'd need to request something else and get the count from the header. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work
Please also update the list of response headers in the README. |
Need to also consider how to test this using compliance tests, and more generally how to handle divergence of the API over time. |
Adds an extra HTTP header to all successful responses with a count of the number of elements operated on while calculating the result of reduction.
This probably makes the
count
endpoint obsolete and worth removing. I can remove that endpoint as part of this PR and bump semver to0.2.0
if that's the route we want to take.