Tag: webservices

Groovy and Rails = Grails

Posted by – February 28, 2008

I started my study about grails few weeks ago, grails is a rad framework, very similar to Ruby on Rails but with a lot of nice features, one of them is the builtin support for rest webservice, you just need create your domain and controller classes, start the application and then you can submit your xml over GET, POST, PUT and DELETE methods! Very easy and handy!

You only need type these command on command line window:

grails create-app restservice

grails create-domain-class Person

grails create-controller Person

Now you must edit Person.groovy at restservice/grails-app/domain folder and then add Person class properties like below: