-
Notifications
You must be signed in to change notification settings - Fork 890
Closed
Description
Are relations with arguments supported? The spec doesn't say anything about it and it feels a bit like cheating, but would something like this be valid:
{
"repositories": [{
"id": 1,
"name": "json-api",
"links": {
"branch": "https://api.travis-ci.org/repos/1/branches/{branches.name}",
"branches": "https://api.travis-ci.org/repos/1/branches"
}
}]
}
Or this:
{
"links": {
"repositories.branch": "https://api.travis-ci.org/repos/{repositories.id}/branches/{branches.name}",
"repositories.branches": "https://api.travis-ci.org/repos/{repositories.id}/branches"
},
"repositories": [{
"id": 1,
"name": "json-api",
}]
}
Are both of these valid JSON API replies with general purpose clients being able to resolve both the branches and the branch link? Is the plural/singular usage correct here?
Metadata
Metadata
Assignees
Labels
No labels