Use page_token_option instead of page_token (#17892)
This commit is contained in:
@@ -103,7 +103,7 @@ paginator:
|
||||
pagination_strategy:
|
||||
type: "PageIncrement"
|
||||
page_size: 5
|
||||
page_token:
|
||||
page_token_option:
|
||||
inject_into: "request_parameter"
|
||||
field_name: "page"
|
||||
```
|
||||
@@ -147,7 +147,7 @@ paginator:
|
||||
pagination_strategy:
|
||||
type: "OffsetIncrement"
|
||||
page_size: 5
|
||||
page_token:
|
||||
page_token_option:
|
||||
field_name: "offset"
|
||||
inject_into: "request_parameter"
|
||||
```
|
||||
@@ -196,7 +196,7 @@ paginator:
|
||||
pagination_strategy:
|
||||
type: "CursorPagination"
|
||||
cursor_value: "{{ last_records[-1]['id'] }}"
|
||||
page_token:
|
||||
page_token_option:
|
||||
field_name: "from"
|
||||
inject_into: "request_parameter"
|
||||
```
|
||||
@@ -217,11 +217,11 @@ paginator:
|
||||
pagination_strategy:
|
||||
type: "CursorPagination"
|
||||
cursor_value: "{{ headers['urls']['next'] }}"
|
||||
page_token:
|
||||
page_token_option:
|
||||
inject_into: "path"
|
||||
```
|
||||
|
||||
Assuming the endpoint to fetch data from is `https://cloud.airbyte.com/api/get_data`,
|
||||
the first request will be sent as `https://cloud.airbyte.com/api/get_data`
|
||||
Assuming the response's next url is `https://cloud.airbyte.com/api/get_data?page=1&page_size=100`,
|
||||
the next request will be sent as `https://cloud.airbyte.com/api/get_data?page=1&page_size=100`
|
||||
the next request will be sent as `https://cloud.airbyte.com/api/get_data?page=1&page_size=100`
|
||||
|
||||
Reference in New Issue
Block a user