One of the newest additions to the ColdBox application templates and also the CommandBox generation templates is our REST application template. This template will get you started with creating ColdBox RESTFul services. The best way to start with it is by downloading CommandBox, as we will use this for generation, scaffolding and as your integrated server. Then we can start working on our RESTFul service:
mkdir myservice box coldbox create app skeleton=rest name=MyService --installColdBox
Once you execute these CLI commands, you will have a new RESTFul service application ready to go. The next step is to startup an ad-hoc server and test it out:
box server start --rewritesEnable
This will open a browser window with the results of your first RESTFul service: