Authorization: ********************{
"params": {
"custom_field": "some_value",
"another_field": {
"nested": true
}
},
"spuCode": "SPU-001",
"productName": "Premium Quality Widget",
"description": "高品质的产品,适用于多种场景",
"category": "电子产品",
"brand": "知名品牌"
}curl --location --request POST 'https://gwms.jmalltech.com/api-gateway/api/v1/products/spus' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"custom_field": "some_value",
"another_field": {
"nested": true
}
},
"spuCode": "SPU-001",
"productName": "Premium Quality Widget",
"description": "高品质的产品,适用于多种场景",
"category": "电子产品",
"brand": "知名品牌"
}'{
"success": true,
"message": "Success",
"code": "200",
"timestamp": "2024-01-01T00:00:00Z",
"data": {
"createBy": 1,
"createTime": "2024-01-01T10:00:00Z",
"updateBy": 1,
"updateTime": "2024-01-01T10:30:00Z",
"params": {
"key1": "value1",
"key2": "value2"
},
"id": 0,
"userId": 0,
"spuCode": "SPU-001",
"productName": "Premium Quality Widget",
"description": "高品质的产品,适用于多种场景",
"category": "电子产品",
"brand": "知名品牌",
"status": "ACTIVE"
}
}