A great tool for consuming and testing restful web services is rest-shell.
In an writing these notes for OS X on a Mac. The instructions I am following come from here.
Open a terminal window and enter the following command:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
This will download and install Homebrew.
For me, this flagged that my Quartz was out of date, so I updated it by opening the url flagged up by Homebrew – https://xquartz.macosforge.org
Download and run, XQuartz-2.7.6.dmg.
I am now told that my system is ready to brew.
Open a terminal window and enter the following command
brew install rest-shell
This downloads and builds rest-shell.
Launch your restful web service. If you don’t have one you can try following my earlier post Produce Json From Restful CXF Web Service.
Open a terminal session and enter:
This will display the following output:
For more information on rest-shell take a look at Getting Started with the rest-shell