From c7b6b85cde598b84e310aff8c42ed9d5be778b81 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Tue, 19 Feb 2019 19:47:31 +0100 Subject: [PATCH] Optimized rest action routing --- application/symfony/src/Controller/API/Rest/README.md | 2 +- .../Controller/API/Rest/RestRoutesReachableIntegrationTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/symfony/src/Controller/API/Rest/README.md b/application/symfony/src/Controller/API/Rest/README.md index ae9855b..9299b5a 100644 --- a/application/symfony/src/Controller/API/Rest/README.md +++ b/application/symfony/src/Controller/API/Rest/README.md @@ -8,7 +8,7 @@ The scheme for the rest api is the following: | api/rest/{entity}.{format} | HEAD | Returns the create information for a specific entity | | api/rest/{entity}.{format} | POST | Creates a specific entity and returns it. | | api/rest/{entity}/{uri}.{format} | GET | Returns a specific entity. Including all actions | -| api/rest/{entity}/{uri}/{action}.{format} | GET | Returns the result for an action of an specific entity. | +| api/rest/{entity}/{uri}/{action}.{format} | GET | Returns the output for an action of an specific entity. | | api/rest/{entity}/{uri}.{format} | PUT, PATCH | Updates a specific entity and returns it. | | api/rest/{entity}/{uri}.{format} | DELETE | Deletes a specific entity| diff --git a/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php b/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php index a76e224..bcd7f41 100644 --- a/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php +++ b/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php @@ -46,7 +46,7 @@ class RestRoutesReachableIntegrationTest extends KernelTestCase $this->routeAssert($url, $method); break; case ActionType::EXECUTE: - $url = "$baseUrl/$uri/action/execute.$format"; + $url = "$baseUrl/$uri/execute.$format"; $this->routeAssert($url, $method); break; default: