Skip to content

HttpApi

王超 edited this page Dec 13, 2017 · 6 revisions

全量同步接口说明

1.通过表名同步

请求方式:GET
url:http://localhost:8828/sync/byTable
request:

参数 是否必须 类型 含义 例子
database String 数据库名 info
table String 表名 user
stepSize Integer 每次读取数据量,默认500 500
from Long 开始同步的起始主键,默认是数据库中的最小主键 1
to Long 开始同步的结束主键,默认是数据库中的最大主键 100000

example:
http://localhost:8828/sync/byTable?database=info&table=user&stepSize=500

Clone this wiki locally