24
24
</tr >
25
25
</table >
26
26
27
-
28
- ## Documentation
29
-
30
- - [ 0.10 (master) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/master )
31
- - [ ![ API Docs] ( http://img.shields.io/badge/yard-docs-blue.svg )] ( http://www.rubydoc.info/github/rails-api/active_model_serializers/v0.10.0 )
32
- - [ Guides] ( docs )
33
- - [ 0.9 (0-9-stable) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/0-9-stable )
34
- - [ ![ API Docs] ( http://img.shields.io/badge/yard-docs-blue.svg )] ( http://www.rubydoc.info/github/rails-api/active_model_serializers/0-9-stable )
35
- - [ 0.8 (0-8-stable) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/0-8-stable )
36
- - [ ![ API Docs] ( http://img.shields.io/badge/yard-docs-blue.svg )] ( http://www.rubydoc.info/github/rails-api/active_model_serializers/0-8-stable )
37
-
38
27
## About
39
28
40
29
ActiveModelSerializers brings convention over configuration to your JSON generation.
@@ -50,7 +39,7 @@ resource serialization. The serialization has the `#as_json`, `#to_json` and `#s
50
39
methods used by the Rails JSON Renderer. (SerializableResource actually delegates
51
40
these methods to the adapter.)
52
41
53
- By default ActiveModelSerializers will use the ** Attributes Adapter** .
42
+ By default ActiveModelSerializers will use the ** Attributes Adapter** (no JSON root) .
54
43
But we strongly advise you to use ** JsonApi Adapter** , which
55
44
follows 1.0 of the format specified in [ jsonapi.org/format] ( http://jsonapi.org/format ) .
56
45
Check how to change the adapter in the sections below.
@@ -62,9 +51,6 @@ architecture. We'd love your help. [Learn how you can help here.](CONTRIBUTING.m
62
51
63
52
It is generally safe and recommended to use the master branch.
64
53
65
- For more information, see the post '[ The future of
66
- AMS] ( https://medium.com/@joaomdmoura/the-future-of-ams-e5f9047ca7e9 ) '.
67
-
68
54
## Installation
69
55
70
56
Add this line to your application's Gemfile:
@@ -97,6 +83,17 @@ If you'd like to chat, we have a [community slack](http://amserializers.herokuap
97
83
98
84
Thanks!
99
85
86
+ ## Documentation
87
+
88
+ - [ 0.10 (master) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/master )
89
+ - [ ![ API Docs] ( http://img.shields.io/badge/yard-docs-blue.svg )] ( http://www.rubydoc.info/github/rails-api/active_model_serializers/v0.10.0 )
90
+ - [ Guides] ( docs )
91
+ - [ 0.9 (0-9-stable) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/0-9-stable )
92
+ - [ ![ API Docs] ( http://img.shields.io/badge/yard-docs-blue.svg )] ( http://www.rubydoc.info/github/rails-api/active_model_serializers/0-9-stable )
93
+ - [ 0.8 (0-8-stable) Documentation] ( https://github.com/rails-api/active_model_serializers/tree/0-8-stable )
94
+ - [ ![ API Docs] ( http://img.shields.io/badge/yard-docs-blue.svg )] ( http://www.rubydoc.info/github/rails-api/active_model_serializers/0-8-stable )
95
+
96
+
100
97
## High-level behavior
101
98
102
99
Given a [ serializable model] ( lib/active_model/serializer/lint.rb ) :
@@ -156,6 +153,6 @@ serializer.associations
156
153
```
157
154
See [ ARCHITECTURE.md] ( docs/ARCHITECTURE.md ) for more information.
158
155
159
- # Contributing
156
+ ## Contributing
160
157
161
158
See [ CONTRIBUTING.md] ( CONTRIBUTING.md )
0 commit comments