W3C home > Mailing lists > Public > public-rww@w3.org > May 2012

Re: Home Documents for HTTP APIs

From: Toby Inkster <tai@g5n.co.uk>
Date: Thu, 24 May 2012 10:29:25 +0100
To: Melvin Carvalho <melvincarvalho@gmail.com>
Cc: public-rww <public-rww@w3.org>
Message-ID: <20120524102925.62e60fa9@miranda.g5n.co.uk>
On Thu, 24 May 2012 09:08:00 +0200
Melvin Carvalho <melvincarvalho@gmail.com> wrote:

> https://datatracker.ietf.org/doc/draft-nottingham-json-home/?include_text=1

"Home Documents for HTTP APIs"

Perhaps it should be re-titled, "POWDER doesn't use JSON so I'll
pretend it doesn't exist and reinvent it"?

<?xml version="1.0"?>
<powder xmlns="http://www.w3.org/2007/05/powder#"
        xmlns:hint="http://example.org/http-hints-vocab#">
  <attribution>
    <issuedby src="/#me" />
    <issued>2012-05-24T09:24:00Z</issued>
  </attribution>
  <dr>
    <iriset>
      <includeiripattern>^http://example\.com/widget/\d+$</includeiripattern>
    </iriset>
    <descriptorset>
      <hint:allow>GET</hint:allow>
      <hint:allow>PUT</hint:allow>
      <hint:allow>DELETE</hint:allow>
      <hint:allow>PATCH</hint:allow>
      <hint:representation>application/json</hint:representation>
      <hint:accept-patch>application/json-patch</hint:accept-patch>
      <hint:accept-post>application/xml</hint:accept-post>
      <hint:accept-ranges>bytes</hint:accept-ranges>
      <seealso src="http://example.com/widget/" />
    </descriptorset>
  </dr>
</powder>

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Thursday, 24 May 2012 09:27:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 May 2012 09:27:46 GMT