Created
January 24, 2015 08:56
-
-
Save javaeeeee/6aaa3d7f1610154adc6d to your computer and use it in GitHub Desktop.
Dropwizard/Jersey sub-resource method using query parameters
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("/query_param") | |
| @GET | |
| @Produces(MediaType.TEXT_PLAIN) | |
| public String getNamedStringWithParam(@DefaultValue("world") @QueryParam("name") String name) { | |
| return "Hello " + name; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment