Can a json response can be partially paginate?


#1

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.


#2

I get my answer. http://stackoverflow.com/questions/31164535/can-a-json-response-can-be-partially-paginate/31212726#31212726