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
`meta` will only be included in your response if you are using an Adapter that supports `root`, as JsonAPI and Json adapters, the default adapter (FlattenJson) doesn't have `root`.
139
+
`meta` will only be included in your response if you are using an Adapter that supports `root`,
140
+
as JsonAPI and Json adapters, the default adapter (FlattenJson) doesn't have `root`.
140
141
141
142
### Using a serializer without `render`
142
143
@@ -199,7 +200,7 @@ Doesn't follow any specifc convention.
199
200
It also generates a json response but always with a root key. The root key **can't be overridden**, and will be automatically defined accordingly with the objects being serialized.
200
201
Doesn't follow any specifc convention.
201
202
202
-
#### JSONAPI
203
+
#### JSON API
203
204
204
205
This adapter follows 1.0 of the format specified in
205
206
[jsonapi.org/format](http://jsonapi.org/format). It will include the associated
@@ -285,9 +286,15 @@ And you can change the JSON key that the serializer should use for a particular
285
286
286
287
## Pagination
287
288
288
-
Pagination links will be included in your response automatically as long as the resource is paginated using [Kaminari](https://github.com/amatsuda/kaminari) or [WillPaginate](https://github.com/mislav/will_paginate) and if you are using a ```JSON-API``` adapter.
289
+
Pagination links will be included in your response automatically as long
290
+
as the resource is paginated using [Kaminari](https://github.com/amatsuda/kaminari) or
291
+
[WillPaginate](https://github.com/mislav/will_paginate) and
292
+
if you are using the ```JsonApi``` adapter.
289
293
290
-
Although the others adapters does not have this feature, it is possible to implement pagination links to `JSON` adapter. For more information about it, please see in our docs [How to add pagination links](https://github.com/rails-api/active_model_serializers/blob/master/docs/howto/add_pagination_links.md)
294
+
Although the others adapters does not have this feature, it is possible to
295
+
implement pagination links to `JSON` adapter. For more information about it,
Copy file name to clipboardExpand all lines: docs/general/adapters.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Doesn't follow any specifc convention.
17
17
It also generates a json response but always with a root key. The root key **can't be overridden**, and will be automatically defined accordingly to the objects being serialized.
18
18
Doesn't follow any specifc convention.
19
19
20
-
### JSONAPI
20
+
### JSON API
21
21
22
22
This adapter follows **version 1.0** of the format specified in
23
23
[jsonapi.org/format](http://jsonapi.org/format). It will include the associated
Copy file name to clipboardExpand all lines: docs/howto/add_pagination_links.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
1
# How to add pagination links
2
2
3
-
### JSON-API adapter
3
+
### JSONAPI adapter
4
4
5
-
Pagination links will be included in your response automatically as long as the resource is paginated and if you are using a ```JSON-API``` adapter.
5
+
Pagination links will be included in your response automatically as long as
6
+
the resource is paginated and if you are using the ```JsonApi``` adapter.
6
7
7
-
If you want pagination links in your response, use [Kaminari](https://github.com/amatsuda/kaminari) or [WillPaginate](https://github.com/mislav/will_paginate).
8
+
If you want pagination links in your response, use [Kaminari](https://github.com/amatsuda/kaminari)
9
+
or [WillPaginate](https://github.com/mislav/will_paginate).
0 commit comments