users@jersey.java.net

[Jersey] Response Links

From: Robert DiFalco <robert.difalco_at_gmail.com>
Date: Mon, 5 May 2014 13:10:12 -0700

I'm lacking some knowledge here.

My REST API uses some HAL style HATEOAS responses. At a basic level the
JSON entities I return have an "entity" field (for the actual entity) and a
"links" field for a collection of links (usually containing at least one
called "self" which is the link to the call just made to get the value of
"entity".

I notice JAX-RS has something different but that I could use instead of all
the Hateoas stuff I rigged up.

But here's where I'm confused. Is this a proprietary standard create by
JAX-RS or does it map to some defined standard? Thinking of my clients, is
there any reason I WOULD NOT want to use this instead of my home-grown
solution that puts the links in the resource entity itself instead of how
Jersey does it?

Thanks for any facts or opinions you can offer on this!