vendredi 24 août 2018

ember member actions normalizing response

I am using ember member API actions and was wondering how can response be normalized in such cases.

I have a model "users" with member action "postAddress". It is a post request which returns me a response. Now the problem I am facing is data is not normalized as returned data does not map to any store model. I know when we do a findAll and give a model, then ember automatically normalizes the data returned from API call. But in case of member actions, can anyone suggest how can data be normalized? (snake case to camel case).




Aucun commentaire:

Enregistrer un commentaire