Adds transformer for the API output.