forked from kurko/ember-json-api
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi,
first of all thanks for the great work!
We are experiencing inconsistent assignments of id attributes inside linked/associated resource.
Here is an example of an award resource that has an associated ad resource. You can see that the id attribute is sometimes the actual id and other times the permalink. This creates problems on our backend when we do update operations on a resource, since the backend never know by what to query the associated resources (permalink or id).
Examples:
permalink inside id attribute of linked resource
{
"data": {
"id": "4200-rock-deodorant",
"state": "assigned",
"links": {
"ad": {
"linkage": {
"id": "too-much-game",
"type": "ads"
}
}
},
"type": "awards"
}
}
actual ID inside the id attribute of linked ad resource
{
"data": {
"id": "4200-rock-deodorant",
"state": "assigned",
"links": {
"ad": {
"linkage": {
"id": "10656",
"type": "ads"
}
}
},
"type": "awards"
}
}
Metadata
Metadata
Assignees
Labels
No labels