美蔻商城-鸿蒙版
  1. 购物车
美蔻商城-鸿蒙版
  • 首页
    • 首页-Banner
      GET
    • 首页-分类列表
      GET
    • 首页-特惠推荐
      GET
    • 首页-爆款推荐
      GET
    • 首页-一站买全
      GET
    • 首页-新鲜好物
      GET
    • 首页-推荐列表
      GET
  • 登录
    • 登录-账号密码登录
      POST
    • 登录-华为登录
      POST
  • 购物车
    • 购物车-新增购物车
      POST
    • 购物车-购物车列表
      GET
    • 购物车-修改单项
      PUT
    • 购物车-全选/取消全选
      PUT
    • 购物车-数量
      GET
    • 购物车-删除
      DELETE
  • 地址管理
    • 地址管理-获取列表
      GET
    • 地址管理-新增
      POST
    • 地址管理-删除
      DELETE
    • 地址管理-更新地址
      PUT
    • 地址管理-地址详情
      GET
  • 订单
    • 订单-获取结算信息
      GET
    • 订单管理-新增订单
      POST
    • 订单管理-获取订单列表
      GET
    • 订单-模拟发货
      GET
  • 个人信息
    • 个人信息-获取
    • 个人信息-修改头像
    • 个人信息-修改
  • 搜索商品
    POST
  • 猜你喜欢
    GET
  • 详情-获取详情信息
    GET
  • 支付-支付宝web支付
    GET
  • 分类-获取二级分类内容
    GET
  • 评价-获取评价列表
    GET
  1. 购物车

购物车-修改单项

开发中
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 '{
    "selected": true,
    "count": "string"
}'

返回响应

🟢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
上一页
购物车-购物车列表
下一页
购物车-全选/取消全选
Built with