tree: b1ded3c4826330eaea3e9a8e02585076a66c0171 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/groovy/README.MD

Groovy Example

This example demonstrates how to develop RESTful hello world web service using Groovy and the embedded Grizzly server.

Contents

The example consists of just one Jersey resource:

org.glassfish.jersey.examples.groovy.GroovyResource

hat produces a textual response to an HTTP GET.

The mapping of the URI path space is presented in the following table:

URI pathResource classHTTP methods
/groovyGroovyResourceGET

Running the Example

Run the example as follows:

mvn clean compile exec:java

This deploys the example using Grizzly container.

From a web browser, visit: