Created
December 14, 2015 09:56
-
-
Save martkoehler/04874c0aa757325f07b7 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("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