Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 631 Bytes

model.md

File metadata and controls

23 lines (18 loc) · 631 Bytes

Model

Support decorating links w/ a "model" value[1].

  1. Add an optional property on link objects: model (STRING)
{ "collection" :
  {
    "version" : "1.0",
    "href" : "http://example.org/blogs/",
    
    "links" : [
      {"rel" : "collection", "href" : "http://example.org/posts", "model": "post" },
      {"rel" : "collection", "href" : "http://example.org/comments", "model": "comment"},
      {"rel" : "collection", "href" : "http://example.org/users", "model": "user"}
    ]
  }
}

References

  1. https://groups.google.com/forum/?fromgroups#!topic/collectionjson/8AknQAkEu5k