Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest API: Ends pagination if next page path is not in response.json() #361

Merged

Conversation

willi-mueller
Copy link
Collaborator

@willi-mueller willi-mueller commented Feb 19, 2024

Tell us what you do here

  • fixing a bug (please link a relevant bug report)

References #313

More PR info

The Workable API does not include the json path to the next page for the last page of the response. Thus, this PR catches such cases.

Copy link
Collaborator

@burnash burnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good catch. I was also wondering if this should be part of a accessor itself. But haven't made up my mind

@burnash burnash merged commit 09a7a1f into dlt-hub:enh/api_helper Feb 19, 2024
burnash added a commit that referenced this pull request Mar 22, 2024
* REST API: support all authentication methods (#354)
* Generic API client: include parent fields in child resource (#355)
* Rest API: Ends pagination if next page path is not in response.json() (#361)
* Allow specification of SinglePagePaginator and refactors redundancy (#364)
* [REST Source] renames default_paginator argument to paginator (#367)
* [REST Source] completes renaming of default_paginator to paginator (#370)
* [REST source] test case for dependent resource (#371)
* [REST API source] adds function to check connection (#357)
* [REST Source] allow skipping http errors (#365)
* added the possibility to pass HTTPBasicAuth objects (#377)
* [REST] Detailed error handler logging (#383)
* [REST source] header_links can extract from responses without a records_path (#382)
* [REST source] fixes deprecation warning (#380)
* [REST CLIENT] alt response extractor (#396)
* Makes openapi friendly auth (#397)
* [REST CLIENT] yields data pages with requests context (#399)

---------

Co-authored-by: Anton Burnashev <[email protected]>
Co-authored-by: Willi Müller <[email protected]>
Co-authored-by: mucio <[email protected]>
Co-authored-by: rudolfix <[email protected]>
Co-authored-by: Steinthor Palsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants