tree: 923d4c7dc31c741835d10618601df438a3109b81 [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: