Skip to content

Declarative linking via annotations #1355

Open
@leonard84

Description

@leonard84

Hi,

are there any plans or interest to add linking via annotations?

I initially used this concept in RESTEasy where it was called @LinkResource. When we switched to Jersey, I missed it so much that I contributed the behavior to Jersey as @ProvideLink.

The basic idea is that you define the links on the methods that they should point to, and say which representations/EntityModels should be enhanced. Doing it this way gets rid of repetitive writing of the same links in multiple methods that return the same model. Furthermore, you don't need to specify the method anymore, since it is already defined due to the presence of the link.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions