grape-jsonapi-resources icon indicating copy to clipboard operation
grape-jsonapi-resources copied to clipboard

Pagination Support

Open kschutt opened this issue 9 years ago • 2 comments

Does the formatter support pagination? We are trying to use Grape and jsonapi-resources together to create an API to spec, however, we cannot get pagination to work properly. I believe this is because normally with jsonapi-resources, the request is routed through a ResourceController and during serialization the appropriate operations are applied and meta keys filled out.

Thanks for any insight!

kschutt avatar Jun 10 '16 13:06 kschutt

My use case has just been for using as a serialization layer to ember-data so I've been doing pagination manually (render documents, meta: { ...pagination metadata... }) and haven't really gotten into all the other goodness in jsonapi-resources so this might not fit your needs at the moment (though PRs are welcome if you don't find anything else).

cdunn avatar Jun 10 '16 14:06 cdunn

Thanks for the response. I was worried I was missing something. I'll take a look at it again and see how far I can get.

kschutt avatar Jun 10 '16 14:06 kschutt