I have a working module pulling a JSON feed into Drupal 8 using the Migrate API. However, the feed is paginated, and I am only getting the first page of results.
For example:
{
"meta": {
"count": 58964,
"next": "http://api.example.com/endpoint/?page=2",
"previous": null
},
"data": [
{
"id": "id:1",
...
},
{
"id": "id:2",
...
},
...
I need to go through all pages import them all, but I can't see how to tell Migrate to iterate through the pages.
One option is to use a two-step process: first download all the data to a local file and then import that into Drupal. It would be nicer if Drupal 8 Migrate API could fetch and import all the pages itself.