From the previous recipes, you learned how to expose WSDL-based web services. This recipe will guide you through the process of exposing REST (REpresentational State Transfer) services on top of the ServiceMix container.
Let's start by creating a new Camel module for ServiceMix. The recipe titled How to create and deploy a new Camel route explains how to do this. As the name of the generated artifact, choose
rest-example. The command you need to execute is presented here.
mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes-DarchetypeArtifactId=camel-archetype-spring -DgroupId=com.packtpub.servicemixhowto -DartifactId=rest-example -Dversion=1.0-SNAPSHOT
In order to expose ...