Explorar o código

cambie la url del apply

Luciano Andrade %!s(int64=7) %!d(string=hai) anos
pai
achega
633fd5e10d

+ 1 - 1
src/FTTHBundle/Controller/ONURESTController.php

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

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

@@ -184,7 +184,7 @@ class ONURESTControllerTest extends WebTestCaseBase
 
     /**
      * Aplica una transicion de un workflow a una entidad
-     * apply_onus -> /api/onu/apply/{id}/{workflow}/{transition}.{_format}
+     * apply_onus -> /api/onu/{id}/apply/{workflow}/{transition}.{_format}
      * controller: ClientBundle:ClientREST:cget
      * Method: GET
      */
@@ -208,7 +208,7 @@ class ONURESTControllerTest extends WebTestCaseBase
 	$original->setWebservice($fakeWebService);
 
 	$this->getClient()->request('PATCH',
-		$this->getUriPutDelete(). "apply/". $json["id"] . "/administrative_state/active_to_suspend.json" , array());
+		$this->getUriPutDelete().  $json["id"] . "/apply/administrative_state/active_to_suspend.json" , array());
         $response = $this->getClient()->getResponse();
 
 	$json = json_decode($response->getContent(), true);