update ApiRootController to use TransformerTrait for JSON output