You can translate the question and the replies:

Pagination issue which retrieving data from API

We are connecting to API via a GATEWAY where our request is passed though based on the URI. **Example** 1) We have a API https://abc.com/api/v1.1/ 2) We need to call the API via a gateway, So Denodo will call http://gateway.com/abc/api/v1.1/query/pagesize=10&pageoffset=10 and when when it reaches the gateway it will replace http://gateway.com/abc/ with https://abc.com and we get the ponse of first page We are getting the nextpage from initial responce body. Using **Obtain the “Next Page URL” from the Body of the Response** option we are fetching the next page for example so we are When it tries to call for the next page it is treeting the base URL as http://gateway.com leaving the URL(/abc) which is why gateway is unable to recognize the request and failing which is why we are unable to fet the complete set. Can any one help on how we can explecitly pass the base url as a string which calling the next page ? or please let me know if there are any other options Thanks in advance
user
31-08-2021 08:52:21 -0400

1 Answer

Hi, The Next Page URL in Virtual DataPort points to the response of that first request using the path specified in the Next Page URL section. Then, in the subsequent request it will fetch the details depending on the base URL. You will not be able to replace/pass a new base URL in Denodo. One solution would be to change the base to an appropriate URL if you have a lot of URLs different from the current base URL. Hope this helps!
Denodo Team
02-09-2021 13:44:50 -0400
You must sign in to add an answer. If you do not have an account, you can register here