Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][RestAPI] Support submit job with seatunnel style hocon format config #8000

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions docs/en/seatunnel-engine/rest-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,12 @@ When we can't get the job info, the response will be:

#### Parameters

> | name | type | data type | description |
> |----------------------|----------|-----------|-----------------------------------|
> | name | type | data type | description |
----------------------|----------------------|----------|-----------|-----------------------------------|
> | jobId | optional | string | job id |
> | jobName | optional | string | job name |
> | isStartWithSavePoint | optional | string | if job is started with save point |
> | format | optional | string | config style,json/hocon,default json |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> | format | optional | string | config style,json/hocon,default json |
> | format | optional | string | config format, support json and hocon, default json |


#### Body

Expand Down Expand Up @@ -421,6 +422,36 @@ When we can't get the job info, the response will be:
]
}
```
```hocon
env {
job.mode = "batch"
}

source {
FakeSource {
result_table_name = "fake"
row.num = 100
schema = {
fields {
name = "string"
age = "int"
card = "int"
}
}
}
}

transform {
}

sink {
Console {
source_table_name = "fake"
}
}

```


#### Responses

Expand Down
33 changes: 31 additions & 2 deletions docs/zh/seatunnel-engine/rest-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,12 @@ seatunnel:

#### 参数

> | 参数名称 | 是否必传 | 参数类型 | 参数描述 |
> |----------------------|----------|--------|-----------------------------------|
> | 参数名称 | 是否必传 | 参数类型 | 参数描述 |
> |----------------------|----------|-----------------------------------|-----------------------------------|
> | jobId | optional | string | job id |
> | jobName | optional | string | job name |
> | isStartWithSavePoint | optional | string | if job is started with save point |
> | format | optional | string | 配置风格,json/hocon,default json |

#### 请求体

Expand Down Expand Up @@ -417,7 +418,35 @@ seatunnel:
]
}
```
```hocon
env {
job.mode = "batch"
}

source {
FakeSource {
result_table_name = "fake"
row.num = 100
schema = {
fields {
name = "string"
age = "int"
card = "int"
}
}
}
}

transform {
}

sink {
Console {
source_table_name = "fake"
}
}

```
#### 响应

```json
Expand Down
Loading
Loading