REST GET with parameter ignored, PHP Symfony 3 Mpdf
Working on a REST API for PDF processor using Mpdf(and tfox symfony bundle) on Symfony 3 Framework. I created two GET requests, one with no parameters for testing, and one with the parameter(URL of the HTML file) I want to read and then convert into PDF. The Generic GET function: /** * * @Rest\Get("/create") */ public function createPDFAction(){ $mpdfService = $this->get('tfox.mpdfport'); $html = "<h1> Hello </h1>"; $mpdf = $mpdfService->getMpdf(); $mpdf->WriteHTML($html); $mpdf->Output(); exit; } The Second GET function with parameter: /** * @param $htmlSource * @Rest\Get("/create/{htmlSource