cdunn / grape-jsonapi-resources

Serialize objects via JSONAPI::Resources for Grape API
MIT License
20 stars 8 forks source link

Pagination Support #3

Open kschutt opened 8 years ago

kschutt commented 8 years ago

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!

cdunn commented 8 years ago

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).

kschutt commented 8 years ago

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.