REST

Grails REST: Generate RestfulController

Posted on by  
Albert van Veen

Since version 2.3 Grails has excellent support for creating REST APIs. This new support comes with some new console commands. Besides the well known generate-controller command, Grails now comes with a new command which let you generate restful controllers for a given domain class. In the following example, we will create a restful controller using the new generate-restful-controller command. First we create a domain object

$ grails create-domain-class grails.data.Movie

Continue reading →

shadow-left