@Path("/api/users")
public class UserService {
@GET
public List<User> getAllUsers() {
}
@POST
public void createUser(User user) {
}
}
@Path("/api/users")
public class UserService {
@GET
@CacheResult
public List<User> getAllUsers() {
}
}
@Path("/api/users")
@Produces("application/x-protobuf")
@Consumes("application/x-protobuf")
public class UserService {
@GET
public UserProto.User getUser() {
}
}
@Path("/api/users")
public class UserService {
@GET
@Synchronized
public List<User> getAllUsers() {
}
}
@Path("/api/users")
public class UserService {
@GET
@ManagedExecutorService("customThreadPool")
public List<User> getAllUsers() {
}
}