You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/general/configuration_options.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,5 +9,9 @@ The following configuration options can be set on `ActiveModel::Serializer.confi
9
9
## JSON API
10
10
11
11
-`jsonapi_resource_type`: Whether the `type` attributes of resources should be singular or plural. Possible values: `:singular, :plural`. Default: `:plural`.
12
-
-`jsonapi_toplevel_member`: Whether to include a [top level JSON API member](http://jsonapi.org/format/#document-jsonapi-object) in the response document. Default: `false`.
13
-
-`jsonapi_version`: The latest version of the spec the API conforms to. Used when `jsonapi_toplevel_member` is `true`. Default: `'1.0'`.
12
+
-`jsonapi_toplevel_member`: Whether to include a [top level JSON API member](http://jsonapi.org/format/#document-jsonapi-object)
13
+
in the response document. Default: `false`.
14
+
-`jsonapi_version`: The latest version of the spec the API conforms to.
15
+
Used when `jsonapi_toplevel_member` is `true`. Default: `'1.0'`.
16
+
-`jsonapi_toplevel_meta`: Optional metadata. Not included if empty.
17
+
Used when `jsonapi_toplevel_member` is `true`. Default: `{}`.
0 commit comments