When using the getEntity()
method on the Resteasy client you need to specify the type via <T>
parameter, otherwise you need to call one of the other overloaded getEntity()
methods that specify the expected return type in the method signature.
ClientRequest request = new ClientRequest('RESOURCE URL HERE');
ClientResponse<List<UserEntity>> response = request.get(new GenericType<List<UserEntity>>(){});
List<UserEntity> users = response.getEntity();