Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 882 Bytes

URI Templates

Support RFC6570[1] URI Templates. Processors will match the data[] elements to any terms in the URI-Template.[2]

  1. Add optional property to query objects: encoding.
  2. Support either "uri-template" or "url-encoded" value for encoding property. If the property is missing, assume encoding : "url-encoded"
  3. Allow href property to contain URI or URI-Template
{
  "queries" :
  [
    {
      "encoding" : "uri-template", 
      "href" : "http://example.org/posts/{id}",
      "rel" : "search",
      "data" :
      [
        {"name" : "id", "value" : []} 
      ]
    }
  ]
}

References

  1. RFC6570 : http://tools.ietf.org/html/rfc6570
  2. https://groups.google.com/forum/?fromgroups#!topic/collectionjson/xt3N_4vqauY