Skip to content
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

Add count responder to optionally provide the number of resources in a response header #20

Open
lserman opened this issue Aug 11, 2016 · 0 comments

Comments

@lserman
Copy link
Contributor

lserman commented Aug 11, 2016

Not sure how we should determine when clients want the count. ?count=true? A request header?

Anyway, when they do want it, we should just stick an X-Count response header with the # of resources being returned. It's useful whenever the client side has to change their UI based on if theres 0, 1, or many items.

We should also consider ONLY providing the records count and not providing the actual serialization of those records (can be done by overriding to_format)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant