<#1141 [Feature]: Pagination in a URL path> Issue ...
# meltano-repo-activity
g
#1141 [Feature]: Pagination in a URL path Issue created by robby-rob-slalom ### Feature scope Taps (catalog, state, stream maps, etc.) ### Description For APIs with a URL path pagination (eg.
/endpoint/{page}
), the Meltano SDK does not provide a clear way to pass the next_page_token for use in the URL path in a RESTStream. A possible solution could be to add the next_page_token as an optional parameter to
get_url
, and altering the call to
get_url
in the
prepare_request
method to pass along the next_page_token. This would be consistent with other method calls in
prepare_request
that pass along the next_page_token. Developers then would only have to override the
get_url
method to implement URL path pagination. Another option could be to add the next_page_token to the context, which would pass on to
get_url
. meltano/sdk