Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created January 8, 2015 21:00
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 abhirockzz/b056ae928654b765dd9b to your computer and use it in GitHub Desktop.
Save abhirockzz/b056ae928654b765dd9b to your computer and use it in GitHub Desktop.
@Path("info")
@GET
@Produces("application/json")
public Response getTweeterInfo(@QueryParam("tweeter") String tweeterId){
//fetch details for abhi_tweeter
}
@Path("info/{tweeter}")
@GET
@Produces("application/json")
public Response getTweeterInfo(@PathParam("tweeter") String tweeterId){
//fetch details for abhi_tweeter
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment