Support inline collections[1].
- Add an optional top-level object
inline
as a child ofcollection
- Add an optional property to the
link
object:length
(number) - Add an optional property to the
link
object:inline
(boolean)
{ "collection" :
{
"version" : "1.0",
"href" : "http://example.org/posts/",
"items" : [
{
"href" : "http://example.org/posts/1",
"data" : [
{"name" : "full-name", "value" : "J. Doe", "prompt" : "Full Name"},
{"name" : "email", "value" : "[email protected]", "prompt" : "Email"}
],
"links": [
{ "rel": "comments", "href": "http://example.org/comments/1,2,3,4", "length": 4, "inline":true },
{ "rel": "examples", "href": "http://example.org/examples/a,b,c", "length": 3, "inline":true },
{ "rel": "author", "href": "http://example.org/author/mamund"}
]
}
],
"inline": {
"http://example.org/comments/1,2,3,4": { /* embedded collection+json */ },
"http://example.org/examples/a,b,c": { /* embedded collection+json */ }
}
}
}