Support a templates collection to allow multiple template links to be returned in the same representation.[1]
- Add an optional top-level object:
templates
which contains a collection oflink
objects. - Support optional
type
property (STRING) as a child of thelink
object. This property holds the IANA-registered media type (i.e. "application/x-www-form-urlencoded", etc.) of the target resource.
{ "collection" :
{
"version" : "1.0",
"href" : "http://example.org/artifacts/",
"templates" :
[
{
"rel": STRING,
"href" : URI,
"type" : STRING,
"name" : STRING
},
{
"rel": STRING,
"href" : URI,
"type" : STRING,
"name" : STRING
}
]
}
}