Using Connector Builder to Sync Nested Pages from Gitbook API

Summary

How to use Connector Builder to sync nested pages from Gitbook API, specifically syncing the markdown of all pages and nested pages.


Question

I am looking for some help on how to use connector builder to have steam named page_content that references a “parent stream” spaces. The spaces parent stream has a structure like this:

      :
   "pages": [
       {
                :
            "pages": [
                    ...
             ]
        }
   ]
}```
This is the Gitbook API I am trying to sync:
<https://developer.gitbook.com/gitbook-api/reference/spaces/content>
See `<https://api.gitbook.com/v1/spaces/{spaceId}/content>`

I want the "page_content" to get called for each `page` of the parent. The pages array nests pages that can have pages array for any number of levels.

I basically want to sync the markdown of all pages and nested pages.

original question here <https://airbytehq.slack.com/archives/C027KKE4BCZ/p1712674001234469>

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C027KKE4BCZ/p1712863160743669) if you want to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["connector-builder", "sync", "nested-pages", "gitbook-api", "markdown", "pages"]
</sub>