- 首页
- 登录
- 购物车
- 地址管理
- 订单
- 个人信息
- 搜索商品POST
- 猜你喜欢GET
- 详情-获取详情信息GET
- 支付-支付宝web支付GET
- 分类-获取二级分类内容GET
- 评价-获取评价列表GET
详情-获取详情信息
开发中
GET
/goods
请求参数
Query 参数
id
string
可选
示例值:
4026809
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/goods?id=4026809' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
result
object
必需
id
string
必需
name
string
必需
spuCode
string
必需
desc
string
必需
price
string
必需
oldPrice
string
必需
discount
integer
必需
inventory
integer
必需
brand
object
必需
salesCount
integer
必需
commentCount
integer
必需
collectCount
integer
必需
mainVideos
array[string]
必需
videoScale
integer
必需
mainPictures
array[string]
必需
specs
array [object {3}]
必需
skus
array [object {7}]
必需
categories
array [object {4}]
必需
details
object
必需
isPreSale
boolean
必需
isCollect
null
必需
recommends
null
必需
userAddresses
null
必需
similarProducts
array [object {6}]
必需
hotByDay
array [object {6}]
必需
evaluationInfo
null
必需
示例
{
"code": "string",
"msg": "string",
"result": {
"id": "string",
"name": "string",
"spuCode": "string",
"desc": "string",
"price": "string",
"oldPrice": "string",
"discount": 0,
"inventory": 0,
"brand": {
"id": "string",
"name": "string",
"nameEn": "string",
"logo": "string",
"picture": "string",
"type": null,
"desc": null,
"place": null
},
"salesCount": 0,
"commentCount": 0,
"collectCount": 0,
"mainVideos": [
"string"
],
"videoScale": 0,
"mainPictures": [
"string"
],
"specs": [
{
"name": "string",
"id": "string",
"values": [
{
"name": "string",
"picture": "string",
"desc": "string"
}
]
}
],
"skus": [
{
"id": "string",
"skuCode": "string",
"price": "string",
"oldPrice": "string",
"inventory": 0,
"picture": "string",
"specs": [
{
"name": "string",
"valueName": "string"
}
]
}
],
"categories": [
{
"id": "string",
"name": "string",
"layer": 0,
"parent": {
"id": "string",
"name": "string",
"layer": 0,
"parent": null
}
}
],
"details": {
"pictures": [
"string"
],
"properties": [
{
"name": "string",
"value": "string"
}
]
},
"isPreSale": true,
"isCollect": null,
"recommends": null,
"userAddresses": null,
"similarProducts": [
{
"id": "string",
"name": "string",
"desc": "string",
"price": "string",
"picture": "string",
"orderNum": 0
}
],
"hotByDay": [
{
"id": "string",
"name": "string",
"desc": "string",
"price": "string",
"picture": "string",
"orderNum": 0
}
],
"evaluationInfo": null
}
}
修改于 2024-09-01 10:17:40