Tuesday, 27 August 2013

In Ember.js, how do you make requests to an API that are outside of the REST convention?

In Ember.js, how do you make requests to an API that are outside of the
REST convention?

I would like to request a 'reset password' endpoint e.g GET ->
user/password/reset on an API. What is the best way to map this request in
ember.js? It doesn't seem appropriate to setup a full ember.js model for
this kind of request, as it doesn't have a proper ID and is not really a
request for a record, but a triggered event with a success/fail response.
Am I incorrectly implementing the REST convention or is there another way
to do this?

No comments:

Post a Comment