Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent id assignment of linked resources #7

Open
soeffing opened this issue Apr 26, 2015 · 0 comments
Open

Inconsistent id assignment of linked resources #7

soeffing opened this issue Apr 26, 2015 · 0 comments

Comments

@soeffing
Copy link

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"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant