Subject: [apps-discuss] Relative URIs in Home Documents for HTTP APIs

From: "Robie, Jonathan" <[email-masked]>
Date: Wed, 28 Aug 2013 19:28:35 +0000

http://tools.ietf.org/html/draft-nottingham-json-home-03 says:

   In both forms, the links that "href" and "href-template" refer to are
   URI-references [RFC3986] whose base URI is that of the JSON Home
   Document itself.

Is this the best approach?

In general, I prefer to avoid making clients mess with URIs. XML and HTML both support base URIs, but JSON does not, so allowing relative URIs here requires the client to intervene to make a URI resolvable.

If a server does use relative URIs, why insist that the location of the JSON Home document is the same as the base for all relative URIs?  If relative URIs are allowed here, more flexibility might be desirable.

Jonathan