Summary
The user is facing issues with incorporating page numbers in the stream’s URL path for pagination in a REST API. They are struggling to determine the template parameter for the page number and encountering a problem where the page number overwrites the entire stream’s URL path.
Question
Heya, I have been trying to use Pagination to get a bunch of data from a REST API, where the page number should be part of the Path and running into two problems:
- I can’t seem to figure out what should be the template parameter to include that page number in the stream’s URL path
- It seems like whenever that page number is inserted, the stream’s URL path is completely overwritten. (maybe it’s connected to the 1st point)
As an exact example, I have a URL in the form of base URL<https://www.yr.no/api/v0/>
and the stream URL Path (for testing)locations/1-305409/observations/year/
which should add up to<https://www.yr.no/api/v0/locations/1-305409/observations/year/>
for the query, and then with the pagintion appending the year to the end.
If I just use these settings, the whole URL path gets replaced by the “page”, e.g. <https://www.yr.no/api/v0/1950>
which is not what I would want to get to but <https://www.yr.no/api/v0/locations/1-305409/observations/year/1950>
.
Any thoughts?
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.