Re: Re: Internet-Draft: JSON Hypertext Application Language

Dan Haywood <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <CALJOYLGtWpOsgtGX6YL5grb_ZbmkXS_a3g9s17p8cwQBicVj2w@mail.gmail.com>
jumping in...


On 11 June 2012 13:27, Mike Kelly <[email protected]> wrote:
>>
>>  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.
>>
>
 but doesn't that require the client having to consume the entire doc first?

~~~

As a third option, how about using a "profile" parameter, as per the idea
in [1], ie:

 Content-Type: application/hal+json;profile="com.mycompany.myapp.Order"

Dan

[1] http://buzzword.org.uk/2009/draft-inkster-profile-parameter-00.html
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.