Skip to content

Commit 21aaea3

Browse files
committed
creating_new_rest_resource.md: Update inclusion line numbers
1 parent de3751f commit 21aaea3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api/rest_api/extending_rest_api/creating_new_rest_resource.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ A REST controller should:
6565

6666
``` php
6767
[[= include_file('code_samples/api/rest_api/src/Rest/Controller/DefaultController.php', 0, 14) =]]
68-
[[= include_file('code_samples/api/rest_api/src/Rest/Controller/DefaultController.php', 246) =]]
68+
[[= include_file('code_samples/api/rest_api/src/Rest/Controller/DefaultController.php', 212) =]]
6969
```
7070

7171
<details>
@@ -166,8 +166,8 @@ Thanks to API Platform, you can document the OpenAPI resource directly from its
166166
The resource is added to the OpenAPI Description dumped with `ibexa:openapi` command.
167167
In `dev` mode, the resource appears in the live documentation at `<dev-domain>/api/ibexa/v2/doc#/App/api_greet_get`.
168168

169-
``` php hl_lines="5 6 16 100"
170-
[[= include_file('code_samples/api/rest_api/src/Rest/Controller/DefaultController.php', 0, 247) =]]
169+
``` php hl_lines="5 6 16 89"
170+
[[= include_file('code_samples/api/rest_api/src/Rest/Controller/DefaultController.php', 0, 212) =]]
171171
//…
172172
```
173173

0 commit comments

Comments
 (0)