I searched the web for some ideas or solutions, on how to call custom actions on my server, but unfortunately I doesn’t find anything.
For everyone, who doesn’t know, what I mean, here some examples:
After searching, I started to think about the problem and the solution could be something like:
model.action('upvote') model.action('rating', ratingData)
The model could then call store and adapter as it does on save. Also it should return a promise similar to save. I think it would also be nice to update the model with the response data from the server, if there is any. My opinion is, that it should be implemented as separate library at the moment.
A first problem I discovered, is that some methods needed for that, are not public.
I would like to hear your opinions and hints about it. Maybe someone has interest to contribute on starting a project to create an extension for ember-data.
EDIT: fixed a mistake in my examples.