Scala rest client example