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 basic limiting & ordering to payments API #213

Merged
merged 1 commit into from
Jan 31, 2014
Merged

Add basic limiting & ordering to payments API #213

merged 1 commit into from
Jan 31, 2014

Conversation

ohaibbq
Copy link
Contributor

@ohaibbq ohaibbq commented Jan 30, 2014

No description provided.

@liuhenry
Copy link
Contributor

+1 awesome :)

Would be cool to be able to pass in an offset param for pagination as well!

(As an aside, we don't have a wrapper object for the returned resource that we could add a total "result_count" attribute to, but that would also break backwards compatibility for current API consumers. )

liuhenry added a commit that referenced this pull request Jan 31, 2014
Add basic limiting & ordering to payments API
@liuhenry liuhenry merged commit 2c5781e into Crowdtilt:master Jan 31, 2014
@ohaibbq
Copy link
Contributor Author

ohaibbq commented Feb 1, 2014

Sounds good.

We could use the Link HTTP header for a backwards compatible next/previous pagination (if we care enough). http://tools.ietf.org/html/rfc5988#page-6

At this point instead of limit/offset it might be worth it just to pull in a pagination gem.

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

Successfully merging this pull request may close these issues.

2 participants