postman 如何在postaman中用表单数据传递对象的对象

axkjgtzd  于 2023-04-20  发布在  Postman
关注(0)|答案(1)|浏览(315)


bellow是我尝试了很多方法,但我没有得到结果的数据,请帮助我.

{
    "gstInfo": {
        "gstNumber": ,
        "SGST": "9",
        "CGST": "9",
        "IGST": "18"
    },
    "contactInfo": {
        "phoneNumber":,
        "address": "testtsetteset",
        "email": "test@gmail.com"
    },
    "codAvailable": "true",
    "gstAvailable": "true",
    "smtpInfo": {
        "hostName": "gmail",
        "smtpPort": "",
        "username": "",
        "password": "",
        "fromEmail": ""
    }
}

我想要的结果在formdata与测试 Postman

tvz2xvvm

tvz2xvvm1#

你可以安装form-data off npm并使用它来创建formdata。
https://www.npmjs.com/package/form-data
它已经有了如何使用它的文档

相关问题