Eric Schrock
06/13/2023, 10:45 PMGET /api/foo to get a list of objects, but then GET /api/foo/{id} will return more information about them (such as additional fields or modification history). In a custom HTTP connector I can easily chain slices to have a stream based off another, is there a way to do this in the low-code/no-code world?
Thanks!kapa.ai
06/13/2023, 10:45 PMkapa.ai
06/13/2023, 10:46 PMyaml paginator: type: "DefaultPaginator" <...> pagination_strategy: type: "CursorPagination" cursor_value: "{{ headers['urls']['next'] }}" page_token_option: type: "RequestPath" This configuration will send the next request using the URL extracted from the response headers. You can find more information about this in the [Pagination Strategies documentation](https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/pagination). 2. In the low-code framework, you can use partition routing to achieve this behavior. You can use the [SubstreamPartitionRouter](https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/partition-router#SubstreamPartitionRouter) to create a sub-collection based on the parent-resource ID. This allows you to fetch additional information about the objects by making additional API calls. You can find more information about partition routing in the [Partition Router documentation](https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/partition-router). I hope this helps! If you need more guidance, you can refer to the [Low-code connector development tutorial](https://docs.airbyte.com/connector-development/config-based/tutorial/getting-started) for a step-by-step process.Eric Schrock
06/13/2023, 10:49 PMEric Schrock
06/13/2023, 10:50 PMEric Schrock
06/13/2023, 10:56 PM{
"status": 200,
"body": {
"count": 2047,
"next": "<https://foo.com/api/public/thing/?page=2>",
"previous": null,
"results": [
{
...
However, when I attempt to configure this in the no-code builder with next page cursor of 'next' and inject cursor value into 'path', I get this error:
Request to <https://foo.com/thing/?page=2> failed with status code 404
Notice that it's missing the /api/public part of the path. I have no idea where it could be getting this abbreviated URL, since it's definitely not in the next token I see in the response. What am I missing?Alexandre Girard (Airbyte)
06/13/2023, 11:17 PM/api/public part of the URL from the base_url to the stream's pathEric Schrock
06/14/2023, 12:16 AMEric Schrock
06/14/2023, 12:54 AM