diff --git a/docs/website/docs/general-usage/http/rest-client.md b/docs/website/docs/general-usage/http/rest-client.md index d3f4f379f1..fea8c189de 100644 --- a/docs/website/docs/general-usage/http/rest-client.md +++ b/docs/website/docs/general-usage/http/rest-client.md @@ -384,6 +384,16 @@ class PostBodyPaginator(BasePaginator): # Add the cursor to the request body request.json["cursor"] = self.cursor + +client = RESTClient( + base_url="https://api.example.com", + paginator= PostBodyPaginator() +) + +@dlt.resource +def get_data(): + for page in client.paginate("/data"): + yield page ``` ## Authentication