Working with a RESTful API