HALBuilder With Jersey to return JSON without escape - Google Groups
Sorry, it should have been a Jersey @Provider class pulled from the ResourceContext:
.withRepresentation("embedded_object", rc.getResource( EmbeddedResourceMessageBodyWriter.class). getHalRepresentation( this.getEmbeddedResource()))
Forgive me, I was trying to generalise a concrete example...
The providers generate Hal Representations via getHalRepresentation()
their writeTo() methods call
toString(
Read full article from HALBuilder With Jersey to return JSON without escape - Google Groups
No comments:
Post a Comment