AnsweredAssumed Answered

Rest API pagination weirdness

Question asked by td31580 on Apr 20, 2017
Latest reply on May 3, 2017 by Peter Love

Hi All!

 

I am building a tool that uses the Rest API to read the course details. I am able to register and get an auth token well enough, but whenever I query the course list, it includes a nextPage key. When I follow the nextPage link, I am served the same course that was available on the first page, and yet another nextPage link. This will continue for over a dozen requests before it returns without the next page. Currently I am working around this by just keeping track of all of the courses, then just returning the unique courses, but obviously I am not fond of this solution due to the large number of requests.


Is there any reason why the courses rest api would be including nextPage links, even though there are no more courses are available?

Outcomes