Hello
I was wondering if a part of json response can be paginate ?
{
"data": [{
"type": "party",
"id": "1",
"attributes": {
"title": "JSON API paints my bikeshed!",
"body": "The greatest party. Ever."
}
}],
"included": [
{
"type": "people",
"id": 42,
"attributes": {
"name": "John"
}
},
{
...annnd 80000 others who need pagination ?
}
}
]
}
I don’t think so… So giving a link to the new ressource can be the answer ?
{
"data": [{
"type": "party",
"id": "1",
"attributes": {
"title": "JSON API paints my bikeshed!",
"body": "The greatest party. Ever."
},
"relationships": {
"users": {
"link": "/party/1/users"
}
}
}]
}
Thanks in advance.