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