From 9a2ff75f9b16bd352fe1d2bbcc635d19b43fd19a Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Tue, 1 Jun 2021 13:56:48 +0200 Subject: [PATCH] Remove duplicated notification endpoints in openapi (#1677) Remove duplicated notification endpoints in openapi --- gradle/changelog/duplicate_notification_endpoints.yaml | 2 ++ .../java/sonia/scm/api/v2/resources/NotificationResource.java | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 gradle/changelog/duplicate_notification_endpoints.yaml diff --git a/gradle/changelog/duplicate_notification_endpoints.yaml b/gradle/changelog/duplicate_notification_endpoints.yaml new file mode 100644 index 0000000000..f6fed8e989 --- /dev/null +++ b/gradle/changelog/duplicate_notification_endpoints.yaml @@ -0,0 +1,2 @@ +- type: fixed + description: Remove duplicated notification endpoints in openapi ([#1677](https://github.com/scm-manager/scm-manager/pull/1677)) diff --git a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/NotificationResource.java b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/NotificationResource.java index 629c1603c9..63ae180ea8 100644 --- a/scm-webapp/src/main/java/sonia/scm/api/v2/resources/NotificationResource.java +++ b/scm-webapp/src/main/java/sonia/scm/api/v2/resources/NotificationResource.java @@ -63,7 +63,9 @@ import java.util.stream.Collectors; @OpenAPIDefinition(tags = { @Tag(name = "Notifications", description = "Notification related endpoints") }) +@Path(NotificationResource.NOTIFICATION_PATH_V2) public class NotificationResource { + static final String NOTIFICATION_PATH_V2 = "v2/me/notifications/"; private final NotificationStore store; private final ChannelRegistry channelRegistry;