You are looking at documentation for an older release. Not what you want? See the current release documentation.
This section describes how to use Groovy scripts as REST services via the following topics:
In this section, the RESTful service is considered to be compatible with the JSR-311 specification.