Category Selected:

rest

Blog

REST2016 - Creating Sub-module URL entry points

Luis Majano |  March 11, 2016

In this entry I will go over how to leverage ColdBox's Modular architecture to RESTFul routing. In ColdBox, every module's ModuleConfig.cfc you create has two important facets for building RESTFul services: 1) The this.entryPoint and the 2) routes structure in the configure() method.

If you are creating ColdBox applications using modules, then you will benefit with the capability to nest entry points so they can match to nested sub-modules. Let's say you have the following module structure:

+modules
  + api
    + security
    + data
Read More

REST2016 - Introduction to RESTful Tools - Coldbox Relax

Gavin Pickin |  March 11, 2016

ColdBox Relax is a set of restful tools, for lazy experts, that provides an easy way to describe RESTful web services, test RESTful Web Services, monitor RESTful web services, and document your RESTful API.

Read More

REST2016 - Versioning Your ColdBox REST API with Modules (Runnable Example)

Brad Wood |  March 09, 2016

In our ColdBox RESTFul RoadShow this month, we've been talking about why ColdBox is the fastest and easiest ways to build a robust REST API in CFML.  One of the very powerful features of the ColdBox MVC Platform is that you can use modules to break your apps and APIs up into management chunks  instead of building a monolith.  Modules also let you decouple pieces of your application so multiple teams can work on different parts.  And with the power of CommandBox's CLI and package manager to assemble your app's dependencies, you can even store modules in a completely separate code repository!   This is exactly what we're going to demo today.

Read More

Relax Version 2.2.0 Is Now Available

Jon Clausen |  March 05, 2016

Relax version 2.2.0, for Coldbox, is now available and includes a number of bug fixes and improvements.  Relax, aptly subtitled "RESTful tools for lazy experts", is a Coldbox module, which makes it easy for developers to conduct modeling, documentation and testing for their

Read More

REST2016 - ColdBox REST - BaseHandler Module

Gavin Pickin |  March 04, 2016

In our last blog post, we talked about the ColdBox REST Template, a great way to use Commandbox to spin up a REST Application Template, and get started with ColdBox RESTful services. That doesn’t work if you have an existing application, and you want to add to it. That is why we have created a easy to install Module that you can just plug into your application.

Read More

REST2016 - ColdBox REST Template

Luis Majano |  March 03, 2016

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:
 

Read More

ColdBox RESTFul Roadshow 2016 coming your way!

Luis Majano |  March 02, 2016

We are so excited to bring this month a RESTFul roadshow based on ColdBox technologies.  We will have several blog posts all month long and several live webinars from the team as well.  Below you can find a schedule of our presentations that we will be conducting live.  We will also record them and publish them in our Vimeo and YouTube channel...

Read More

RESTFul Content auto-marshalling with ColdBox

Luis Majano |  February 10, 2015

ColdBox 4 introduces yet more nifty tools for RESTFul web services.  In ColdBox 4, we introduced the capability to do auto-marshaling of RESTFul body content from either JSON or XML formats.  We will take care of the defaults, nulls and incompatibility requirements.  All you have to do is use our event.getHTTPContent() method and pass the appropriate conversion argument. 

The possible conversion boolean arguments are: