诗词和诗人相关标签
接口地址:/tags
请求方式:GET
响应数据类型:application/json
接口描述:
支持通过多个父标签Id搜索标签,不传则搜索所有标签
请求参数:
| 参数名称 | 参数说 明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| parentIds | 父标签Id | query | false | array | integer |
响应状态:
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | object |
响应参数:
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| id | 标签Id | integer(int64) | integer(int64) |
| name | 分类名称 | string | |
| path | 从顶级分类到父分类的所有id | array | |
| icon | 图标 | string | |
| children | 子标签 | array | object |
| id | 标签Id | integer(int64) | |
| name | 分类名称 | string | |
| path | 从顶级分类到父分类的所有id | array | string |
| icon | 图标 | string | |
| children | 子标签 | array | object |
响应示例:
{
"id": 0,
"name": "",
"path": [],
"icon": "",
"children": [
{
"id": 0,
"name": "",
"path": [],
"icon": "",
"children": []
}
]
}