获取标签
开发中
GET
http://localhost:8098/api/tag
请求参数
Query 参数
page
integer
可选
size
integer
每页条数
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8098/api/tag?page&size'
返回响应
🟢200成功
application/json
Body
code
integer
必需
errMsg
null
必需
data
object
必需
page
integer
当前页
size
integer
每页条数
data
array [object {5}]
必需
totalData
integer
总标签数量
totalPages
integer
总页数
示例
{
"code": 200,
"errMsg": null,
"data": {
"page": 1,
"size": 2,
"data": [
{
"tagId": 72,
"displayName": "必度光广体",
"slug": "consequat enim culpa",
"color": "#5ADC1b",
"postCount": 1
},
{
"tagId": 71,
"displayName": "123123",
"slug": "123123",
"color": "#D51C1C",
"postCount": 2
}
],
"totalData": 22,
"totalPages": 11
}
}
修改于 2025-01-31 17:07:29