Showing posts with label restful. Show all posts
Showing posts with label restful. Show all posts

Wednesday, June 10, 2009

Hannibal makes Testing ReST easy

The Browser class in Hannibal makes testing ReSTful Web Services easy. Simply call get, put, post, delete, or options and pass in a url and if needed a parameter map. The code would look something like this:

var response = browser.delete(myUrlString)

browser.post(myUrlString, [parameterName: "someParameterValue"])

Then get the response from the web service call and make assertions. Take a look at the unit tests from our SvnServices project for more examples.

Look for more tips on using Hannibal in the future.

Thursday, May 21, 2009

Svn Services

Lucid has released Svn Services, an open source project that provides restful Web Services using SVNKit and Hannibal.

You can use Svn Services to manage your Subversion repositories via web services. Using Svn services you can create or remove new Subversion repositories. You can manage your Subversion repository users as well. Svn Services is deployable as a war file in Tomcat.

You can download the alpha war file here.

Wednesday, May 20, 2009

Hannibal is Simple Too

So we were just reading an interesting post over at The Disco Blog regarding the simplicity of creating web services using Grails. Grails is a very popular framework for creating web applications. After reading that article we were convinced that creating a web service using Grails was indeed simple; of course we wondered how Hannibal stacked up to that ...

So we decided to implement that "runners and races" example in Hannibal. Please visit the wiki for a treatment!