kurko / ember-json-api

JSON API adapter for Ember Data.
MIT License
254 stars 62 forks source link

Why? #58

Closed dustinfarris closed 9 years ago

dustinfarris commented 9 years ago

Sorry for my ignorance and if this is the wrong place to ask; but I'm confused as to what problem this package solves. Doesn't Ember Data's built-in REST adapter already support JSON API out of the box?

locks commented 9 years ago

No. Ember Data currently supports a JSONAPI-like format in the form of ActiveModelAdapter, meant to be used with ActiveModel::Serializer on the Rails side. You can follow the link at https://github.com/kurko/ember-json-api#specification-coverage to see exactly which parts of the specs the library supports.

dustinfarris commented 9 years ago

Ok, the JSON API about page is confusing then.

JSON API is extracted from the JSON transport implicitly defined by Ember Data's REST adapter.

locks commented 9 years ago

Note that the header of the section is "History" ;) It was initially the case, but things have since diverged. I expect that when JSONAPI 1.0.0 drops that Ember Data and ActiveModel:Serializers will be somewhat updated for better support.

dustinfarris commented 9 years ago

Gotcha, thanks for clarifying and thanks for the link and for this project. I will probably be using it.

locks commented 9 years ago

Happy to help :) It's hard to keep track of everything when it's moving so fast.