-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I've been tinkering around with the ember data 1.13.8, the ember-data-hal-9000 and ember-data.model-fragments plugins, and I was a bit surprised to see the following data in a PATCH when I saved my model:
{
"data":{
"_id":"55b21c520fabf0ba57bf0631",
"attributes":{
"email":"user@site.com",
"user_type": "power",
"profile":{
"data":{
"attributes":{
"nickname":"SuperJoe",
"bio":null,
},
"type":"profiles"
}
},
"_updated":"Fri, 24 Jul 2015 11:06:58 GMT",
"_created":"Fri, 24 Jul 2015 11:06:58 GMT",
"_etag":"f6687527bd6a10205d7c1462109e6193b58c8ae9"
},
"type":"accounts"
}
}
I didn't expect the addition of the attributes, data, and type keys... Is there a way to turn these off and send the data back in the same format it was received? e.g:
{
"_id":"55b21c520fabf0ba57bf0631",
"email":"user@site.com",
"user_type": "power",
"profile":{
"nickname":"SuperJoe",
"bio":null,
},
"_updated":"Fri, 24 Jul 2015 11:06:58 GMT",
"_created":"Fri, 24 Jul 2015 11:06:58 GMT",
"_etag":"f6687527bd6a10205d7c1462109e6193b58c8ae9"
}
Metadata
Metadata
Assignees
Labels
No labels