Created
November 13, 2015 13:13
-
-
Save martkoehler/700069419910992be3ce 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") | |
@Api(value = "/customer", description = "Customer Operations") | |
public interface CustomerResource { | |
@GET | |
@Path("/{id:[1-9][0-9]*}") | |
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | |
@ApiOperation(value = "Find customer by id") | |
Response getCustomer(@PathParam("id") final Long id); | |
@GET | |
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | |
@ApiOperation(value = "Find all customers") | |
Response getCustomers(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment