implementing akka rest call to compare with async rest call