Skip to content

Commit

Permalink
Add links for workflow api (#1974)
Browse files Browse the repository at this point in the history
* add links for workflow api

* update
  • Loading branch information
cooper-lzy authored Jul 18, 2022
1 parent ac876d5 commit 51726a3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Nebula Explorer 提供 API 接口使用工作流的部分功能。

- [新增作业](api-post-jobs.md)
- [获取所有作业列表](api-get-jobs.md)
- 获取指定工作流的作业列表
- 查询指定作业详情
- 取消作业运行
- 获取指定任务的运行结果数据
- [获取指定工作流的作业列表](api-get-workflow-jobs.md)
- [查询指定作业详情](api-desc-job.md)
- [取消作业运行](api-cancel-job.md)
- [获取指定任务的运行结果数据](api-desc-task.md)

## 请求方式

Expand All @@ -35,7 +35,7 @@ curl <options> http://<explorer_address>:<explorer_port>/<api_path>?{<body>}

使用 API 时,需要做 Token 信息校验。请使用如下命令获取 Token 信息。

```http
```bash
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <account_base64_encode>" -d '{"address":"<nebula_address>","port":<nebula_port>}' http://<explorer_address>:<explorer_port>/api-open/v1/connect
```

Expand All @@ -47,7 +47,7 @@ curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <a

示例:

```http
```bash
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer cm9vdDoxMjM=" -d '{"address":"192.168.8.111","port":9669}' http://192.168.8.145:7002/api-open/v1/connect
```

Expand Down

0 comments on commit 51726a3

Please sign in to comment.