My organization is working on building RESTful webservices on JBoss appserver. The QA team is used to testing SOAP webservices so far using SoapUI. SoapUI has a new version that has REST capabilities. We're considering using that.
- Are there any publicly available RESTful services available on the net for free that someone could test ?
- What tools are available(and used) for testing RESTful web services ?
The simplest way to test REST web service is using
curl
in terminal.There are some codes I used to test my web service of rails. You may modify them to fit your services.
GET
POST
PUT in Raills: eg1(with all fields) :
eg2(with the field only be edited) :
DELETE in rails with id provided
I don't have tested it yet but this Java app seems to be nice to test REST services. There is also a tutorial on Javalobby about it.
Java App: http://code.google.com/p/rest-client/
Tuto: http://java.dzone.com/announcements/wiztoolsorg-restclient-21-rele
I'm using REST console extension for Google Chrome and It's by far the best i've tried. It also supports various security mechanisms like OAuth
(update 2: fix link)
For java, there also exists RESTFuse, which allows to develop unit tests which may look like this:
This test runs against
http://localhost:8080/rest/status
and authenticates as user joe with password doe. The body of the method then checks that the GET call returns a 200 status code.SOA Cleaner, is a test tool that tests both soap and rest (also WCF, but it seems you don't need that feature). It's very intuative, and usable. Written in .NET. A free version is also available. can be downloaded from http://xyrow.com. Good luck!
For advanced REST testing you can try HttpMaster.
It supports dynamic parameters, friendly viewers for XML/JSON, and various types of response data validations that can be combined into logical expressions.
For basic http requests some browser plugin will be sufficient.