mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
[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.
This commit is contained in:
parent
6e609c1218
commit
b8af2892f7
@ -67,9 +67,11 @@ Doesn't follow any specific convention.
|
|||||||
|
|
||||||
### JSON
|
### JSON
|
||||||
|
|
||||||
The response document always with a root key.
|
The json response is always rendered with a root key.
|
||||||
|
|
||||||
The root key **can't be overridden**, and will be derived from the resource being serialized.
|
The root key can be overridden by:
|
||||||
|
* passing the `root` option in the render call. See details in the [Rendering Guides](rendering.md#overriding-the-root-key).
|
||||||
|
* setting the `type` of the serializer. See details in the [Serializers Guide](serializers.md#type).
|
||||||
|
|
||||||
Doesn't follow any specific convention.
|
Doesn't follow any specific convention.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user