Skip to content

Commit

Permalink
docs: add httppull docs (#2321)
Browse files Browse the repository at this point in the history
Signed-off-by: Song Gao <disxiaofei@163.com>
Signed-off-by: yisaer <disxiaofei@163.com>
  • Loading branch information
Yisaer authored Oct 17, 2023
1 parent 61a5205 commit 334ac18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/en_US/guide/sources/builtin/http_pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,11 @@ If you favor a more hands-on approach, the Command Line Interface (CLI) offers d
```

For a step-by-step guide, check [Streams Management with CLI](../../../api/cli/streams.md).

## Lookup Table

httppull also supports being a lookup table. We can use the create table statement to create an httppull lookup table. It will be tied to the entity relational database and queried on demand:

```text
CREATE TABLE httppullTable() WITH (DATASOURCE="/url", CONF_KEY="default", TYPE="httppull", KIND="lookup")
```
8 changes: 8 additions & 0 deletions docs/zh_CN/guide/sources/builtin/http_pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,11 @@ REST API 为 eKuiper 提供了一种可编程的交互方式,适用于自动
```

详细操作步骤及命令解释,可参考 [通过 CLI 进行流管理](../../../api/cli/streams.md)。

## 查询表

httppull 同时也支持成为一个查询表。我们可以使用创建表语句来创建一个 httppull 查询表。它将与实体关系数据库绑定并按需查询:

```text
CREATE TABLE httppullTable() WITH (DATASOURCE="/url", CONF_KEY="default", TYPE="httppull", KIND="lookup")
```

0 comments on commit 334ac18

Please sign in to comment.