On 31 August 2012 12:32, Minto van der sluis <[email protected]> wrote:

> Hi folks,
>
> I wonder what is the best way to interact with the rest interface for my
> ISIS application.


Quick correction on the subject: the json viewer is now called the
restfulobjects viewer.




> Most information I could find mention interaction from
> display technology like javascipt. In my case I need to interact server
> side.
>

The intention is that the org.apache.isis.viewer : restfulobjects-applib
 ("RO Applib") will provide this capability.

In fact, a large part of it is there and implemented; the main issue with
the RO viewer and its applib is just that it is lagging behind the spec,
and so only implementing v0.52 (or so), rather than the published v1.0.0





>
> Ofcourse there are numerous client side REST libraries to choose from.
> However I am probably not the first one trying to do this for an ISIS
> project. So I wondered how others are doing this and what's the best way
> to move forward.
>

As Jeroen notes in his mail, it isn't necessary to use the RO applib.
 However, it is designed to be extensible in a number of ways.  For
example, the JsonRepresentation has "type-safe" subtypes for each of the
specific representations, eg DomainObjectRepresentation.  Or, it can just
be used as a "bag" of nodes, and access those nodes using an Xpath-like
notation.  Since the applib (and viewer) is based on RestEasy, there's also
support for templated URLs if you prefer to work in an RPC rather than
HATEOAS style.

Speaking slightly selfishly, I'd love you to have a go with using the RO
applib; it'll help us determine where the gaps and annoyances are for
"real-life" use.

Thx
Dan



>
> Regards,
>
> Minto van der Sluis
>
>

Reply via email to