我已经按照其文档( 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,请通过显示数据示例来帮助我,以便提出请求。期待答案。
提前致谢。