From b8af2892f79f3ae7dfb875dcac9897d90b90084b Mon Sep 17 00:00:00 2001 From: Yohan Robert Date: Tue, 31 May 2016 21:30:47 +0200 Subject: [PATCH] [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. --- docs/general/adapters.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/general/adapters.md b/docs/general/adapters.md index 68fe3f66c..6ae1d27a5 100644 --- a/docs/general/adapters.md +++ b/docs/general/adapters.md @@ -67,9 +67,11 @@ Doesn't follow any specific convention. ### 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.