Re: Internet-Draft: JSON Hypertext Application Language

François Verry <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <[email protected]>
 > what goal does the "_links" special attribute serves ? couldn't links be
 > considered as "empty embedded resources" ?

To comment on my own comment, this is even more simple into the XML 
representation :

<resource href="/orders">
<link rel="next" href="/orders?page=2" />
<link rel="search" href="/orders?id={order_id}" />
<resource rel="order" href="/orders/123">
<link rel="customer" href="/customer/bob" title="Bob Jones 
<[email protected]>" />
<resource rel="basket" href="/orders/123/basket">
       ...
</resource>
</resource>
</resource>

Could as well be :

<resource href="/orders">
<resource rel="next" href="/orders?page=2" />
<resource rel="search" href="/orders?id={order_id}" />
<resource rel="order" href="/orders/123">
<resource rel="customer" href="/customer/bob" title="Bob Jones 
<[email protected]>" />
<resource rel="basket" href="/orders/123/basket">
       ...
</resource>
</resource>
</resource>

++
François


||||
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.