问题描述
我想直接通过HTTP测试我的RESTful应用程序,我正在寻找可以帮助我完成该任务的工具。基本上我正在寻找一个简单的HTTP请求包装器,可以提交,例如HTML表单或序列化资源为JSON或XML。
I want to test my RESTful applications directly via HTTP and I am looking for tools that can help me with that task. Basically I am looking for an easy wrapper for HTTP requests that can submit e.g. HTML forms or serialized resources as JSON or XML.
如果有办法验证服务是否实际遵循REST架构指南(无状态,URI,内容协商等)。
It would be great if there is a way to verify if the service is actually following REST architectural guidelines (statelessness, URIs, content negotiation etc.), too.
能够将它与JUnit一起使用将是一个方便的奖励。你知道有哪些库可以帮助我做我想做的事情(而且这不仅仅是一个简单的http客户端)?
Being able to use it with JUnit would be a convenient bonus. Do you know about any libraries that could help me with what I want to do (and that are a little more than just a simple http client)?
推荐答案
查看是否有任何帮助。
编辑:目前我正在使用Postman - REST客户端一个谷歌浏览器插件,它真棒!
Currently I am using Postman - REST Client a google chrome plugin and it's awesome!
这篇关于测试RESTful服务的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!