- 登录授权
- 商品
- 账户
- 验证码
- Keywords
- Banner
- 文章
- 短信
- 订单
- 地区
- 收货地址
- 优惠券
- 余额提现
- 评论
添加评论
开发中
POST
/api/comment
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Accept
string
必需
默认值:
application/json
X-Requested-With
string
必需
默认值:
XMLHttpRequest
Body 参数application/json
content
string
内容
subject_id
integer
对象 id
subject_type
string
对象 type
parent_id
integer
上级 id
示例
{
"content": "string",
"subject_id": 0,
"subject_type": "string",
"parent_id": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/comment' \
--header 'Accept;' \
--header 'X-Requested-With;' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "string",
"subject_id": 0,
"subject_type": "string",
"parent_id": 0
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}