From b1189e4c759a0675f3b7acad81070aad1b70e3d9 Mon Sep 17 00:00:00 2001 From: Anhelina Date: Fri, 8 May 2026 21:09:57 +0300 Subject: [PATCH] FINERACT-1222: Add Swagger tags for Notifications --- .../fineract/notification/api/NotificationApiResource.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/notification/api/NotificationApiResource.java b/fineract-provider/src/main/java/org/apache/fineract/notification/api/NotificationApiResource.java index 8b17692c356..f86b9b74ca7 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/notification/api/NotificationApiResource.java +++ b/fineract-provider/src/main/java/org/apache/fineract/notification/api/NotificationApiResource.java @@ -47,7 +47,7 @@ @Path("/v1/notifications") @Component -@Tag(name = "Notification", description = "") +@Tag(name = "Notification", description = "Notification API resources") @RequiredArgsConstructor public class NotificationApiResource { @@ -59,7 +59,8 @@ public class NotificationApiResource { @GET @Produces({ MediaType.APPLICATION_JSON }) - @Operation + @Operation(summary = "Retrieve all Notifications", description = "Returns a paginated list of notifications for the authenticated user, with optional filtering by read status.", tags = { + "Notification" }) @ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = NotificationApiResourceSwagger.GetNotificationsResponse.class))) public String getAllNotifications(@Context final UriInfo uriInfo, @QueryParam("orderBy") @Parameter(description = "orderBy") final String orderBy, @@ -86,6 +87,8 @@ public String getAllNotifications(@Context final UriInfo uriInfo, @PUT @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) + @Operation(summary = "Update Notification Read Status", description = "Updates the read status of all notifications for the authenticated user.", tags = { + "Notification" }) public void update() { this.context.authenticatedUser(); this.notificationReadPlatformService.updateNotificationReadStatus();