使用邮递员发送嵌套的json对象 [英] sending nested json object using postman
本文介绍了使用邮递员发送嵌套的json对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Asp.net Web Api http://xyzdomain.com:16845/api/returns/returns
而且我有如下的数据,
我如何使用postman chrome扩展发布结束点,
由于Items是一个集合
[
$ b物品:[
{
sku:9257,
价格:100,
数量: 500,
DiscountPercent:1,
缺货:2
}
],
order_id:F429768865001,
status_code:Shelf,
Exception:no error
}
]
解决方案
以原始数据发送并将类型设置为 application / json
I am using Asp.net Web Api http://xyzdomain.com:16845/api/returns/returns
And i have data like below,
how do i post the end point 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对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文