update code level
This commit is contained in:
56
docs/api.md
56
docs/api.md
@@ -287,6 +287,31 @@ Base URL: `http://<host>:<port>/api`
|
||||
|
||||
---
|
||||
|
||||
### POST /api/people/delete/{name}
|
||||
删除人物(从 imager.db + search.db 中清除),并重新解析受影响的相册。
|
||||
|
||||
**参数**(path):
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
|------|------|------|
|
||||
| name | string | 人物名(URL 编码) |
|
||||
|
||||
**响应**:
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"person": "人物名",
|
||||
"albums_affected": 5,
|
||||
"persons_updated": 3,
|
||||
"tags_updated": 8,
|
||||
"synced": 5,
|
||||
"message": "人物 '人物名' 已删除,影响 5 个相册,重新解析完成..."
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 标签 / 元数据
|
||||
|
||||
### GET /api/metadata/stats
|
||||
@@ -343,6 +368,31 @@ Base URL: `http://<host>:<port>/api`
|
||||
|
||||
---
|
||||
|
||||
### POST /api/tags/delete/{name}
|
||||
删除标签(从 dict/album_tags/tags 表中清除),并重新解析受影响的相册。
|
||||
|
||||
**参数**(path):
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
|------|------|------|
|
||||
| name | string | 标签名(URL 编码) |
|
||||
|
||||
**响应**:
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"tag": "标签名",
|
||||
"albums_affected": 5,
|
||||
"persons_updated": 3,
|
||||
"tags_updated": 8,
|
||||
"synced": 5,
|
||||
"message": "标签 '标签名' 已删除,影响 5 个相册,重新解析完成..."
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 推荐
|
||||
|
||||
### GET /api/recommend/tags
|
||||
@@ -553,14 +603,14 @@ Base URL: `http://<host>:<port>/api`
|
||||
[
|
||||
{
|
||||
"word": "写真",
|
||||
"type_": "tag",
|
||||
"type": "tag",
|
||||
"category": "topic",
|
||||
"freq": null,
|
||||
"merged_to": null
|
||||
},
|
||||
{
|
||||
"word": "张三",
|
||||
"type_": "person",
|
||||
"type": "person",
|
||||
"category": null,
|
||||
"freq": null,
|
||||
"merged_to": null
|
||||
@@ -568,7 +618,7 @@ Base URL: `http://<host>:<port>/api`
|
||||
]
|
||||
```
|
||||
|
||||
**type_ 可选值**:`tag`、`person`、`stop_word`、`person_prefix`、`excluded_person`
|
||||
**type 可选值**:`tag`、`person`、`stop_word`、`person_prefix`、`excluded_person`
|
||||
|
||||
**响应**:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user