Created
January 24, 2015 08:42
-
-
Save javaeeeee/bdf0bf5367d712f32fbf to your computer and use it in GitHub Desktop.
A simple Dropwizard/Jersey Resource Class
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
| @Path("/hello") | |
| public class HelloResource { | |
| @GET | |
| @Produces(MediaType.TEXT_PLAIN) | |
| public String getGreeting() { | |
| return "Hello world!"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment