- 登录授权
- 商品
- 账户
- 验证码
- Keywords
- Banner
- 文章
- 短信
- 订单
- 地区
- 收货地址
- 优惠券
- 余额提现
- 评论
详细
开发中
GET
/api/keywords/{id}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
id
string
id 或者 key
示例值:
1
Header 参数
Accept
string
必需
默认值:
application/json
X-Requested-With
string
必需
默认值:
XMLHttpRequest
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/keywords/1' \
--header 'Accept;' \
--header 'X-Requested-With;'
返回响应
🟢200成功
application/json
Body
data
object (Keyword)
数据
id
integer
id
name
string
名称
key
string
key
type_key
string | null
类别
value
string | null
值
level
integer
层级
parent_id
integer
上级 id
code
integer
返回码
message
string
信息
示例
{"data":{"id":1,"name":"\u5546\u54c1\u641c\u7d22\u5173\u952e\u8bcd","key":"goods-search-keywords","type_key":null,"value":null},"code":200,"message":""}