From 77d4c167af41305fc3ec22075ad14fd561d1c1c9 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Sat, 28 May 2016 08:31:20 +0530 Subject: [PATCH] code cleanup --- .../service/api/ActivityInfoProviderService.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/ActivityInfoProviderService.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/ActivityInfoProviderService.java index 8d12252274..565c7366ea 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/ActivityInfoProviderService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/api/ActivityInfoProviderService.java @@ -43,7 +43,6 @@ public interface ActivityInfoProviderService { @GET @Path("/{id}") @ApiOperation( - consumes = MediaType.APPLICATION_JSON, produces = MediaType.APPLICATION_JSON, httpMethod = "GET", response = Activity.class, @@ -54,7 +53,7 @@ public interface ActivityInfoProviderService { @ApiResponses(value = { @ApiResponse( code = 200, - message = "OK. \n Activity details is successfully fetched", + message = "OK. \n Activity details are successfully fetched", response = Activity.class, responseHeaders = { @ResponseHeader( @@ -94,11 +93,9 @@ public interface ActivityInfoProviderService { @HeaderParam("If-Modified-Since") String ifModifiedSince); - @GET @Path("/") @ApiOperation( - consumes = MediaType.APPLICATION_JSON, produces = MediaType.APPLICATION_JSON, httpMethod = "GET", response = Activity.class, @@ -109,7 +106,7 @@ public interface ActivityInfoProviderService { @ApiResponses(value = { @ApiResponse( code = 200, - message = "OK. \n Activity details is successfully fetched", + message = "OK. \n Activity details are successfully fetched", response = Activity.class, responseContainer = "List", responseHeaders = { @@ -143,6 +140,11 @@ public interface ActivityInfoProviderService { value = "Validates if the requested variant has not been modified since the time specified, this " + "should be provided in unix format in seconds.", required = true) - @QueryParam("timestamp") String timestamp); + @QueryParam("timestamp") String timestamp, + @ApiParam( + name = "If-Modified-Since", + value = "Validates if the requested variant has not been modified since the time specified", + required = false) + @HeaderParam("If-Modified-Since") String ifModifiedSince); }