修改评论
开发中
PUT
http://localhost:8098/admin/comment
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
commentId
number
评论 ID
content
string
评论内容
site
string <uri>
站点地址
displayName
string
名称
email
string <email>
邮箱
isPass
boolean
是否通过审核
示例
{
"commentId": 0,
"content": "string",
"site": "http://example.com",
"displayName": "string",
"email": "user@example.com",
"isPass": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:8098/admin/comment' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
errMsg
string | null
必需
data
boolean | null
必需
示例
{
"code": 200,
"errMsg": null,
"data": true
}
修改于 2024-09-07 16:11:42