Skip to content

Commit f813aee

Browse files
committed
docs: update kcl server 0.7.0 documents
Signed-off-by: peefy <[email protected]>
1 parent 5604516 commit f813aee

File tree

4 files changed

+6
-38
lines changed

4 files changed

+6
-38
lines changed

docs/reference/xlang-api/rest-api.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@ sidebar_position: 2
55

66
## 1. Start REST Service
77

8-
The RestAPI service can be started in the following ways:
8+
The RestAPI service can be started in the following way:
99

1010
```shell
11-
python3 -m pip install kclvm -U
12-
python3 -m gunicorn "kclvm.program.rpc-server.__main__:create_app()" -t 120 -w 4 -k uvicorn.workers.UvicornWorker -b :2021
13-
```
14-
15-
or
16-
17-
```shell
18-
go install kcl-lang.io/kcl-go/cmds/kcl-go@main
19-
kcl-go rest-server
11+
kcl server
2012
```
2113

2214
The service can then be requested via the POST protocol:

i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/xlang-api/rest-api.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ sidebar_position: 2
88
通过以下方式可以启动 RestAPI 服务:
99

1010
```shell
11-
python3 -m pip install kclvm -U
12-
python3 -m gunicorn "kclvm.program.rpc-server.__main__:create_app()" -t 120 -w 4 -k uvicorn.workers.UvicornWorker -b :2021
13-
```
14-
15-
或者
16-
17-
```shell
18-
go install kcl-lang.io/kcl-go/cmds/kcl-go@main
19-
kcl-go rest-server
11+
kcl server
2012
```
2113

2214
然后可以通过 POST 协议请求服务:

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.7.0/reference/xlang-api/rest-api.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ sidebar_position: 2
88
通过以下方式可以启动 RestAPI 服务:
99

1010
```shell
11-
python3 -m pip install kclvm -U
12-
python3 -m gunicorn "kclvm.program.rpc-server.__main__:create_app()" -t 120 -w 4 -k uvicorn.workers.UvicornWorker -b :2021
13-
```
14-
15-
或者
16-
17-
```shell
18-
go install kcl-lang.io/kcl-go/cmds/kcl-go@main
19-
kcl-go rest-server
11+
kcl server
2012
```
2113

2214
然后可以通过 POST 协议请求服务:

versioned_docs/version-0.7.0/reference/xlang-api/rest-api.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@ sidebar_position: 2
55

66
## 1. Start REST Service
77

8-
The RestAPI service can be started in the following ways:
8+
The RestAPI service can be started in the following way:
99

1010
```shell
11-
python3 -m pip install kclvm -U
12-
python3 -m gunicorn "kclvm.program.rpc-server.__main__:create_app()" -t 120 -w 4 -k uvicorn.workers.UvicornWorker -b :2021
13-
```
14-
15-
or
16-
17-
```shell
18-
go install kcl-lang.io/kcl-go/cmds/kcl-go@main
19-
kcl-go rest-server
11+
kcl server
2012
```
2113

2214
The service can then be requested via the POST protocol:

0 commit comments

Comments
 (0)