I am working on a tap with a rest endpoint that ha...
# singer-tap-development
r
I am working on a tap with a rest endpoint that has an
/endpoint/{page}
pattern, and I’m trying to find a good way to get the next_page_token to the URL. The get_url method does not get the next_page token parameter passed to it, but I currently have it working by modifying the prepare_request method to add
{'page': next_page_token}
to the context before going to the get_url method. Is there a better option to get the token to the URL?
e
Hi @robby_robinson! I’m afraid there isn’t a better way at the moment. Feel free to open an issue describing how you imagine support for pagination in
RESTStream.get_url
might look like 🙂 https://github.com/meltano/sdk/issues/new/choose