Re: [apps-discuss] JSON Hypertext Application Language

Mike Kelly <mikekelly321@gmail.com> Sat, 09 June 2012 11:05 UTC

Return-Path: <mikekelly321@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2720C21F8781 for <apps-discuss@ietfa.amsl.com>; Sat, 9 Jun 2012 04:05:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.549
X-Spam-Level:
X-Spam-Status: No, score=-3.549 tagged_above=-999 required=5 tests=[AWL=0.050, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HKxOxzggEr9v for <apps-discuss@ietfa.amsl.com>; Sat, 9 Jun 2012 04:05:40 -0700 (PDT)
Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by ietfa.amsl.com (Postfix) with ESMTP id 7514821F8780 for <apps-discuss@ietf.org>; Sat, 9 Jun 2012 04:05:40 -0700 (PDT)
Received: by obbeh20 with SMTP id eh20so5073816obb.31 for <apps-discuss@ietf.org>; Sat, 09 Jun 2012 04:05:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=lvmc0s1GnTP10b4ZrpwQd2khz+snEl5m81RV8AhygpQ=; b=VRVjXwlEucgmnEdPFkTQH3kI1/5pqawNlc903K95TKCPVI//XXGRKA6y9pUspyJZ6e AKUXz0mvyBzTag8KCvKoDWb0k/ykW4LO1N1fsCkIR/ywdLWq87ppwBxpiQkCJe+hEj6n mcW0vVR84AjXOFyPTgACwX4FMUN2CeYTt7AXofaR1qMsi+OFhRm2WfjP6Gande1No1uK RBbmau8K/rLcpQhQ5dhNCIDH33/nBCEHJAgoAnT4G7S56d17OWG04VCbxe4zqjmEGcWP eUne8ecK1emAGombR5+g+BO/n6lsuxhTVGIxXUnZHM2LjPFt0v2jRjtQ5Ij8EvUBEanP hKWw==
MIME-Version: 1.0
Received: by 10.182.151.113 with SMTP id up17mr10298041obb.40.1339239940035; Sat, 09 Jun 2012 04:05:40 -0700 (PDT)
Received: by 10.60.28.195 with HTTP; Sat, 9 Jun 2012 04:05:39 -0700 (PDT)
In-Reply-To: <CAK6sV0n8wOfA+0=_LeE6d86N4PzyWF4so2cZ1RO-GmAJi9e3qQ@mail.gmail.com>
References: <CANqiZJa7GrBRbiV8X=o3Xkv-WcBEdKEntiZSFhMj4efQiNPEaQ@mail.gmail.com> <CABkgnnXVFqEhS5oympA7E_GHhzYB+P5TQh1PugK5p16qNWSBVQ@mail.gmail.com> <CAK6sV0n8wOfA+0=_LeE6d86N4PzyWF4so2cZ1RO-GmAJi9e3qQ@mail.gmail.com>
Date: Sat, 09 Jun 2012 12:05:39 +0100
Message-ID: <CANqiZJZkgRdU27pAenAvpZ6U3VvqNKnMy_SN1b-YbNGA2VJK7w@mail.gmail.com>
From: Mike Kelly <mikekelly321@gmail.com>
To: Manuel Simoni <msimoni@gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: apps-discuss@ietf.org
Subject: Re: [apps-discuss] JSON Hypertext Application Language
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 09 Jun 2012 11:05:41 -0000

On Sat, Jun 9, 2012 at 12:00 PM, Manuel Simoni <msimoni@gmail.com> wrote:
> On Fri, Jun 8, 2012 at 9:01 PM, Martin Thomson <martin.thomson@gmail.com> wrote:
>> On 6 June 2012 18:50, Mike Kelly <mikekelly321@gmail.com> wrote:
>>> http://www.ietf.org/id/draft-kelly-json-hal-00.txt
>>>
>>> Feedback welcome..
>>
>> Let's test that theory...
>>
>> I was initially inclined to call this an abomination, but that would
>> require fairly strong substantiation.  Let's just go with unnecessary.
>>
>> Some colleagues gave me an overview of an API that uses something very
>> much like this.  And aside from the initial aesthetic reaction, I have
>> two complaints:
>>
>> - _links is almost useless
>> - _embedded is an unnecessary optimization
>
> Disagree vehemently on the first point. Generic links in JSON are as
> useful as generic links in HTML.
>
> I agree on the second point. _embedded turns the specification from a
> generic linking thing into a quite specific application profile.

Hi Manuel,

Embedded representations is a very common approach for reducing HTTP
requests in applications, and it is a form of hypertext so I think it
belongs in HAL.

Cheers,
M