Skip to content

Instantly share code, notes, and snippets.

@martkoehler
Created December 14, 2015 09:56
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 martkoehler/04874c0aa757325f07b7 to your computer and use it in GitHub Desktop.
Save martkoehler/04874c0aa757325f07b7 to your computer and use it in GitHub Desktop.
@Path("customer")
public interface CustomerResource {
@GET
@Path("/{id:[1-9][0-9]*}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
Response getCustomer(@PathParam("id") final Long id);
@GET
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
Response getCustomers();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment