Re: Link relation for adding a resource
mike amundsen <[email protected]>
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <CAPW_8m7aO5ps0CLOhEn4FqEw4k8u9qiUd+PX7qOEWsLjpGUTDQ@mail.gmail.com> |
Paul: I think registering a link relation w/ the IANA that conveys the meaning of "use this URL to create a new resource of the type you are currently viewing" would be valuable. I'd would prefer the value "create" over "add" or "new" as I think it a broader value that covers not just adding new items to a collection, but also creating new stand-alone content, etc. Whatever value you settle on, I encourage you to post this to the Link-Relations list[1] to get feedback and on how to get started registering it. I'd be happy to assist in any of that, if you like. [1] https://www.ietf.org/mailman/listinfo/link-relations mca http://amundsen.com/blog/ http://twitter.com@mamund http://mamund.com/foaf.rdf#me On Fri, Aug 31, 2012 at 12:07 PM, Paul Cohen <[email protected]> wrote: > 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] > > > ------------------------------------ > > Yahoo! Groups Links > > > >