From 1861f0a4d64fb824ff55ef5e59a3378b266f212e Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Mon, 4 Dec 2023 17:34:47 +0100 Subject: [PATCH] Working Service --- .classpath | 29 ---- .project | 42 ------ .settings/.jsdtscope | 13 -- .settings/org.eclipse.core.resources.prefs | 5 - .settings/org.eclipse.jdt.core.prefs | 16 --- .settings/org.eclipse.m2e.core.prefs | 4 - .settings/org.eclipse.wst.common.component | 1 - ...se.wst.common.project.facet.core.prefs.xml | 7 - ....eclipse.wst.common.project.facet.core.xml | 8 -- ...rg.eclipse.wst.jsdt.ui.superType.container | 1 - .../org.eclipse.wst.jsdt.ui.superType.name | 1 - .settings/org.eclipse.wst.validation.prefs | 2 - .../LibRestAPI.java => methods/v2/Lib.java} | 129 +++++++++--------- 13 files changed, 65 insertions(+), 193 deletions(-) delete mode 100644 .classpath delete mode 100644 .project delete mode 100644 .settings/.jsdtscope delete mode 100644 .settings/org.eclipse.core.resources.prefs delete mode 100644 .settings/org.eclipse.jdt.core.prefs delete mode 100644 .settings/org.eclipse.m2e.core.prefs delete mode 100644 .settings/org.eclipse.wst.common.component delete mode 100644 .settings/org.eclipse.wst.common.project.facet.core.prefs.xml delete mode 100644 .settings/org.eclipse.wst.common.project.facet.core.xml delete mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container delete mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name delete mode 100644 .settings/org.eclipse.wst.validation.prefs rename src/main/java/org/gcube/portal/social/networking/ws/{lib/LibRestAPI.java => methods/v2/Lib.java} (94%) diff --git a/.classpath b/.classpath deleted file mode 100644 index 6bba6af..0000000 --- a/.classpath +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.project b/.project deleted file mode 100644 index 07a493b..0000000 --- a/.project +++ /dev/null @@ -1,42 +0,0 @@ - - - social-networking-library-ws - - - - - - org.eclipse.wst.jsdt.core.javascriptValidator - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.eclipse.wst.validation.validationbuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.jem.workbench.JavaEMFNature - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.jdt.core.javanature - org.eclipse.m2e.core.maven2Nature - org.eclipse.wst.common.project.facet.core.nature - org.eclipse.wst.jsdt.core.jsNature - - diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope deleted file mode 100644 index b72a6a4..0000000 --- a/.settings/.jsdtscope +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 839d647..0000000 --- a/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=UTF-8 -encoding//src/main/resources=UTF-8 -encoding//src/test/java=UTF-8 -encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 3a0745f..0000000 --- a/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,16 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f..0000000 --- a/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component deleted file mode 100644 index bcc91bc..0000000 --- a/.settings/org.eclipse.wst.common.component +++ /dev/null @@ -1 +0,0 @@ - diff --git a/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml b/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml deleted file mode 100644 index cc81385..0000000 --- a/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml deleted file mode 100644 index f1ae76c..0000000 --- a/.settings/org.eclipse.wst.common.project.facet.core.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a..0000000 --- a/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b..0000000 --- a/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/.settings/org.eclipse.wst.validation.prefs b/.settings/org.eclipse.wst.validation.prefs deleted file mode 100644 index 04cad8c..0000000 --- a/.settings/org.eclipse.wst.validation.prefs +++ /dev/null @@ -1,2 +0,0 @@ -disabled=06target -eclipse.preferences.version=1 diff --git a/src/main/java/org/gcube/portal/social/networking/ws/lib/LibRestAPI.java b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Lib.java similarity index 94% rename from src/main/java/org/gcube/portal/social/networking/ws/lib/LibRestAPI.java rename to src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Lib.java index fa221ff..2976ce4 100644 --- a/src/main/java/org/gcube/portal/social/networking/ws/lib/LibRestAPI.java +++ b/src/main/java/org/gcube/portal/social/networking/ws/methods/v2/Lib.java @@ -1,12 +1,10 @@ -package org.gcube.portal.social.networking.ws.lib; +package org.gcube.portal.social.networking.ws.methods.v2; -import com.webcohesion.enunciate.metadata.Ignore; import com.webcohesion.enunciate.metadata.rs.RequestHeader; import com.webcohesion.enunciate.metadata.rs.RequestHeaders; import com.webcohesion.enunciate.metadata.rs.ResponseCode; import com.webcohesion.enunciate.metadata.rs.StatusCodes; -import org.apache.commons.lang.Validate; import org.gcube.portal.databook.shared.*; import org.gcube.portal.social.networking.ws.outputs.ResponseBean; import org.gcube.portal.social.networking.ws.utils.CassandraConnection; @@ -18,7 +16,6 @@ import javax.validation.ValidationException; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; import javax.ws.rs.*; -import javax.ws.rs.core.GenericType; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; @@ -29,22 +26,21 @@ import java.util.Map; * REST interface for the social networking library (comments). * @author Ahmed Ibrahim ISTI-CNR */ -@Path("lib/") +@Path("2/lib") @RequestHeaders ({ @RequestHeader( name = "Authorization", description = "Bearer token, see https://dev.d4science.org/how-to-access-resources"), @RequestHeader( name = "Content-Type", description = "application/json") }) -@Ignore -public class LibRestAPI { +public class Lib { // Logger - private static final org.slf4j.Logger logger = LoggerFactory.getLogger(LibRestAPI.class); + private static final org.slf4j.Logger logger = LoggerFactory.getLogger(Lib.class); //Comments @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("add-comment-lib") + @Path("add-comment-lib/") public Response addCommentLib(@NotNull(message="Comment to write is missing") @Valid Comment comment)throws ValidationException { @@ -67,7 +63,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("read-comment-by-id-lib") + @Path("read-comment-by-id-lib/") public Response readCommentByIdLib(@QueryParam("commentid") String commentid)throws ValidationException{ ResponseBean responseBean = new ResponseBean(); @@ -89,7 +85,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-comments-by-post-id-lib") + @Path("get-comments-by-post-id-lib/") @StatusCodes ({ @ResponseCode ( code = 200, condition = "The list of comments is put into the 'result' field"), @ResponseCode ( code = 500, condition = ErrorMessages.ERROR_IN_API_RESULT) @@ -120,7 +116,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-recent-comments-by-user-and-date-lib") + @Path("get-recent-comments-by-user-and-date-lib/") public Response getRecentCommentsByUserAndDateLib( @QueryParam("time") @Min(value = 0, message="time cannot be negative") @@ -152,7 +148,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("edit-comment-lib") + @Path("edit-comment-lib/") public Response editCommentLib( @NotNull(message="Comment to edit is missing") @Valid @@ -178,7 +174,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("delete-comment-lib") + @Path("delete-comment-lib/") public Response deleteCommentLib( @QueryParam("commentid") String commentid, @@ -206,7 +202,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-hashtag-lib") + @Path("save-hashtag-lib/") public Response saveHashTagsLib( @QueryParam("feedid") String feedid, @@ -237,7 +233,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("delete-hashtag-lib") + @Path("delete-hashtag-lib/") public Response deleteHashTagsLib( @QueryParam("feedid") String feedid, @@ -268,7 +264,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-hashtag-comment-lib") + @Path("save-hashtag-comment-lib/") public Response saveHashTagsCommentLib( @QueryParam("commentid") String commentid, @@ -298,7 +294,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("delete-hashtag-comment-lib") + @Path("delete-hashtag-comment-lib/") public Response deleteHashTagsCommentLib( @QueryParam("commentid") String commentid, @@ -328,7 +324,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-vre-hashtags-occurrences-lib") + @Path("get-vre-hashtags-occurrences-lib/") public Response getVREHashtagsWithOccurrenceLib( @QueryParam("vreid") String vreid @@ -356,7 +352,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-vre-hashtags-occurrences-time-lib") + @Path("get-vre-hashtags-occurrences-time-lib/") public Response getVREHashtagsWithOccurrenceFilteredByTimeLib( @QueryParam("vreid") String vreid, @@ -386,7 +382,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-vre-post-by-hashtag-lib") + @Path("get-vre-post-by-hashtag-lib/") public Response getVREFeedsByHashtagLib( @QueryParam("vreid") String vreid, @@ -417,7 +413,7 @@ public class LibRestAPI { //Invites @GET @Produces(MediaType.APPLICATION_JSON) - @Path("is-existing-invite-lib") + @Path("is-existing-invite-lib/") public Response isExistingInviteLib( @QueryParam("vreid") String vreid, @@ -446,7 +442,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-invite-lib") + @Path("save-invite-lib/") public Response saveInviteLib( @NotNull(message="invite to save is missing") @Valid @@ -472,7 +468,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("read-invite-lib") + @Path("read-invite-lib/") public Response readInviteLib( @QueryParam("inviteid") String inviteid @@ -500,7 +496,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("set-invite-status-lib") + @Path("set-invite-status-lib/") public Response setInviteStatusLib( @QueryParam("vreid") String vreid, @@ -532,7 +528,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("get-invited-email-by-vre-lib") + @Path("get-invited-email-by-vre-lib/") public Response getInvitedEmailsByVRELib( @QueryParam("vreid") String vreid, @@ -562,7 +558,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("like-lib") + @Path("like-lib/") public Response likeLib( @NotNull(message="like to add is missing") @Valid @@ -588,7 +584,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("unlike-lib") + @Path("unlike-lib/") public Response unlikeLib( @QueryParam("userid") String userid, @@ -617,7 +613,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-all-liked-posts-by-user-lib") + @Path("get-all-liked-posts-by-user-lib/") public Response getAllLikedPostIdsByUserLib( @QueryParam("userid") String userid @@ -645,7 +641,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-all-likes-by-post-lib") + @Path("get-all-likes-by-post-lib/") public Response getAllLikesByPostLib( @QueryParam("postid") String postid @@ -674,7 +670,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-notification-lib") + @Path("save-notification-lib/") public Response saveNotificationLib( @NotNull(message="notification to add is missing") @Valid @@ -698,7 +694,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("read-notification-lib") + @Path("read-notification-lib/") public Response readNotificationLib( @QueryParam("notid") String notid @@ -722,7 +718,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("set-notification-read-lib") + @Path("set-notification-read-lib/") public Response setNotificationReadLib( @QueryParam("notid") String notid @@ -745,7 +741,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-all-notifications-user") + @Path("get-all-notifications-user/") public Response getAllNotificationByUserLib( @QueryParam("userid") String userid, @@ -770,7 +766,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-unread-notifications-user") + @Path("get-unread-notifications-user/") public Response getUnreadNotificationsByUserLib( @QueryParam("userid") String userid @@ -793,7 +789,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-range-notifications-user") + @Path("get-range-notifications-user/") public Response getRangeNotificationsByUserLib( @QueryParam("userid") String userid, @@ -821,7 +817,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("set-all-notification-read-lib") + @Path("set-all-notification-read-lib/") public Response setAllNotificationReadByUserLib( @QueryParam("userid") String userid @@ -845,7 +841,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("check-unread-notification-lib") + @Path("check-unread-notification-lib/") public Response checkUnreadNotificationsLib( @QueryParam("userid") String userid @@ -869,7 +865,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("check-unread-messages-notification-lib") + @Path("check-unread-messages-notification-lib/") public Response checkUnreadMessagesNotificationsLib( @QueryParam("userid") String userid @@ -894,18 +890,17 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("get-user-notification-channels-lib") + @Path("get-user-notification-channels-lib/") public Response getUserNotificationChannelsLib( @QueryParam("userid") String userid, - @NotNull(message="notificationtype to get is missing") - @Valid - NotificationType notificationType + @QueryParam("type") + String type ) throws ValidationException{ ResponseBean responseBean = new ResponseBean(); Status status = Status.OK; try{ - List result = CassandraConnection.getInstance().getDatabookStore().getUserNotificationChannels(userid,notificationType); + List result = CassandraConnection.getInstance().getDatabookStore().getUserNotificationChannels(userid,NotificationType.valueOf(type)); responseBean.setResult(result); responseBean.setMessage(""); responseBean.setSuccess(true); @@ -921,7 +916,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("set-notification-preference-lib") + @Path("set-notification-preference-lib/") public Response setUserNotificationPreferencesLib( @QueryParam("userid") String userid, @@ -930,6 +925,12 @@ public class LibRestAPI { Map enabledChannels ) throws ValidationException{ ResponseBean responseBean = new ResponseBean(); + for(NotificationType notificationType: enabledChannels.keySet()){ + logger.info("Type: " + notificationType.toString()); + for(NotificationChannelType channelType: enabledChannels.get(notificationType)){ + logger.info(channelType.toString()); + } + } Status status = Status.OK; try{ boolean result = CassandraConnection.getInstance().getDatabookStore().setUserNotificationPreferences(userid,enabledChannels); @@ -937,7 +938,7 @@ public class LibRestAPI { responseBean.setMessage(""); responseBean.setSuccess(true); }catch(Exception e){ - logger.error("Unable to write comment.", e); + logger.error("Unable to write settings.", e); responseBean.setMessage(e.getMessage()); responseBean.setSuccess(false); status = Status.INTERNAL_SERVER_ERROR; @@ -948,7 +949,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-notification-preference-lib") + @Path("get-notification-preference-lib/") public Response getUserNotificationPreferencesLib( @QueryParam("userid") String userid @@ -973,7 +974,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-user-post-lib") + @Path("save-user-post-lib/") public Response saveUserPostLib( @NotNull(message="post to add is missing") @Valid @@ -998,7 +999,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-attachment-lib") + @Path("save-attachment-lib/") public Response saveAttachmentEntryLib( @QueryParam("postid") String postkey, @@ -1026,7 +1027,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-app-post-lib") + @Path("save-app-post-lib/") public Response saveAppPostLib( @NotNull(message="post to add is missing") @Valid @@ -1052,7 +1053,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("save-post-to-vretimeline-lib") + @Path("save-post-to-vretimeline-lib/") public Response savePostToVRETimelineLib( @QueryParam("postid") String postid, @@ -1078,7 +1079,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("read-post-lib") + @Path("read-post-lib/") public Response readPostLib( @QueryParam("postid") String postid @@ -1102,7 +1103,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-recent-posts-by-user-date-lib") + @Path("get-recent-posts-by-user-date-lib/") public Response getRecentPostsByUserAndDateLib( @QueryParam("userid") String userid, @@ -1128,7 +1129,7 @@ public class LibRestAPI { @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) - @Path("delete-post-lib") + @Path("delete-post-lib/") public Response deletePostLib( @QueryParam("postid") String postid @@ -1152,7 +1153,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-all-posts-by-user-lib") + @Path("get-all-posts-by-user-lib/") public Response getAllPostsByUserLib( @QueryParam("userid") String userid @@ -1176,7 +1177,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-all-posts-by-app-lib") + @Path("get-all-posts-by-app-lib/") public Response getAllPostsByAppLib( @QueryParam("appid") String appid @@ -1200,7 +1201,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-recent-commented-posts-by-user-lib") + @Path("get-recent-commented-posts-by-user-lib/") public Response getRecentCommentedPostsByUserAndDateLib( @QueryParam("userid") String userid, @@ -1227,7 +1228,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-portal-privacy-level-posts-lib") + @Path("get-portal-privacy-level-posts-lib/") public Response getAllPortalPrivacyLevelPostsLib() throws ValidationException{ ResponseBean responseBean = new ResponseBean(); Status status = Status.OK; @@ -1248,7 +1249,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-recent-posts-by-user-lib") + @Path("get-recent-posts-by-user-lib/") public Response getRecentPostsByUserLib( @QueryParam("userid") String userid, @@ -1273,7 +1274,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-all-posts-by-vre-lib") + @Path("get-all-posts-by-vre-lib/") public Response getAllPostsByVRELib( @QueryParam("vreid") String vreid @@ -1296,7 +1297,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-recent-posts-by-vre-lib") + @Path("get-recent-posts-by-vre-lib/") public Response getRecentPostsByVRELib( @QueryParam("vreid") String vreid, @@ -1321,7 +1322,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-recent-posts-by-vre-range-lib") + @Path("get-recent-posts-by-vre-range-lib/") public Response getRecentPostsByVREAndRangeLib( @QueryParam("vreid") String vreid, @@ -1349,7 +1350,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-attachment-by-postid-lib") + @Path("get-attachment-by-postid-lib/") public Response getAttachmentsByFeedIdLib( @QueryParam("postid") String postid @@ -1373,7 +1374,7 @@ public class LibRestAPI { @GET @Produces(MediaType.APPLICATION_JSON) - @Path("get-all-vre-ids-lib") + @Path("get-all-vre-ids-lib/") public Response getAllVREIdsLib() throws ValidationException{ ResponseBean responseBean = new ResponseBean(); Status status = Status.OK;