here’s example M2 controller serve XML or JSON public function __construct( \Magento\Framework\App\Action\Context $context, \Magento\Framework\Controller\Result\RawFactory $resultPageFactory ) { $this->resultPageFactory = $resultPageFactory; parent::__construct($context); } public function execute()…
Continue reading Magento 2 : Controller Return XML or JSON
Comments closed