Вопрос

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?

Это было полезно?

Решение

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!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top