O'Reilly logo

Ember.js Web Development with Ember CLI by Suchit Puri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The default REST adapter and serializer

As we saw in the section, Understanding the Ember Data identity map – DS.Store, all interactions with the server are handled by the adapter. Adapter in ember-data understands how to connect to the server, in order to fetch and save the records from/to the server. Similarly, serializer, as the name implies, is responsible for serializing or converting the response received from the server to DS.Model objects.

By default in ember-data, the store will use the DS.RESTAdapter and DS.RESTSerializer. As the name implies, the DS.RESTAdapter is based on the REST (Representational State Transfer) principles to load or save a record from/to the server. The DS.RESTAdapter communicates with the HTTP server by sending ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required