You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Alexander Zerbe <ze...@prime-research.com> on 2017/10/05 09:48:50 UTC

JSON-Representation of nested objects

Greetings,


I've a rather simple question. Is there a way to display members of nested objects directly?


For example, if I request a entity that has nested objects, I get a response (for members) similar too:


  *
language:
{
     *
id: "language",
     *
memberType: "property",
     *
links:
[
        *
{
           *
rel: "urn:org.restfulobjects:rels/details;property="language"",
           *
href: "<LINK>",
           *
method: "GET",
           *
type: "application/json;profile="urn:org.restfulobjects:repr-types/object-property""
}
],
     *
value:
{
        *
rel: "urn:org.restfulobjects:rels/value",
        *
href: "<<http://176.9.74.242:8080/source-service/restful/objects/language.Language/313>LINK>",
        *
method: "GET",
        *
type: "application/json;profile="urn:org.restfulobjects:repr-types/object"",
        *
title: "German - de_DE"
}
},


But I want the values of this specific language, when I query the parent object.


Kind regards


Alexander Zerbe

Re: JSON-Representation of nested objects

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi Alexander,

sorry no-one came back to you on this...

The RO viewer has support for x-ro-follow-links, which is an extension to
the RO standard as a way to request nested objects.  [1]

HTH
Dan

[1]
http://isis.apache.org/guides/ugvro/ugvro.html#___ugvro_ro-spec_extensions_minimizing-round-trips



On Thu, 5 Oct 2017 at 10:54 Alexander Zerbe <ze...@prime-research.com>
wrote:

> Greetings,
>
>
> I've a rather simple question. Is there a way to display members of nested
> objects directly?
>
>
> For example, if I request a entity that has nested objects, I get a
> response (for members) similar too:
>
>
>   *
> language:
> {
>      *
> id: "language",
>      *
> memberType: "property",
>      *
> links:
> [
>         *
> {
>            *
> rel: "urn:org.restfulobjects:rels/details;property="language"",
>            *
> href: "<LINK>",
>            *
> method: "GET",
>            *
> type:
> "application/json;profile="urn:org.restfulobjects:repr-types/object-property""
> }
> ],
>      *
> value:
> {
>         *
> rel: "urn:org.restfulobjects:rels/value",
>         *
> href: "<<
> http://176.9.74.242:8080/source-service/restful/objects/language.Language/313
> >LINK>",
>         *
> method: "GET",
>         *
> type:
> "application/json;profile="urn:org.restfulobjects:repr-types/object"",
>         *
> title: "German - de_DE"
> }
> },
>
>
> But I want the values of this specific language, when I query the parent
> object.
>
>
> Kind regards
>
>
> Alexander Zerbe
>