I am trying to hook up Ember Data to work with an existing REST API. The problem that I am running into is that the REST implementation does not conform to how Ember Data expects things to be done. I have scoured the web for documentation that would suggest how to make things work, but short of writing my own DS.Adapter implementation I am at a loss.
Here is what my request looks like:
/api/user/12345
which provides the following response:
{
data: {
ID: '12345',
firstName: 'Fred',
lastName: 'Flintstone',
emailAddr: '[email protected]'
}
}
Ember expects "data" to be "user". Unfortunately I cannot easily change the API. Any suggestions?
Thanks