From: Jørn Wildt <j...@fjeldgruppen.dk>
Date: Fri, 26 Oct 2012 08:24:58 +0200
Local: Fri, Oct 26 2012 2:24 am
Subject: Re: [api-craft] Re: How should HATEOAS Links in a json response be handled and why?
/Jørn
On Fri, Oct 26, 2012 at 8:15 AM, Mike Kelly <mikekelly...@gmail.com> wrote:
> Sent from my iPhone
> On 26 Oct 2012, at 05:51, Jørn Wildt <j...@fjeldgruppen.dk> wrote:
> > I have been thinking a bit about this issue and come to the conclusion
> > To lookup a rel-value, say "printable", a client programmer would do
> > var url = data._links["printable"].href;
> > But what happens if the server decides to throw in multiple links for
> > Now a robust client has to write code like this:
> > var url = null;
> > Unfortunately the dictionary approach encourages programmers to write
> > A robust client would always have to write code that somehow respects
> > _links : [
> > In that way we encourage (force) client programmers to write code that
> This isn't a big deal. You should obviously avoid churn by getting the
> Cheers,
> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||