RESTClient到底该怎么提交JSON对象啊啊啊

2025-02-24 20:11:15
推荐回答(5个)
回答1:

很多REST Client是不支持自动化测试RESTful API,也不支持自动生成API文档.
之前习惯用一款名字为 WisdomTool REST Client,支持自动化测试RESTful API,输出精美的测试报告,并且自动生成RESTful API文档。
工具精悍哦!
https://github.com/wisdomtool/rest-client

Most of REST Client tools do not support automated testing.

Once used a tool called WisdomTool REST Client supports automated testing, output exquisite report, and automatically generating RESTful API document.

Very powerful !

https://github.com/wisdomtool/rest-client

回答2:

conn.addRequestProperty("content-type", "application/json");

回答3:

然后添加你要的属性Content-Type:application/json

回答4:

很好,辛苦楼主发这么有意义的帖

回答5:

再次衷心感谢版主大人