Skip to content

Commit edbbb03

Browse files
committed
creating_new_rest_resource.md: Update/Offset includes
1 parent d1a0290 commit edbbb03

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
@@ -48,7 +48,7 @@ You can use the following configuration to have all controllers from the `App\Re
4848
``` yaml
4949
services:
5050
#…
51-
[[= include_file('code_samples/api/rest_api/config/services.yaml', 36, 42) =]]
51+
[[= include_file('code_samples/api/rest_api/config/services.yaml', 41, 47) =]]
5252
```
5353

5454
Having the REST controllers set as services enables using features such as the `InputDispatcher` service in the [Controller action](#controller-action).
@@ -98,7 +98,7 @@ The `Values/Greeting` class is linked to its `ValueObjectVisitor` through the se
9898
``` yaml
9999
services:
100100
#…
101-
[[= include_file('code_samples/api/rest_api/config/services.yaml', 43, 48) =]]
101+
[[= include_file('code_samples/api/rest_api/config/services.yaml', 48, 53) =]]
102102
```
103103

104104
Here, the media type is `application/vnd.ibexa.api.Greeting` plus a format.
@@ -120,7 +120,7 @@ In other cases, it could return whatever object is needed to represent the input
120120
``` yaml
121121
services:
122122
#…
123-
[[= include_file('code_samples/api/rest_api/config/services.yaml', 48, 53) =]]
123+
[[= include_file('code_samples/api/rest_api/config/services.yaml', 53, 58) =]]
124124
```
125125

126126
## Testing the new resource

0 commit comments

Comments
 (0)