We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ddeb9c + 51d2a9f commit decc681Copy full SHA for decc681
core/subresources.md
@@ -178,15 +178,15 @@ may use `bin/console debug:router`.
178
179
## Using Custom Paths
180
181
-You can control the path of subresources with the `path` option of the `subresourceOperations` parameter:
+You can control the path of subresources with the `path` option of the `subresourceOperations` parameter.
182
183
```php
184
<?php
185
// api/src/Entity/Question.php
186
187
#[ApiResource(
188
subresourceOperations: [
189
- 'api_questions_answer_get_subresource' => [
+ 'answer_get_subresource' => [
190
'method' => 'GET',
191
'path' => '/questions/{id}/all-answers',
192
],
0 commit comments