diff --git a/commons-persistence/src/main/java/org/dependencytrack/persistence/model/Vulnerability.java b/commons-persistence/src/main/java/org/dependencytrack/persistence/model/Vulnerability.java index 70d93ee52..6058ac067 100644 --- a/commons-persistence/src/main/java/org/dependencytrack/persistence/model/Vulnerability.java +++ b/commons-persistence/src/main/java/org/dependencytrack/persistence/model/Vulnerability.java @@ -18,7 +18,6 @@ */ package org.dependencytrack.persistence.model; -import com.fasterxml.jackson.annotation.JsonSetter; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import io.quarkus.runtime.annotations.RegisterForReflection; import jakarta.persistence.Column; @@ -349,20 +348,6 @@ public void setSubTitle(String subTitle) { this.subTitle = subTitle; } - /** - * Setter for keeping the REST API backwards-compatible. - * Will be removed in v5. - * - * @param cwe The {@link Cwe} to set - * @deprecated Use {@link #setCwes(List)} instead - */ - @JsonSetter("cwe") - public void setCwe(final Cwe cwe) { - if (cwe != null) { - setCwes(List.of(cwe.getCweId())); - } - } - public List getCwes() { return cwes; } diff --git a/docs/getting-started/changes-over-v4.md b/docs/getting-started/changes-over-v4.md index 19549479c..a403ecb31 100644 --- a/docs/getting-started/changes-over-v4.md +++ b/docs/getting-started/changes-over-v4.md @@ -31,6 +31,12 @@ and vulnerability analysis is performed by services separately from the API serv ## Breaking Changes +* All deprecated endpoints mentioned below were removed: + * POST `/api/v1/policy/{policyUuid}/tag/{tagName}` + * DELETE `/api/v1/policy/{policyUuid}/tag/{tagName}` + * GET `/api/v1/tag/{policyUuid}` + * GET `/api/v1/bom/token/{uuid}` + ### Notifications * `subject` objects passed to notification templates are now objects generated from [Protobuf] definitions. diff --git a/docs/getting-started/upgrading.md b/docs/getting-started/upgrading.md index 7e8f22755..bde4d8d70 100644 --- a/docs/getting-started/upgrading.md +++ b/docs/getting-started/upgrading.md @@ -23,6 +23,12 @@ Refer to the [kafka configuration reference] for details. Example of name change |:-----------------------------------------------------------|:----------------------------------------------------| | `alpine.kafka.processor.vuln.scan.result.processing.order` | `kafka.processor.vuln.scan.result.processing.order` | +* All deprecated endpoints mentioned below were removed: + * POST `/api/v1/policy/{policyUuid}/tag/{tagName}` + * DELETE `/api/v1/policy/{policyUuid}/tag/{tagName}` + * GET `/api/v1/tag/{policyUuid}` + * GET `/api/v1/bom/token/{uuid}` + [apiserver/#840]: https://github.com/DependencyTrack/hyades-apiserver/pull/840 [apiserver/#888]: https://github.com/DependencyTrack/hyades-apiserver/pull/888 [apiserver/#904]: https://github.com/DependencyTrack/hyades-apiserver/pull/904