Link relation for adding a resource

Paul Cohen <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <CAA1Y72H_PU305hm7A7WDXHnemNoeG1X88E8-4ujf2c1cpzoafQ@mail.gmail.com>
Hi,

I would like to define, in JSON, a link that provides a way to add a
new resource to a collection of resources. I'm considering this:

"link": {
  "href": "/photos/",
  "type": "image/tiff",
  "method": "POST",
  "rel": "new",
  "title": "Add new photo"}

I'd appreciate any comments on the link representation above. In
particular I'm interested in suggestions for the relation type - I use
"new" above. I've seen "new" being used in similar cases but it's not
an officially registered relation type here:

  * http://www.iana.org/assignments/link-relations/link-relations.xml

  * http://www.w3.org/TR/html401/types.html#h-6.12

  * http://microformats.org/wiki/existing-rel-values

And there's no registered relation type with new/add/append-like
semantics. Well maybe "create-form" on the mircroformats page, but
that doesn't really seem appropriate.

/Paul

-- 
Paul Cohen
www.seibostudios.se
mobile: +46 730 787 035
e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.