Skip to content

✨ Adds paginated method #2

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

Merged
merged 4 commits into from
Jan 22, 2024
Merged

✨ Adds paginated method #2

merged 4 commits into from
Jan 22, 2024

Conversation

miguelfferraz
Copy link
Owner

This pull request adds a new method called paginated to the WCRequest class. This method allows for fetching all data from a paginated API endpoint by automatically handling pagination. It takes optional query parameters and headers as arguments and returns a list of all the data retrieved from the API.

Testing:

  • Includes tests for the make_request_paginated.

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (af8373a) 100.00% compared to head (922af65) 100.00%.

❗ Current head 922af65 differs from pull request most recent head 69f61df. Consider uploading reports for the commit 69f61df to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          101       140   +39     
=========================================
+ Hits           101       140   +39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@miguelfferraz miguelfferraz merged commit fac5dc0 into main Jan 22, 2024
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.

1 participant