I have a REST datasource that uses pagination with URL paramater page. Fairly simple.
The next page (if there is one) is returned not as a header but as an element in the json result:
![](https://uploads-eu-west-1.insided.com/timextender-en/attachment/4f93adaa-2123-41b1-81a9-d23abaf4a73a.png)
So, to enable paging I have to set up something like this:
![](https://uploads-eu-west-1.insided.com/timextender-en/attachment/3f8d6ed3-b3ef-49bd-af61-3cee3dcfdf8d.png)
And:
![](https://uploads-eu-west-1.insided.com/timextender-en/attachment/a6e8a95d-91f9-4e8b-a921-25b1437bf457.png)
I have two questions on this: I get an error on the XPath Value saying ‘Expression must evaluate to a node-set.’ . How do I determine the correct XPath to the json element? And my second question is how do I make sure the complete URL is replaced instead of only the /api/… part?
Best answer by wouter.goslinga
View original