Created
November 3, 2015 17:19
-
-
Save NetguruGist/b70d5f33f60ea12c8fd2 to your computer and use it in GitHub Desktop.
serializers5 ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[json response] | |
data: { | |
id: 1, | |
type: "users", | |
attributes: { name: "John" }, | |
relationships: { | |
notes: [ | |
{ id: 1, type: "notes" }, | |
{ id: 2, type: "notes" } | |
] | |
} | |
}, | |
included: [ | |
{ id: 1, type: ’notes’, attributes: { body: ’Lorem ipsum.’ } }, | |
{ id: 2, type: ’notes’, attributes: { body: ’Dolor sil amet.’ } }, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment