Hi,
in the docs there is an example for the JSON representation of a resource with a relationship.
{
"type": "articles",
"id": "1",
"attributes": {
"title": "Rails is Omakase"
},
"relationships": {
"author": {
"links": {
"self": "http://example.com/articles/1/relationships/author",
"related": "http://example.com/articles/1/author"
},
"data": { "type": "people", "id": "9" }
}
},
"links": {
"self": "http://example.com/articles/1"
}
}
I am wondering what the reasoning is behind linking to two sources in the “links” section. What do you expect to get when you either fetch http://example.com/articles/1/relationships/author
or http://example.com/articles/1/author
?