You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are problems on the server side: Jackson doesn't support the json-ref syntax "$ref" and only relies on having typed objects on both client/server sides (see ObjectIdentity).
There are also problems on the client side; javascript client libs duplicate data, i.e. they expand the object graph with their values. This can be problematic when updating data on the client side.
Hypermedia
We could consider HAL and/or json-ld formats and integrate those on the client side for lazy-loading and metadata.
Regarding references, why not use Jackson's @JsonIdentityInfo[1]? It just works as far as the spring stack goes, but needs support on the backbone stack side. Perhaps something as simple as an identity map [2]. I'd surely vote for this as a core resthub feature.
See issue resthub/resthub-spring-stack#45 for the server part.
How should we consider support for:
We should consider only one of those options.
JSON reference
On the client side, several libs achieved this:
There are problems on the server side: Jackson doesn't support the json-ref syntax
"$ref"
and only relies on having typed objects on both client/server sides (see ObjectIdentity).There are also problems on the client side; javascript client libs duplicate data, i.e. they expand the object graph with their values. This can be problematic when updating data on the client side.
Hypermedia
We could consider HAL and/or json-ld formats and integrate those on the client side for lazy-loading and metadata.
We could integrate those within backbone using:
Of course, I'm all for Hypermedia!
The text was updated successfully, but these errors were encountered: