1
0
mirror of synced 2025-12-25 02:09:19 -05:00

Use page_token_option instead of page_token (#17892)

This commit is contained in:
Delena Malan
2022-10-14 00:00:20 +02:00
committed by GitHub
parent ce061d239e
commit 289a065401

View File

@@ -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`