Last active
December 26, 2015 15:19
-
-
Save mamund/7171462 to your computer and use it in GitHub Desktop.
templating w/ homogneous representations in Cj. You can us the `links` collection in a single item to point to templates, too.
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
{"collection" : | |
{ | |
"version" : "1.0", | |
"href" : "...", | |
"links" : | |
[ | |
{"rel" : "home", "href" : "..."} | |
], | |
"items" : | |
[ | |
{ | |
"href" : "...", | |
"data" : | |
[ | |
{"name" : "type", "value" : "company"}, | |
{"name" : "name", "value" : "Data R Us"}, | |
{"name" : "email", "value" : "[email protected]"} | |
], | |
"links" : | |
[ | |
{"rel" : "template", "href" : "..."} | |
] | |
}, | |
{ | |
"href" : "...", | |
"data" : | |
[ | |
{"name" : "type", "value" : "primaryContact"}, | |
{"name" : "givenName", "value" : "Rus"}, | |
{"name" : "familyName", "value" : "Data"}, | |
{"name" : "email", "value" : "[email protected]"} | |
], | |
"links" : | |
[ | |
"rel" : "template", "href" : "..."} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment