@GET @Produces(MediaType.APPLICATION_JSON) @Path("/getNotificationListForPartner/{user}/{token}") public Response getNotificationListForPartner( @QueryParam("partyId") int partyId, @QueryParam("buId") int buId, @PathParam("token") String token, @PathParam("user") String name) throws JsonGenerationException, JsonMappingException, IOException { logger.debug("partyId:---" + partyId); List<NotificationDetails> notificationDetailsList = partnerService.getNotificationListForPartner(partyId, buId); BaseResponse<NotificationDetails> br = new BaseResponse<>(); br.setResponseListObject(notificationDetailsList); response = FiinfraResponseBuilder.getSuccessResponse(br, null); return response; }