GET /articles/1/relationships/author HTTP/1.1
Accept: application/vnd.api+json
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"links": {
"self": "/articles/1/relationships/tags",
"related": "/articles/1/tags"
},
"data": [
{ "type": "tags", "id": "2" },
{ "type": "tags", "id": "3" }
]
}
Responses
200 OK
404 Not Found
A server MUST return 404 Not Found when processing a request to fetch a relationship link URL that does not exist. Note: This can happen when the parent resource of the relationship does not exist. For example, when /articles/1 does not exist, request to
/articles/1/relationships/tags returns404 Not Found.If a relationship link URL exists but the relationship is empty, then 200 OK MUST be returned, as described above.
A server MAY respond with other HTTP status codes.
A server MAY include error details with error responses.