Groovy and Scala

Learn about REST in Groovy and Scala.

We'll cover the following...

REST in Groovy

Groovy includes some support for XML, such as the XMLSlurper.

Grails includes converters for simply converting objects to XML or JSON or vice versa.

import grails.converters.JSON
import grails.converters.XML

 class BookController {
       def getBooks = {
          
...