Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
@Path(ApiPaths.USERS)
@Consumes(APPLICATION_JSON)
@Produces(APPLICATION_JSON)
public interface UserApi {
@GET
List<User> getUsers();
@DELETE
@Path(ApiPaths.PATH_ID)
List<User> delete(@PathParam(ApiParameters.ID) int userId);
@GET
@Path(ApiPaths.PATH_ID)
User getUser(@PathParam(ApiParameters.ID) int userId);
@PUT
@Path(ApiPaths.PATH_ID)
void saveUser(@PathParam(ApiParameters.ID) int userId, User user);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment