Access REST API with objects