Reputation: 1306
Can't Ember-data just see the JSON response it gets and understand by it which attributes are used by the server?
For example if the response for 'GET /api/user/1' is like:
{
id: 1,
first_name: 'Miki',
last_name: 'Coco',
age: 17
}
Its pretty obvious that the user model has just first_name, last_name and age.
Why would i need to configure it?
Upvotes: 1
Views: 41
Reputation: 47367
Here's the things that I can think of off the top of my head.
Honestly, I avoid Ember Data for simple models that I don't need CRUD for, it's overkill (unless I'm worried about client side caching etc)
Upvotes: 1