From b5741b420c5692699dc60f5b8874058c8fef6dd6 Mon Sep 17 00:00:00 2001 From: Madhawa Perera Date: Fri, 13 May 2016 08:07:28 +0530 Subject: [PATCH] Adding swagger annotations to beans --- .../mgt/common/operation/mgt/OperationResponse.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java index b993f087430..5a154e35b7a 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/OperationResponse.java @@ -19,9 +19,17 @@ package org.wso2.carbon.device.mgt.common.operation.mgt; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +@ApiModel(value = "OperationResponse", description = "This class carries all information related to operation" + + " responses") public class OperationResponse { + @ApiModelProperty(name = "response", value = "Operation response return from the device", required = true) private String response; + @ApiModelProperty(name = "recievedTimeStamp", value = "Time that the operation response received", + required = true) private String recievedTimeStamp; public String getResponse() {