很多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
conn.addRequestProperty("content-type", "application/json");
然后添加你要的属性Content-Type:application/json
很好,辛苦楼主发这么有意义的帖
再次衷心感谢版主大人