I'm a bit unsure how to use Request vs. Response p...
# troubleshooting
c
I'm a bit unsure how to use Request vs. Response pagination styles in this REST API tap https://github.com/Widen/tap-rest-api-msdk. If the API returns the path for the next page in the
next
field on the response, I've set the
pagination_request_style
:
default
and
next_page_token_path
to
$.next
. However, not sure what Response pagination style to use, because the default one is appending to URL path another
page
param with the
next
value in the response at every iteration, ending up with really long URL paths. The desired behaviour is: replace URL path with what's in
next
field of the response 🤔
I find the relationship between request style and response style a bit confusing, if someone could shade some light please 🙏 each of them individually make sense but not sure how they're supposed to work together
s
Have you tried the hateoas for the response style. This sounds like the correct version to try. Have you read the README.md, it can be useful to uncomment the debug info in the stream.py program if you wish to see the request details it can be very useful.