Example using a REST API