I'm using Ember Data with a Rails API and am wondering how I can map specific actions from Ember to the API.
For example, in looking at the Ember docs for deleteRecord and destroyRecord I see no mention of how these methods are translated to the backend. Is this configured in the RESTAdapter.
I'd like to know which Ember methods are already wired to send specific types of requests for basic CRUD actions (e.g. destroyRecord sends a DELETE request) but also how I could build or overwrite such a method from scratch--for example, say I wanted to create a remove method I could call on a DS.Model and have it map to /api/v1/users#destroy.
Aucun commentaire:
Enregistrer un commentaire