Created
January 24, 2015 08:55
-
-
Save javaeeeee/96d160da2db2d56e99fb to your computer and use it in GitHub Desktop.
Dropwizard/Jersey sub-resource method using path 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("/path_param/{name}") | |
| @GET | |
| @Produces(MediaType.TEXT_PLAIN) | |
| public String getNamedGreeting(@PathParam(value = "name") String name) { | |
| return "Hello " + name; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment