- 🦊一分钟,了解 Apifox !
- 极客空间
添加文章评论
开发中
POST
/api/web/article/comment
文章(前台)
请求参数
Header 参数
Authorization
string
携带token
Body 参数application/json
content
string
评论内容
address
string
地址
nickname
string
评论者昵称
articleID
string
文章id
time
string
评论时间
示例
{
"content": "",
"address": "",
"nickname": "",
"articleID": "",
"time": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/api/web/article/comment' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "",
"address": "",
"nickname": "",
"articleID": "",
"time": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
message
string
响应信息
示例
{
"code": 0,
"message": "string"
}
修改于 2024-07-31 08:05:59