Writing a simple application for working with RESTful API