Code setup for api training using play.