Adding swagger annotations to beans
4.x.x
Madhawa 9 years ago
commit b6e7827920

@ -61,5 +61,5 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

@ -18,36 +18,46 @@
package org.wso2.carbon.device.mgt.common.configuration.mgt; package org.wso2.carbon.device.mgt.common.configuration.mgt;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/** /**
* Represents an individual configuration entry. * Represents an individual configuration entry.
*/ */
@ApiModel(value = "ConfigurationEntry", description = "This class carries all information related to Tenant Configuration" +
"Settings")
public class ConfigurationEntry { public class ConfigurationEntry {
private String name; @ApiModelProperty(name = "name", value = "Name of the configuration", required = true)
private String contentType; private String name;
private Object value;
@ApiModelProperty(name = "contentType", value = "Type of the configuration", required = true)
private String contentType;
@ApiModelProperty(name = "value", value = "Value of the configuration", required = true)
private Object value;
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public String getContentType() { public String getContentType() {
return contentType; return contentType;
} }
public void setContentType(String contentType) { public void setContentType(String contentType) {
this.contentType = contentType; this.contentType = contentType;
} }
public Object getValue() { public Object getValue() {
return value; return value;
} }
public void setValue(Object value) { public void setValue(Object value) {
this.value = value; this.value = value;
} }
} }

Loading…
Cancel
Save