Below is a comparison of the method usage proposed by each lib for handling paged resources.
cars.read({
page: "next",
success: function( data ) {
// do something
},
error: function() {
// handle it
}
});
cars.read({
page: "prev",
success: function( data ) {
// do something
},
error: function() {
// handle it
}
});
###Android
###iOS
###JS
cars.updatePageConfig({
offset: 2,
limit: 10
});
// Get all records for a single read but continue paging aftwerward
cars.read({
page: false,
success: function( data ) {
// do something
},
error: function() {
// handle it
}
});
// Or permanently update the config to no longer page the results
cars.updatePageConfig({
paged: false
});
cars.read({
success: function( data ) {
// do something
},
error: function() {
// handle it
}
});