本文介绍了邮递员:发送嵌套的 JSON 对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 ASP.NET Web API:http://xyzdomain.com:16845/api/返回/返回
如果 Items
是一个集合,我如何使用 Postman Chrome 扩展程序向端点发送 POST 请求:
解决方案
将其作为原始数据发送并设置类型为application/json
I am using ASP.NET Web API: http://xyzdomain.com:16845/api/returns/returns
How do I send a POST request to the endpoint using Postman Chrome extension, given Items
is a collection:
[
{
"Items": [
{
"sku": "9257",
"Price": "100",
"Quantity": "500",
"DiscountPercent": "1",
"backordered": "2"
}
],
"order_id": "F429768865001",
"status_code": "Shelf",
"Exception": "no error"
}
]
解决方案
Send it as raw data and set the type to application/json
这篇关于邮递员:发送嵌套的 JSON 对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!