Skip to content

Tweak /api/v2/components endpoint

069eb1c
Select commit
Loading
Failed to load commit list.
Merged

Tweak /api/v2/components endpoint #2000

Tweak /api/v2/components endpoint
069eb1c
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis succeeded Apr 20, 2026 in 0s

Your pull request is up to standards!

Codacy found no issues in your code

Annotations

Check warning on line 111 in apiserver/src/main/java/org/dependencytrack/resources/v2/ComponentsResource.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

apiserver/src/main/java/org/dependencytrack/resources/v2/ComponentsResource.java#L111

Avoid long parameter lists.

Check warning on line 111 in apiserver/src/main/java/org/dependencytrack/resources/v2/ComponentsResource.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

apiserver/src/main/java/org/dependencytrack/resources/v2/ComponentsResource.java#L111

The method 'listComponents(String, String, String, String, String, String, String, String, Integer, String, SortDirection, String)' has an NPath complexity of 216, current threshold is 200