Created
June 2, 2010 03:09
-
-
Save vishnugopal/421865 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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