Last active
December 15, 2015 14:08
-
-
Save mamund/5271749 to your computer and use it in GitHub Desktop.
heterogeneous collection in a single Cj response
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" : { | |
"href" : "...", | |
"items" : [ | |
{ | |
"href" : "/orders/1", | |
"data" : [...], | |
"links" : [ | |
{"rel" : "type", "href" : "http://example.org/rels#order"} | |
] | |
}, | |
{ | |
"href" : "/orders/1/line/0", | |
"data" : [...], | |
"links" : [ | |
{"rel" : "type", "href" : "http://example.org/rels#line"}, | |
{"rel" : "collection", "href" : "/orders/1"} | |
] | |
}, | |
{ | |
"href" : "/orders/1/line/1", | |
"data" : [...], | |
"links" : [ | |
{"rel" : "type", "href" : "http://example.org/rels#line"}, | |
{"rel" : "collection", "href" : "/orders/1"} | |
] | |
}, | |
{ | |
"href" : "/orders/1/line/2", | |
"data" : [...], | |
"links" : [ | |
{"rel" : "type", "href" : "http://example.org/rels#line"}, | |
{"rel" : "collection", "href" : "/orders/1"} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment