Created
January 24, 2015 08:59
-
-
Save javaeeeee/ada94226a446e10120de to your computer and use it in GitHub Desktop.
A simple Dropwizard/Jersey sub-resource serving JSON
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_json") | |
| @GET | |
| @Produces(MediaType.APPLICATION_JSON) | |
| public Greeting getJSONGreeting() { | |
| return new Greeting("Hello world!"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment