Re: User Hypermedia format

Alexander Johannesen <[email protected]> Mon, 24 Feb 2014 16:48:03 +1100
Newsgroups gmane.comp.web.services.rest
Message-ID <CAF89bCCK5u02YF4qj57aoMDzREuAL5WPW8pTUj57fqoadLocCQ@mail.gmail.com>
Hiya,

> as for the use of @model. this is applied to the associated @url in the same <data> element. That means you have full control over how much is in the @model and how much is in the @url. That includes path segements, etc. just as outlined in RFC6570.
>
> Does this clarify things?


Only where RFC6570 is clear. :) I guess I'm responding to the examples
from the website where for example we've got ;

<data name="search" rel="search" url="http://example.org/search"
model="{&title}" />

Which I assume is applied to that URL with a ?param structure, but what with ;

<data name="search" rel="search" url="http://example.org/search"
model="/{&type}/{&title}" />

Will that resolve to http://example.org/search/{type}/{title}? If yes,
then I understand how RFC6570 applies to the format. If no, I need
education.


Cheers,

Alex

-- 
 Project Wrangler, SOA, Info Alchemist, UX, RESTafarian, Topic Maps
 http://shelter.nu/blog  |  google.com/+AlexanderJohannesen
 http://xsiteable.org  |  http://www.linkedin.com/in/shelterit