We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9752c55 commit c6716d6Copy full SHA for c6716d6
1 file changed
source/guides/serialization/defining.html.md
@@ -242,3 +242,14 @@ end
242
Note: it is also possible to manually override the linkage data for a
243
relationship (which can be useful to add linkage-level meta information) via the
244
`linkage` DSL method.
245
+
246
+## Rails generators
247
248
+The jsonapi-rails gem comes with generators for serializable resource classes.
249
+It infers the attributes and relationships from your model definition.
250
251
+Usage:
252
+```
253
+$ bundle exec rails generate jsonapi:serializable Post
254
+> created app/serializable/serializable_post.rb
255
0 commit comments