- 认证中心
- 用户服务
- 商品服务
- 购物车服务
- 订单服务
- 结算服务
- 支付服务
- 智能体
查看购物车
开发中
GET
/api/v1/carts
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
示例代码
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/v1/carts' \
--header 'Authorization;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
cart
object
必需
示例
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"Description": "The cloudwego notebook is a highly efficient and feature-rich notebook designed to meet all your note-taking needs. ",
"Name": "Notebook",
"Picture": "/static/image/notebook.jpeg",
"Price": "9.90",
"Qty": "1"
}
],
"title": "Cart",
"total": "9.90"
}
}
修改于 2025-02-21 02:17:02