Adding swagger annotations to beans

4.x.x
Madhawa Perera 9 years ago
parent c531577535
commit b5741b420c

@ -19,9 +19,17 @@
package org.wso2.carbon.device.mgt.common.operation.mgt; 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 { public class OperationResponse {
@ApiModelProperty(name = "response", value = "Operation response return from the device", required = true)
private String response; private String response;
@ApiModelProperty(name = "recievedTimeStamp", value = "Time that the operation response received",
required = true)
private String recievedTimeStamp; private String recievedTimeStamp;
public String getResponse() { public String getResponse() {

Loading…
Cancel
Save