This example demonstrates how to develop RESTful hello world web service using Groovy and the embedded Grizzly server.
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 path | Resource class | HTTP methods |
---|---|---|
/groovy | GroovyResource | GET |
Run the example as follows:
mvn clean compile exec:java
This deploys the example using Grizzly container.
From a web browser, visit: