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
JSON API compatibility #144
Comments
+1 All hail JSON API |
+1 |
+1. Really looking forward to it. |
This needs to get done. I'd like to start on it this week. Thanks @jfelchner for creating the issue. I'll comment with an update when I have one. |
👍 |
Would love to see this. Would it make sense to somehow use the The json api doesn't set any standard for what should be in
which means they are always available versus meta which could be anything. I'm not sure if this is exposed at all by ember data though. Just getting started with it. |
@sarus It seems ember-data expects it to be on |
@broerse Not to say that ember data won't make use of the I asked on Slack about how Ember Data intends to implement paging and this was the resulting conversation:
Based on the conversation it seems like the |
IMO the API still needs to return both regardless. Parsing "What is the current page?" Out of pagination links is a pain. |
@jfelchner @sarus I also think we need both. Now we need something to test against. |
any progress made here by anyone in their apps or are people just using some ad hoc solutions where they are shaping the objects that get passed into the PagedRemoteArray |
@jfelchner hi, any update on this? |
+1 Anyone have a good work around for this? |
Frank Treacy has a post about this and shows a good workaround; he even links to this thread. Jump to "#1: Accessing pagination links". |
I know this is old, but is there still no solution for pagination in an ember app that adheres to jsonapi-spec? |
Now that
ember-data
final is in the wild and it's default to JSON API, a lot of people are going to be making moves to make their APIs compatible.I realize that before JSON API, Kaminari was the best option for defaults, but now I think we should switch to JSON API compatible pagination.
We're currently having to do some crazy param mapping stuff every single place we need to do it and we can't even get the total pages to render properly.
Meta Tag Example for Pagination Metadata
Request Parameters Examples
page[number]
page[size]
page[offset]
page[limit]
page[cursor]
The text was updated successfully, but these errors were encountered: