eclipse-ee4j / eclipse-ee4j/jersey

Add 'canonical property' to InjectLink

Open
#3,246 5 comments 0 reactions 0 assignees View on GitHub
Component: extensions Priority: Major pull-request Type: Improvement
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

It is difficult to provide a 'canonical' link with the current @InjectLink since query parameters are added to the UriTemplate. As such, the only way to have a 'canonical' link is to create a specific method without query parameters, which obviously pollutes the code.
We propose to add a new property 'isCanonical' to the @InjectLink annotation, that would skip query parameters when UriTemplate is created
#### Affected Versions
[2.22]

Contributor guide

Open the contributing guide

Research direction

Start by locating the @InjectLink annotation and the code that creates its UriTemplate. Trace how query parameters are currently added, then determine the annotation and tests that define canonical-link behavior. Done means a canonical option skips query parameters without requiring a separate method, with regression coverage for both canonical and existing links.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.