ember-resource
ember-resource copied to clipboard
This project has moved. The canonical repository is now located at: https://github.com/zendesk/ember-resource
My models have string ids, so they cannot be handled by NumberAttributeSchemaItem.
In our application we really need to grab particular objects by primary key, now you can achieve this via App.Model.find(id)
sting -> string kinda nitpicky though
Hi, I am trying to define Resource objects to connect to an API in the following format: { blocks: [ { id: 1, name: "Search Action" }, { id: 2,...
Example: ``` javascript Klass = Em.Resource.define({ schema: { children: { type: Em.ResourceCollection, itemType:Object, nested: true } } }); k = Klass.create({}); k.set('children', [ { name: 'Harold' } ]); k.get('children'); //...
In nested `hasOne` and `hasMany` associations, it's useful to have the associated objects have pointers back to the origin object. This can't be done by overriding `init` since the object...
When sharing code across multiple projects, it makes sense to put core classes in a shared library. Individual projects would then reopen the core classes to add functionality specific to...
I am chaining the saving of a few resources. When the first resource is saved, it is updated with the ID that I need to save the second resource (via...
If a fetch returns a 410 status, parse the results as for a 200 and set its status to deleted.