Skip to content

Commit b8af289

Browse files
Yohan Robertremear
authored andcommitted
[skip ci] Fix root key documentation (#1761)
The current documentation stated that it was not possible to override the root key for the JSON adapter. This was removed from the documentation and it now links the useful documentation pages.
1 parent 6e609c1 commit b8af289

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/general/adapters.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ Doesn't follow any specific convention.
6767

6868
### JSON
6969

70-
The response document always with a root key.
70+
The json response is always rendered with a root key.
7171

72-
The root key **can't be overridden**, and will be derived from the resource being serialized.
72+
The root key can be overridden by:
73+
* passing the `root` option in the render call. See details in the [Rendering Guides](rendering.md#overriding-the-root-key).
74+
* setting the `type` of the serializer. See details in the [Serializers Guide](serializers.md#type).
7375

7476
Doesn't follow any specific convention.
7577

0 commit comments

Comments
 (0)