This is an automated email from the ASF dual-hosted git repository.
zhongjiajie pushed a commit to branch 3.0.5-release
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/3.0.5-release by this push:
new 565bc978ea doc: Add hyperlink for pydolphinscheduler
565bc978ea is described below
commit 565bc978eac5a72a073848b440d75b6367b4ad0e
Author: Jay Chung <[email protected]>
AuthorDate: Tue Apr 11 12:04:32 2023 +0800
doc: Add hyperlink for pydolphinscheduler
---
docs/configs/docsdev.js | 8 +++----
docs/docs/en/guide/{ => api}/healthcheck.md | 0
docs/docs/en/guide/{ => api}/open-api.md | 18 ++++++++--------
docs/docs/en/guide/api/pydolphinscheduler.md | 5 +++++
docs/docs/zh/guide/{ => api}/healthcheck.md | 0
docs/docs/zh/guide/{ => api}/open-api.md | 32 ++++++++++++++--------------
docs/docs/zh/guide/api/pydolphinscheduler.md | 6 ++++++
7 files changed, 40 insertions(+), 29 deletions(-)
diff --git a/docs/configs/docsdev.js b/docs/configs/docsdev.js
index 32f61ff1a3..d9ff5545b5 100644
--- a/docs/configs/docsdev.js
+++ b/docs/configs/docsdev.js
@@ -385,15 +385,15 @@ export default {
children: [
{
title: 'Open API',
- link: '/en-us/docs/3.0.4/user_doc/guide/open-api.html',
+ link:
'/en-us/docs/3.0.4/user_doc/guide/api/open-api.html',
},
{
title: 'PyDolphinScheduler',
- link: '/python/main/',
+ link:
'/en-us/docs/3.0.4/user_doc/guide/api/pydolphinscheduler.html',
},
{
title: 'Health Check',
- link:
'/en-us/docs/3.0.4/user_doc/guide/healthcheck.html',
+ link:
'/en-us/docs/3.0.4/user_doc/guide/api/healthcheck.html',
},
],
},
@@ -931,7 +931,7 @@ export default {
},
{
title: 'PyDolphinScheduler',
- link: '/python/main/',
+ link:
'/zh-cn/docs/3.0.4/user_doc/guide/pydolphinscheduler.html',
},
{
title: '健康检查',
diff --git a/docs/docs/en/guide/healthcheck.md
b/docs/docs/en/guide/api/healthcheck.md
similarity index 100%
rename from docs/docs/en/guide/healthcheck.md
rename to docs/docs/en/guide/api/healthcheck.md
diff --git a/docs/docs/en/guide/open-api.md b/docs/docs/en/guide/api/open-api.md
similarity index 73%
rename from docs/docs/en/guide/open-api.md
rename to docs/docs/en/guide/api/open-api.md
index 606d670bdf..edf397a0b6 100644
--- a/docs/docs/en/guide/open-api.md
+++ b/docs/docs/en/guide/api/open-api.md
@@ -10,11 +10,11 @@ Generally, projects and processes are created through
pages, but considering the
1. Log in to the scheduling system, click "Security", then click "Token
manage" on the left, and click "Create token" to create a token.
-
+
2. Select the "Expiration time" (Token validity time), select "User" (choose
the specified user to perform the API operation), click "Generate token", copy
the `Token` string, and click "Submit".
-
+
### Examples
@@ -24,7 +24,7 @@ Generally, projects and processes are created through pages,
but considering the
> Address:http://{API server
> ip}:12345/dolphinscheduler/doc.html?language=en_US&lang=en
-
+
2. select a test API, the API selected for this test is `queryAllProjectList`
@@ -36,7 +36,7 @@ Generally, projects and processes are created through pages,
but considering the
token: The Token just generated
```
-
+
#### Create a Project
@@ -44,15 +44,15 @@ This demonstrates how to use the calling api to create the
corresponding project
By consulting the api documentation, configure the KEY as Accept and VALUE as
the parameter of application/json in the headers of Postman.
-
+
And then configure the required projectName and description parameters in Body.
-
+
Check the post request result.
-
+
The returned `msg` information is "success", indicating that we have
successfully created the project through API.
@@ -60,9 +60,9 @@ If you are interested in the source code of creating a
project, please continue
### Appendix: The Source Code of Creating a Project
-
+
-
+
diff --git a/docs/docs/en/guide/api/pydolphinscheduler.md
b/docs/docs/en/guide/api/pydolphinscheduler.md
new file mode 100644
index 0000000000..219ba6e2ab
--- /dev/null
+++ b/docs/docs/en/guide/api/pydolphinscheduler.md
@@ -0,0 +1,5 @@
+# PyDolphinScheduler
+
+PyDolphinScheduler is python API for Apache DolphinScheduler, which allow you
definition your workflow by python code, aka workflow-as-codes.
+
+For more information, please refer to
[PyDolphinScheduler](https://dolphinscheduler.apache.org/python/main/)
\ No newline at end of file
diff --git a/docs/docs/zh/guide/healthcheck.md
b/docs/docs/zh/guide/api/healthcheck.md
similarity index 100%
rename from docs/docs/zh/guide/healthcheck.md
rename to docs/docs/zh/guide/api/healthcheck.md
diff --git a/docs/docs/zh/guide/open-api.md b/docs/docs/zh/guide/api/open-api.md
similarity index 66%
rename from docs/docs/zh/guide/open-api.md
rename to docs/docs/zh/guide/api/open-api.md
index 66217c29bc..c91095b18b 100644
--- a/docs/docs/zh/guide/open-api.md
+++ b/docs/docs/zh/guide/api/open-api.md
@@ -10,11 +10,11 @@
1. 登录调度系统,点击 "安全中心",再点击左侧的 "令牌管理",点击 "令牌管理" 创建令牌。
-
-
+
+
2. 选择 "失效时间" (Token 有效期),选择 "用户" (以指定的用户执行接口操作),点击 "生成令牌" ,拷贝 Token 字符串,然后点击
"提交" 。
-
+
### 使用案例
@@ -24,35 +24,35 @@
> 地址:http://{api server
> ip}:12345/dolphinscheduler/doc.html?language=zh_CN&lang=cn
-
-
+
+
2. 选一个测试的接口,本次测试选取的接口是:查询所有项目
> projects/list
3. 打开 Postman,填写接口地址,并在 Headers 中填写 Token,发送请求后即可查看结果
- ```
- token: 刚刚生成的 Token
- ```
-
-
-
+ ```
+ token: 刚刚生成的 Token
+ ```
+
+
+
#### 创建项目
这里演示如何使用调用 api 来创建对应的项目。
通过查阅 api 文档,在 Postman 的 Headers 中配置 KEY 为 Accept,VALUE 为 application/json 的参数。
-
+
然后再 Body 中配置所需的 projectName 和 description 参数。
-
+
检查 post 请求结果。
-
+
返回 msg 信息为 "success",说明我们已经成功通过 API 的方式创建了项目。
@@ -60,8 +60,8 @@
### 附:创建项目源码
-
+
-
+
diff --git a/docs/docs/zh/guide/api/pydolphinscheduler.md
b/docs/docs/zh/guide/api/pydolphinscheduler.md
new file mode 100644
index 0000000000..0fab37fe2c
--- /dev/null
+++ b/docs/docs/zh/guide/api/pydolphinscheduler.md
@@ -0,0 +1,6 @@
+# PyDolphinScheduler
+
+PyDolphinScheduler 是 Apache DolphinScheduler 的 Python API,它允许您通过 Python
代码定义您的工作流,也称为 workflow-as-codes。
+
+更多信息请参考[PyDolphinScheduler](https://dolphinscheduler.apache.org/python/main/)
+