有人可以帮我理解如何在POSTMAN中正确引用和解析GET请求中的数据吗?
我发送GET请求以获得以下响应:
[
{
"merchantId": "abcs",
"productId": "173d-214h4-8192j-123a",
"points": 500,
"amount": 250
},
{
"merchantId": "abcs",
"productId": "h738-1728d-73900a-1r72",
"points": 1000,
"amount": 888
},
{
"merchantId": "abcs",
"productId": "7y8s-9927v-yhs40-73a8",
"points": 2000,
"amount": 1200
},
{
"merchantId": "abcs",
"productId": "384j-is781-9si13-927s",
"points": 5000,
"amount": 2599
}
]
我的帖子请求如下:
"productId": "{{productId}}",
"amount": {{amount}},
"currency": "USD",
"points": {{points}},
"last4": "9321",
"email": "{{email}}"
由于某种原因,只解析了来自GET响应的第一组数据--- cURL:
"productId": "173d-214h4-8192j-123a",
"amount": 250,
"currency": "USD",
"points": 500,
"last4": "9321",
"email": "XXX-XXX@gmail.com",
我不确定如何更改数据并解析除此之外的任何内容。
这是cURL请求
卷曲-X POST \ https://www.sdefyil.us/essd/points \ -H'缓存控制:no-cache' \ -H' content-type:application / json' \ -H' postman-token:e1b1e16e-27381-b9c7-146b-f66da8249942' \ -d' { " productId":" 173d-214h4-8192j-123a", "金额":250, "货币":" USD", "积分":500, " last4":" 9321", "电子邮件":" XXX-XXX@gmail.com", " threeDS":{ "输入":" S", "版本":" 100", "数据":" eyJhbGciOiJSU0ExXzUiLCJraWQiOiJBTlVCRDJ2Wk9hUU1mN09MbGRRNDYzZUx0QUVMRWVxT2hWYUs0NG1YeTZJPSIsInR5cCI6IkpPU0UiLCJ" } }'