I want to make requests to an api that returns a response like so: 
{
 totalRecords: 30,000,
 data: [{...}],
 links: {
   selfLink: 'http://example-api.com/data?api_key&page=0&size=10',
   nextLink: 'http://example-api.com/data?api_key&page=1&size=10',
 }
}
I want to get NextLink and get page=2 until there are no pages left. How do i achieve this using javascript/node?  
                       
                    
0 Answer(s)