发布商品
腾讯云
腾讯云
POST
/product/product
请求参数
Header 参数
token
string
可选
默认值:
eyJhbGciOiJIUzI1NiJ9.eyJvcGVuSWQiOiJvWVNpVDY1bl9KdTRIa05wWk5MVEp2MTRpdm5NIiwicmVkaXNUb2tlbiI6ImJlMTgzNjA1N2Y0NDQ2NmMiLCJleHAiOjE3MTI2OTY4MzR9.W_uxFXsSU-FuJlpKno2pAoILF2jiF_KN9svO311i2nI
Body 参数application/json
productTitle
string | null
商品的标题
productPrice
number | null
商品的价格
productUnit
string | null
商品的单位
productDescription
string | null
商品的描述
frontImage
string | null
商品的表面图片
productImage
string | null
商品的图片
productAddress
string | null
商品的地址
示例
{
"productTitle": "string",
"productPrice": 0,
"productUnit": "string",
"productDescription": "string",
"frontImage": "string",
"productImage": "string",
"productAddress": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '127.0.0.1:8089/product/product' \
--header 'token: eyJhbGciOiJIUzI1NiJ9.eyJvcGVuSWQiOiJvWVNpVDY1bl9KdTRIa05wWk5MVEp2MTRpdm5NIiwicmVkaXNUb2tlbiI6ImJlMTgzNjA1N2Y0NDQ2NmMiLCJleHAiOjE3MTI2OTY4MzR9.W_uxFXsSU-FuJlpKno2pAoILF2jiF_KN9svO311i2nI' \
--header 'Content-Type: application/json' \
--data-raw '{
"productTitle": "string",
"productPrice": 0,
"productUnit": "string",
"productDescription": "string",
"frontImage": "string",
"productImage": "string",
"productAddress": "string"
}'
返回响应
🟢200成功
application/json
Body
com.example.common.Result
code
integer | null
可选
message
string | null
可选
data
object ()
可选
示例
{
"code": 0,
"message": "",
"data": {}
}
修改于 2023-09-09 16:42:44