Created
September 4, 2011 15:17
-
-
Save Espenhh/1193002 to your computer and use it in GitHub Desktop.
This file contains 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("/user") | |
public class UserResource { | |
@PUT | |
@Path("{username: [a-zA-Z][a-zA-Z_0-9]*}") | |
@Consumes("application/json, application/xml") | |
@Produces("application/json, application/xml") | |
public Response updateUser(@PathParam("username") String userName) { | |
//Do your thing here… ;) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment