-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: revise websocket connection endpoint (#2420)
Signed-off-by: yisaer <[email protected]>
- Loading branch information
Showing
11 changed files
with
157 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Manage websocket connection | ||
|
||
Manage websocket endpoint connection in eKuiper through REST API | ||
|
||
## create websocket endpoint | ||
|
||
```shell | ||
POST http://localhost:9081/connection/websocket | ||
``` | ||
|
||
example: | ||
|
||
```json | ||
{ | ||
"endpoint": "/xxxx" | ||
} | ||
``` | ||
|
||
## delete websocket endpoint | ||
|
||
```shell | ||
DELETE http://localhost:9081/connection/websocket | ||
``` | ||
|
||
example: | ||
|
||
```json | ||
{ | ||
"endpoint": "/xxxx" | ||
} | ||
``` | ||
|
||
## query websocket endpoint | ||
|
||
```shell | ||
GET http://localhost:9081/connection/websocket | ||
``` | ||
|
||
example: | ||
|
||
```json | ||
{ | ||
"endpoint": "/xxxx" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# websocket 连接管理 | ||
|
||
通过 API 管理 eKuiper websocket 的连接 | ||
|
||
## 创建 websocket endpoint | ||
|
||
```shell | ||
POST http://localhost:9081/connection/websocket | ||
``` | ||
|
||
请求示例: | ||
|
||
```json | ||
{ | ||
"endpoint": "/xxxx" | ||
} | ||
``` | ||
|
||
## 删除 websocket endpoint | ||
|
||
```shell | ||
DELETE http://localhost:9081/connection/websocket | ||
``` | ||
|
||
请求示例: | ||
|
||
```json | ||
{ | ||
"endpoint": "/xxxx" | ||
} | ||
``` | ||
|
||
## 查看 websocket endpoint | ||
|
||
```shell | ||
GET http://localhost:9081/connection/websocket | ||
``` | ||
|
||
请求示例: | ||
|
||
```json | ||
{ | ||
"endpoint": "/xxxx" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters