GET /articles/1 HTTP/1.1
Host: example.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": {
"type": "articles",
"id": "1",
"attributes": {
"title": "Как использовать JSON API",
"content": "JSON API — это мощный инструмент..."
},
"relationships": {
"author": {
"data": {
"type": "users",
"id": "1"
}
}
}
}
}