瀏覽代碼

Se actualiza el rest ftth.

Maxi Schvindt 7 年之前
父節點
當前提交
455d0203b3

+ 2 - 2
src/FTTHBundle/Controller/REST/ONURESTController.php

@@ -79,8 +79,8 @@ class ONURESTController extends RESTController
     }
 
     /**
-     * PATCH Route annotation.
-     * @Patch("/onus/{id}/apply/{workflow}/{transition}")
+     * GET Route annotation.
+     * @Get("/onus/{id}/apply/{workflow}/{transition}")
      * @View(statusCode=201, serializerEnableMaxDepthChecks=true)
      *
      * @param Request $request

+ 2 - 2
src/FTTHBundle/tests/ONURESTControllerTest.php

@@ -204,7 +204,7 @@ class ONURESTControllerTest extends WebTestCaseBase
         // hago la inserccion llamando al servicio por post
         $this->getClient()->request('POST', $this->getOLTUri(), $this->obtainOLTData());
         $response = $this->getClient()->getResponse();
-        var_dump($response);
+        //var_dump($response);
         $this->getClient()->request('POST', $this->getNAPUri(), $this->obtainNAPData());
         $response = $this->getClient()->getResponse();
         $this->getClient()->request('POST', $this->getUri(), $this->obtainData());
@@ -297,7 +297,7 @@ class ONURESTControllerTest extends WebTestCaseBase
         $fakeWebService = $this->getClient()->getContainer()->get('webservice');
         $original->setWebservice($fakeWebService);
 
-	$this->getClient()->request('PATCH',
+	$this->getClient()->request('GET',
 		$this->getUriPutDelete().  $json["id"] . "/apply/administrative_state/active_to_suspend.json" , array());
         $response = $this->getClient()->getResponse();