I tried with
shoppingCart:{ value: { href: "
http://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140"} }
But the application does not run i understand the solution could be a ENTER or
spaces so i tried this too
shoppingCart:{ value: { href:
"\nhttp://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140"} }
And i get the same error:
"shoppingCart":{"value":"{\"value\":{\"href\":\"\\nhttp://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140\"}}","invalidReason":"Expected
a link (because this object's type is not a value) but found no 'href'"
________________________________________
De: Dan Haywood <[email protected]>
Enviado: viernes, 26 de febrero de 2016 01:26 p. m.
Para: users
Asunto: Re: "invalidReason":"Expected a link (because this object's type is not
a value)
Use:
shoppingCart:{ value: { href: "
http://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140"} }
ie, the "href" is within a "value".
The error message you received is actually showing the structure required.
HTH
Dan
On 26 February 2016 at 19:16, Arturo Ulises Castañeda Estrada <
[email protected]> wrote:
> HI Dan
>
> I have the problem trying to persist in the DB, i send this
>
> shoppingCart:{href: "
> http://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140"}
>
> but returns the next error:
> {"shoppingCart":{"value":"{\"href\":\"
> http://192.168.0.20:8080/restful/objects/simple.ShoppingCart/140\"}","invalidReason":"Expected
> a link (because this object's type is not a value) but found no 'href'"}
>
> I find the thread where you talk about json-node:
>
> http://permalink.gmane.org/gmane.comp.apache.incubator.isis.devel/4010
>
> Could you explain me how to use or how can i resolve this, thank's
>
>
>