how to consume rest api in java using eclipse