Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new feat #503

Merged
merged 5 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .config/kubespider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ auth_token:
telegram_bot_token:
# limit only this username send message to bot will be handled
telegram_username:
# session expired time, default 3600 seconds
permanent_session_lifetime: 3600
100 changes: 100 additions & 0 deletions docs/zh/api/v2/binding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# binding

## 简介

plugin提供了资源解析的动作,但动作的调用需要一些必要的配置信息,binding提供配置信息,并绑定到plugin使用

## api

### 查询binding配置 /api/v2/binding [GET]

```json
{
"code": 200,
"data": [
{
"arguments": {
"cookie": "",
"host": "https://kp.xxx.cc",
"parser": {},
"scheduler": {
"base_info": true,
"mail_read": true
},
"search": {
"mode": "normal"
},
"use_proxy": false
},
"id": 1,
"name": "mt",
"plugin_name": "M-Team",
"type": "scheduler"
}
],
"msg": "Ok"
}
```

### 创建/更新binding配置 /api/v2/binding [POST]

创建

```json
{
"cookie": "",
"host": "https://kp.xx.cc",
"use_proxy": false,
"parser": {},
"scheduler": {
"base_info": true,
"mail_read": true
},
"search": {
"mode": "normal"
},
"name": "mt",
"type": "scheduler",
"plugin_name": "M-Team"
}
```

更新

```json
{
"cookie": "",
"host": "https://kp.xx.cc",
"use_proxy": false,
"parser": {},
"scheduler": {
"base_info": true,
"mail_read": true
},
"search": {
"mode": "normal"
},
"name": "mt",
"type": "scheduler",
"plugin_name": "M-Team",
"id": 1
}
```

```json
{
"code": 200,
"data": null,
"msg": "Ok"
}
```

### 删除binding配置 /api/v2/binding/<binding_id> [DELETE]

```json
{
"code": 200,
"data": null,
"msg": "Ok"
}
```
Loading
Loading