I read that Ember Data ships with an adapter for ActiveModel::Seializers from Rails.
I’m curious whether there are plans to have a canonical adapter for Django/DjangoRestFramework backends.
I think it would be a big win for everyone. More devs will choose Ember if the can have confidence that it will work well with their API, and there are a lot of Django applications being built.
@martin Thanks for the note, are the maintainers of that project aware of this? Is the ember-cli/ember-data/django-rest-framework not currently feasable?
I have a django side adapter which conforms the django rest framework output to the ember data style. It is built for DRF 3 which was just released in beta today so its a bit cutting edge but I am using it successfully in production already.
I was using Toran’s adapter for a long time but at this stage my opinion is that the adapter work is better done server side. That said, Dustin Farris’s adapter is currently undergoing a major rewrite (it’s on a branch in the repo) which looks very promising.
Happy to chat if you need help getting started using Django and Ember together.
At any rate, thanks to advances in Ember Data and DRF 3.0, the adapter has been dramatically simplified. It is pretty light-weight now and is very easy to get going with—just an npm install in your ember-cli project and you’re off to the races.
Server side solutions have been coming along nicely too. @g-cassie’s ember-drf project is great, and I just discovered rest_framework_ember which looks pretty solid as well (haven’t tried it though, edit: I don’t think it supports DRF 3.0). All in all, a great django/ember ecosystem is starting to solidify. Very exciting stuff.
One of the authors of the mentioned rest_framework_ember package here. Just wanted to say that it does support DRF 3.0 and the plan is for it to support the jsonapi.org 1.0 spec when it solidifies.