Re: The lie of the API

From: Simeon Warner <simeon.warner_at_nyob>
Date: Mon, 2 Dec 2013 11:04:44 -0500
To: CODE4LIB_at_LISTSERV.ND.EDU
On 12/2/13 10:50 AM, Robert Sanderson wrote:
> On Sun, Dec 1, 2013 at 4:25 PM, Richard Wallis <
> richard.wallis_at_dataliberate.com> wrote:
>> As to discovering then using the (currently implemented) URI returned from
>> a content-negotiated call  - The standard http libraries take care of that,
>> like any other http redirects (301,303, etc) plus you are protected from
>> any future backend server implementation changes.
>
> No they don't, as there's no way to know which representations are
> available via conneg, and hence no automated way to construct the Accept
> header.

To me this is the biggest issue with content negotiation for machine 
APIs. What you get may be influenced by the Accept headers you send, but 
without detailed knowledge of the particular system you are interacting 
with you can't predict what you'll actually get.

Cheers,
Simeon
Received on Mon Dec 02 2013 - 11:06:00 EST