isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Haywood <...@haywood-associates.co.uk>
Subject Re: Restful objects list action result with domain object representation instead of links
Date Tue, 03 Nov 2015 00:31:56 GMT
I've raised ISIS-1232, ISIS-1233, ISIS-1234 and ISIS-1235 for these.  I'll
aim to implement the first two (x-ro-follow-links, table grids) in 1.11.0.

Thx
Dan

https://issues.apache.org/jira/browse/ISIS-1232
https://issues.apache.org/jira/browse/ISIS-1233
https://issues.apache.org/jira/browse/ISIS-1234
https://issues.apache.org/jira/browse/ISIS-1235


On 15 October 2015 at 22:26, Dan Haywood <dan@haywood-associates.co.uk>
wrote:

> OK, I can focus on those sections, as and when I get the chance.
>
> IIRC, I did implement some of the x-ro-follow-links stuff, but it must
> have been over 2 years ago, so I forget the details as to how to make it
> work exactly.  Some slightly odd xpath-like syntax, I think.
>
> Thx
> Dan
>
> On 14 October 2015 at 19:29, Willie Loyd Tandingan <
> tandingan.wlb@gmail.com> wrote:
>
>> Hello Dan,
>>
>> The short answer is no.  I'm not averse to enhancing this with extensions
>> > as they make sense.
>> >
>> > But the longer answer is that there a couple of SPI services that allow
>> you
>> > to customize the representations, [1], [2].  The default RO
>> representations
>> > are performed by an implementation of [1].
>> >
>> > Eventually I'm thinking that Isis might provide out-of-the-box
>> > implementations for HAL, Collection+JSON, Siren etc... but you might
>> find
>> > that your client-side (Javascript?) widget UI libraries work best with
>> some
>> > other more "adhoc" representations.
>> >
>> > What these SPI services *don't* allow is for the resources defined by RO
>> > (or their input JSON) to change.  I don't see any particular need to
>> > customize this, though.
>> >
>>
>> I think I saw ContentMappingService being used in ToDoApp. Using those
>> SPIs
>> would work, however while going through the Spiro framework as discussed
>> in
>> the other thread, I saw interesting additional sections in the RO spec
>> v1.1.0 about:
>>
>> 34.4 Minimizing Round-trips (x-ro-follow-links)
>> 34.9 Minimizing Round-trips by supporting table grids
>>
>> I had skimmed through RO v1.0.0 before and afaik, those weren't there yet.
>> Those sections, especially 34.9, addresses our need.
>>
>> 34.2 Sorting (x-ro-sort-by) and 34.3 Pagination (x-ro-page,
>> x-ro-page-size)
>> are also nice to haves.
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message