Skip to content

Instantly share code, notes, and snippets.

@Espenhh
Created September 4, 2011 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Espenhh/1193002 to your computer and use it in GitHub Desktop.
Save Espenhh/1193002 to your computer and use it in GitHub Desktop.
@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