- 登录授权
- 商品
- 账户
- 验证码
- Keywords
- Banner
- 文章
- 短信
- 订单
- 地区
- 收货地址
- 优惠券
- 余额提现
- 评论
列表
开发中
GET
/api/banner
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
key
string
必需
示例值:
home
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/banner?key=home' \
--header 'Accept;' \
--header 'X-Requested-With;'
返回响应
🟢200成功
application/json
Body
data
object
数据
home
array[object (Banner) {4}]
广告位
code
integer
返回码
message
string
信息
示例
{"data":{"home":[{"id":2,"name":"1","path":"http:\/\/local.dcat-admin-demo.host\/storage\/banner\/92ed491dfbb6d77e78ffe66a115ba5bc.jpg","ext":[]},{"id":3,"name":"2","path":"http:\/\/local.dcat-admin-demo.host\/storage\/banner\/4b480339708c238d237f9c0e2ff67a93.jpg","ext":[]}]},"code":200,"message":""}