DependencyTrack / dependency-track

Dependency-Track is an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain.
https://dependencytrack.org/
Apache License 2.0
2.43k stars 529 forks source link

Add REST endpoints for tag retrieval #3881

Closed nscuro closed 6 days ago

nscuro commented 1 week ago

Description

Adds REST endpoints for tag retrieval: image

Addressed Issue

Relates to https://github.com/DependencyTrack/dependency-track/issues/586 Closes #3886

Additional Details

Response of /api/v1/tag:

image

Response of /api/v1/tag/{name}/policy:

image

Response of /api/v1/tag/{name}/project:

image

Frontend PR: https://github.com/DependencyTrack/frontend/pull/922

Checklist

codacy-production[bot] commented 6 days ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.02% (target: -1.00%) :white_check_mark: 79.84% (target: 70.00%)
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (e3217a373c110e817e4f4317af44c3c6840864ab) | 21794 | 16563 | 76.00% | | | Head commit (24e1773b01c5d11dfa5d72c0f3861df14bbb31f6) | 21904 (+110) | 16651 (+88) | 76.02% (**+0.02%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#3881) | 124 | 99 | **79.84%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences


:rocket: Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more