【发布时间】:2015-10-07 14:56:47
【问题描述】:
我已经按照文档 (http://docs.broadleafcommerce.org/current/REST-Tutorials.html) 设置了 Broadleaf 以使其运行。我想使用 REST Api 检查购物车;也就是说,/cart/checkout。因此,我查看了代码内部,以了解发送的 JSON 格式的外观。通过查看代码,我发现需要传递JSON数据,如下所示:
{
"paymentInfo": {
"id": ,
"orderId": ,
"type": ,
"address": {
"id":
"firstname":
"lastname":
"addressLine1":
"addressLine2":
"city":
"state":
"country":
"postalCode":
},
"phone": "",
"additionalFields": "",
"amount": "",
"amountItems": "",
"customerIpAddress": "",
"referenceNumber": ""
},
"referenced": {
"id": "",
"referenceNumber": "",
"type": "",
"pan": "",
"cvvCode:" "",
"expirationMonth": "",
"expirationYear": "",
"accountNumber": "",
"routingNumber": "",
"pin": ""
}
}
但是,我不知道 JSON 数据是什么样的。因此,如果有人曾经使用过 api,请通过显示数据示例来帮助我,以便提出请求。期待答案。
提前致谢。
【问题讨论】: