Optimized rest action routing

This commit is contained in:
Kevin Frantz 2019-02-19 19:47:31 +01:00
parent 1beae0cdc0
commit c7b6b85cde
2 changed files with 2 additions and 2 deletions

View File

@ -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|

View File

@ -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: