consume rest service