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 (Attributes) doesn't have `root`.
141
+
`meta` will only be included in your response if you are using an Adapter that supports `root`, as JSON API and Json adapters, the default adapter (Attributes) doesn't have `root`.
142
142
143
143
### Overriding association methods
144
144
@@ -184,7 +184,7 @@ Doesn't follow any specifc convention.
184
184
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.
185
185
Doesn't follow any specifc convention.
186
186
187
-
#### JSONAPI
187
+
#### JSON API
188
188
189
189
This adapter follows 1.0 of the format specified in
190
190
[jsonapi.org/format](http://jsonapi.org/format). It will include the associated
@@ -276,7 +276,7 @@ The `url` declaration describes which named routes to use while generating URLs
276
276
for your JSON. Not every adapter will require URLs.
277
277
## Pagination
278
278
279
-
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.
279
+
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 ```JSONAPI``` adapter.
280
280
281
281
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)
Copy file name to clipboardExpand all lines: docs/general/adapters.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
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 the resource is paginated and if you are using a ```JSONAPI``` adapter.
6
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).
0 commit comments