{
  "job": {
    "content": [
      {
        "reader": {
          "name": "restfulreader",
          "parameter": {
            "url": "https://your-woocommerce-site.com/wp-json/wc/v3/products",
            "method": "GET",
            "headers": {
              "Accept": "application/json"
            },
            "requestParams": {
              "consumer_key": "your_consumer_key",
              "consumer_secret": "your_consumer_secret",
              "per_page": 100
            },
            "pagination": {
              "type": "page",
              "pageSize": 100,
              "pageNum": 1,
              "totalCount": 0,
              "dynamicTotalCount": true,
              "totalCountPath": "$['X-WP-Total']",
              "pageUrlTemplate": "${url}?page=${pageNum}&per_page=${pageSize}&consumer_key=${requestParams.consumer_key}&consumer_secret=${requestParams.consumer_secret}"
            },
            "dataPath": "$.*",
            "column": [
              {
                "name": "id",
                "type": "long"
              },
              {
                "name": "name",
                "type": "string"
              },
              {
                "name": "sku",
                "type": "string"
              },
              {
                "name": "price",
                "type": "string"
              },
              {
                "name": "stock_quantity",
                "type": "long"
              },
              {
                "name": "created_at",
                "type": "string"
              }
            ]
          }
        },
        "writer": {
          "name": "mysqlwriter",
          "parameter": {
            "writeMode": "replace",
            "username": "root",
            "password": "123345678",
            "column": [
              "id",
              "name",
              "sku",
              "price",
              "stock_quantity",
              "created_at"
            ],
            "connection": [
              {
                "jdbcUrl": "jdbc:mysql://host.docker.internal:23306/inventory_v2?useUnicode=true&characterEncoding=utf-8",
                "table": [
                  "products"
                ]
              }
            ]
          }
        }
      }
    ],
    "setting": {
      "speed": {
        "channel": 1
      }
    }
  }
}