tree: ef721dcc1a1801b9953cb2a4c24d1156d343e71a [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: