lundi 10 décembre 2018

How to handle multiple paginations with one link

In basic pagination we get some next url for loading more data, but if those data have more data with pagination as well, how can I customize and use different parameters for different data:

?page=2 to ?posts=2&comments=1

And then use one for one, other for other..

I am using api resource with main UserResource which returns posts with PostsResource which uses pagination and returns CommentsResource whicch uses pagination as well.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire