ColdBox has sported RESTFul capabilities since the 3.0.0 days (that's since 2011). As each release matures, our RESTFul suite of tools mature as well. In our latest release we introduced a great way to intercept when RESTFul endpoints are called with invalid HTTP methods. Every ColdBox handler has the this.allowedMethods structure which can tell the framework what actions can be executed with what HTTP methods.
this.allowedMethods = {
index = "GET",
save = "PUT,POST",
remove = "DELETE"
}
This is the second half of our two-part conversion of a FuseBox 5.1 sample app to ColdBox MVC. If you haven't been following our