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

Paginated results #46

Open
eldamir opened this issue Aug 27, 2015 · 0 comments
Open

Paginated results #46

eldamir opened this issue Aug 27, 2015 · 0 comments

Comments

@eldamir
Copy link

eldamir commented Aug 27, 2015

Imaging this example

var client = new $.RestClient('/api/')
client.add('addresses')
client.addresses.read()

The data returned is

{
    prev: null
    next: "/api/addresses?page=2"
    results: [...]
}

Is there a way for me to use the client to fetch the next page? You probably don't want to make a specific method for detecting pagination, but is there a method for simply GETting a full URL instead of using .read()?

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