Skip to content

Instantly share code, notes, and snippets.

@vishnugopal
Created June 2, 2010 03:09
Show Gist options
  • Save vishnugopal/421865 to your computer and use it in GitHub Desktop.
Save vishnugopal/421865 to your computer and use it in GitHub Desktop.
require 'java'
import javax.ws.rs.Path
import javax.ws.rs.GET
import javax.ws.rs.Produces
package com.headius.demo.jersey
annotation Path("/helloworld")
class HelloWorld
annotation GET
annotation Produces("text/plain")
def cliched_message
"Hello World"
end
end
require 'java'
import javax.ws.rs.Path
import javax.ws.rs.GET
import javax.ws.rs.Produces
package com.headius.demo.jersey
@Path("/helloworld")
class HelloWorld
@GET
@Produces("text/plain")
def cliched_message
"Hello World"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment