Message from discussion
Is my JavaScript browser for hypermedia JSON APIs as RESTful as I think it is?
Received: by 10.43.54.148 with SMTP id vu20mr3139435icb.15.1350476077301;
Wed, 17 Oct 2012 05:14:37 -0700 (PDT)
X-BeenThere: api-craft@googlegroups.com
Received: by 10.50.51.234 with SMTP id n10ls1634497igo.3.canary; Wed, 17 Oct
2012 05:14:34 -0700 (PDT)
Received: by 10.43.71.18 with SMTP id yi18mr3558278icb.21.1350476074801;
Wed, 17 Oct 2012 05:14:34 -0700 (PDT)
Received: by 10.43.71.18 with SMTP id yi18mr3558276icb.21.1350476074786;
Wed, 17 Oct 2012 05:14:34 -0700 (PDT)
Return-Path: <mikekelly...@gmail.com>
Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169])
by gmr-mx.google.com with ESMTPS id hr6si1691857igc.0.2012.10.17.05.14.34
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 17 Oct 2012 05:14:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of mikekelly...@gmail.com designates 209.85.214.169 as permitted sender) client-ip=209.85.214.169;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mikekelly...@gmail.com designates 209.85.214.169 as permitted sender) smtp.mail=mikekelly...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-ob0-f169.google.com with SMTP id va7so8863830obc.14
for <api-craft@googlegroups.com>; Wed, 17 Oct 2012 05:14:34 -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
:content-type;
bh=GKF3EmT1NtgHifg57/S0L5d8py0rkC3m4nNs72ofZvM=;
b=QKf7m3BcX+aPFbUTX/beLhz601JYVP9JJefLluo4dae65OSQnXaZxE9s1R2/ZH9EFg
ZM4IMV25mV6aWyIX6zpUi1spUXeIe2tIoBRnt365GvdABwpf5Bx0a4NpeFUv9I8WNn2Y
4xpdYb585jcJDqqZJPaY2Huv6GQ+WCPi6jOTQtQc4v3b6zZdIdTzREMucTv0WdiAy8iT
jAz9ydQPA0HoO/ZkUJMPXyleloBKqyiXqtRg5VZLmRiqZ/JeUzOMyLlvWxsUBgEKTxcm
5UTMzXj6qxwTNUciWSWE5xrKVcwlcB6zYi2W2Fu71ExDDcvT1D9Nf9ir/mtOD+Xx/ep4
jbhw==
MIME-Version: 1.0
Received: by 10.60.13.198 with SMTP id j6mr8708097oec.51.1350476074477; Wed,
17 Oct 2012 05:14:34 -0700 (PDT)
Received: by 10.60.48.99 with HTTP; Wed, 17 Oct 2012 05:14:34 -0700 (PDT)
In-Reply-To: <647d3224-9889-456a-b2b3-59f8f3f7fcbe@googlegroups.com>
References: <647d3224-9889-456a-b2b3-59f8f3f7fcbe@googlegroups.com>
Date: Wed, 17 Oct 2012 13:14:34 +0100
Message-ID: <CANqiZJYVWic_85JaDTuGJJoH_ZTBqmu0UCStwmPejvFsm+3...@mail.gmail.com>
Subject: Re: [api-craft] Is my JavaScript browser for hypermedia JSON APIs as
RESTful as I think it is?
From: Mike Kelly <mikekelly...@gmail.com>
To: api-craft@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Hi Dave,
Looks good. Have you seen the hal browser? That's pretty similar to this.
Did the "hypermedia" property come out of your work on the browser or
the other way around?
Cheers,
M
On Wed, Oct 17, 2012 at 5:42 AM, Dave Gauer <ratfac...@gmail.com> wrote:
> Hello,
>
> I would genuinely appreciate some expert opinions regarding hm-json Browser,
> a JavaScript client for hypermedia JSON APIs:
>
> https://bitbucket.org/ratfactor/hm-json-browser
>
> (Documentation, the tiny source code, and most importantly, LIVE DEMO at the
> link above.)
>
> I believe it passes the smell test for REST because it is:
>
> Discoverable - the entire API can be traversed from a single starting URI
> Fully self-documented - any HTTP method is supported (and the browser
> natively understands GET, PUT, POST, OPTIONS, and DELETE)
> Encourages RESTful resources and a generality of interfaces (but being a
> client, can't actually enforce good RESTful design)
>
> And though it's other features have nothing to do with REST, it also allows
> you to browse to templated URIs (level 1 variable expansion only), PUT and
> POST data through the browser, see titles and descriptions/instructions for
> the resources you are manipulating, and generally let you use the full range
> of HTTP's capabilities like I think we all wish Web browsers could.
>
> I believe it will make any project which uses it extremely
> developer-friendly and I'm happy with it.
>
> But I'm wondering if the browser (and my simplistic demo API) would be
> considered "real REST" by a true aficionado? REST's "code on demand"
> constraint is explicitly optional, so I feel safe there. But I don't
> address caching at all, and I'm wondering if that's enough to knock hm-json
> Browser out of the REST category altogether. I could add caching, but it's
> really not a high priority for such a small tool and feels to me like it
> would be a pretty arbitrary requirement.
>
> I have absolutely no interest in buzzwords and came to REST out of a true
> admiration for elegant API design. If there are ways this could be
> improved, I would absolutely love to hear about them.
>
> Thanks,
>
> -Dave Gauer
>
> --
> You received this message because you are subscribed to the Google Groups
> "API Craft" group.
> To unsubscribe from this group, send email to
> api-craft+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/api-craft?hl=en.
>
>
--
Mike
http://twitter.com/mikekelly85
http://github.com/mikekelly
http://linkedin.com/in/mikekelly123