- 首页
- 登录
- 购物车
- 地址管理
- 订单
- 个人信息
- 搜索商品POST
- 猜你喜欢GET
- 详情-获取详情信息GET
- 支付-支付宝web支付GET
- 分类-获取二级分类内容GET
- 评价-获取评价列表GET
购物车-购物车列表
开发中
GET
/member/cart
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://meikou-api.itheima.net/member/cart' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
result
array [object {16}]
必需
id
string
必需
skuId
string
必需
name
string
必需
attrsText
string
必需
specs
array[string]
必需
picture
string
必需
price
string
必需
nowPrice
string
必需
nowOriginalPrice
string
必需
selected
boolean
必需
stock
integer
必需
count
integer
必需
isEffective
boolean
必需
discount
null
必需
isCollect
boolean
必需
postFee
integer
必需
示例
{
"code": "string",
"msg": "string",
"result": [
{
"id": "string",
"skuId": "string",
"name": "string",
"attrsText": "string",
"specs": [
"string"
],
"picture": "string",
"price": "string",
"nowPrice": "string",
"nowOriginalPrice": "string",
"selected": true,
"stock": 0,
"count": 0,
"isEffective": true,
"discount": null,
"isCollect": true,
"postFee": 0
}
]
}
修改于 2024-09-01 10:13:50