This is more of a best-practices question.
I've received a request to create a virtual end-point to support a front-end graph. The request is to summarize data from a single upstream API, loop through all the pages and do some aggregations.
I can see arguments for both doing it in Tyk and requesting it of the API Developers, whom we have a relationship with. On the one hand, the whole reason we're using an API Gateway is just this kind of use-case. On the other hand, this is a little different than aggregating across multiple end-points with a finite number of calls. This request could result in dozens if not hundreds of calls depending on the data set.
However, I'm pretty sure the data will be limited to one user at a time and so the number of pages should be less than 10 for each one, there's just no guarantee. And I really don't want the front-end making the requests themselves. I'd much rather have a consolidated place for it.
Any advice is appreciated.