Where do I put my custom REST methods?

In Ember data where is the appropriate place to do custom $.ajax logic? In some cases, my server-side generates and persists data in the database and passes it back, and afterwards, I think it’s logical to push that data into my DS.Store. I would like to know what are the most DRY approaches? Do I do that on my models with reopenClass or I may have to extend DS.RestAdapter?

I know RESTful applications should mostly rely on coarse-grained standard CRUD methods, but sometimes I just need some works to be done one my server-side. I think its not that anti-pattern, right?

1 Like