Question

I'm implementing a RESTful web service and I want to make my resources linked together with hyperlink. In practice I want to include in my json responses fields with links to other resources. What's the best way to achieve that with jersey rest framework?

Was it helpful?

Solution

From what I know, Jersey's support for hypermedia links is still "work in progress" and even changed in between versions (1.x - 2.x). You can search for "declarative hyperlinking".

Some resources to read: Declarative Hyperlinking by Example (Jersey) with the accompanying sample and the documentation for Jersey 1.x and Jersey 2.x.

Hope it helps!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top