RE: Internet-Draft: JSON Hypertext Application Language

Glenn Block <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <7574995335505234985@unknownmsgid>
Yep, i was talking about in the root case. Thanks.

Sent from my Windows Phone
From: Mike Kelly
Sent: 6/11/2012 5:27 AM
To: Glenn Block
Cc: [email protected]; REST-Discuss Discussion Group;
[email protected]
Subject: Re: Internet-Draft: JSON Hypertext Application Language
Hi Glenn,

There's a couple of ways of approaching this:

Assuming it is not an entry point into the application, then the
preceding link relation type which led to the resource can infer the
info/state variables. This link relation type should be a URI, and
that URI should expose documentation to that effect (as a web page)
and it could also expose a JSON Schema document.

The other approach is to add a profile link to each of the resources
which points to a URI which works much the same way as the link
relation type above i.e. inferring info/state/semantics.

Does that answer your Q?

Cheers,
M

On Mon, Jun 11, 2012 at 4:19 AM, Glenn Block <[email protected]> wrote:
> Hi Mike
>
> Using the examples in the draft, how does the client know to expect
> order info / state variables in the response?
>
> Do you see using something like the profile header here?
>
> Sent from my Windows Phone
> From: Mike Kelly
> Sent: 6/8/2012 4:25 AM
> To: [email protected]; REST-Discuss Discussion Group;
> [email protected]
> Subject: Internet-Draft: JSON Hypertext Application Language
> Hello all,
>
> I've recently written up an internet draft for a general-purpose media
> type for linking based on JSON. I'd like to get as much feedback from
> the community as possible, so please share your thoughts!
>
> Title:
> JSON Hypertext Application Language
>
> Abstract:
> This document proposes a media type for representing resources with
> hyperlinks.
>
> https://raw.github.com/mikekelly/hal-rfc/master/draft-kelly-json-hal-00.txt
>
> Cheers,
> Mike
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hypermedia Web" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/hypermedia-web?hl=en.



-- 
Mike

http://twitter.com/mikekelly85
http://github.com/mikekelly
http://linkedin.com/in/mikekelly123
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.