utkarsharma2 commented on code in PR #34606:
URL: https://github.com/apache/airflow/pull/34606#discussion_r1338157166


##########
airflow/providers/http/operators/http.py:
##########
@@ -49,6 +50,12 @@ class SimpleHttpOperator(BaseOperator):
     :param data: The data to pass. POST-data in POST/PUT and params
         in the URL for a GET request. (templated)
     :param headers: The HTTP headers to be added to the GET request
+    :param pagination_function: A callable that generate the parameters used
+        to call the API again. Typically used when the API is paginated and
+        returns a cursor, a next page id, or a next page URL. When provided,
+        the Operator will call the API repeatedly until this function returns
+        None. Also, by default, the result of the Operator will be a list of
+        Response.text objects.
     :param response_check: A check against the 'requests' response object.

Review Comment:
   Just a minor thing :)
   The docstring for `response_check` and `response_filter` should reflect the 
fact that the response could be a list of responses when the 
`pagination_function` is passed. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to