邮递员 - 发布应用程序/json 数据 [英] postman - post application/json data
本文介绍了邮递员 - 发布应用程序/json 数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
How can I send application/json data through postman, so that i can recieve the same data in nodejs server as req.body. I have tried raw body json in postman which sends the data as application/json, but data is available in server as req.rawBody. I need to get the same in req.body. Is there any such option
解决方案
Click on x-www-form-urlencoded tab and enter the body. Now you can receive the body using req.body
in backend.
这篇关于邮递员 - 发布应用程序/json 数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文