Adding swagger annotations

revert-dabc3590
dilanua 9 years ago
parent 34d4da7e66
commit f66aad9e0e

@ -30,7 +30,7 @@ import java.io.Serializable;
description = "This class carries all information related to install application") description = "This class carries all information related to install application")
public class ApplicationInstallation extends AndroidOperation implements Serializable { public class ApplicationInstallation extends AndroidOperation implements Serializable {
@ApiModelProperty(name = "appIdentifier", value = "DeviceIdentifier", required = true) @ApiModelProperty(name = "appIdentifier", value = "Application Identifier", required = true)
private String appIdentifier; private String appIdentifier;
@ApiModelProperty(name = "type", value = "Application type(Enterprise/Web/public)", required = true) @ApiModelProperty(name = "type", value = "Application type(Enterprise/Web/public)", required = true)

@ -18,16 +18,29 @@
package org.wso2.carbon.mdm.services.android.bean; package org.wso2.carbon.mdm.services.android.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
/** /**
* This class represents the information of uninstall application operation. * This class represents the information of uninstall application operation.
*/ */
@ApiModel(value = "ApplicationUninstallation",
description = "This class carries all information related to application uninstallation.")
public class ApplicationUninstallation extends AndroidOperation implements Serializable { public class ApplicationUninstallation extends AndroidOperation implements Serializable {
@ApiModelProperty(name = "appIdentifier", value = "The package name of the application to be uninstalled.", required = true)
private String appIdentifier; private String appIdentifier;
@ApiModelProperty(name = "type", value = "The type of the application. The following types of applications " +
"are supported: enterprise, public and webapp.", required = true)
private String type; private String type;
@ApiModelProperty(name = "url", value = "The URL of the application.", required = true)
private String url; private String url;
@ApiModelProperty(name = "name", value = "The name of the application.", required = true)
private String name; private String name;
public String getAppIdentifier() { public String getAppIdentifier() {

@ -18,14 +18,21 @@
package org.wso2.carbon.mdm.services.android.bean; package org.wso2.carbon.mdm.services.android.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
/** /**
* This class represents the blacklist applications information. * This class represents the blacklist applications information.
*/ */
@ApiModel(value = "BlacklistApplications",
description = "This class represents the blacklist applications information.")
public class BlacklistApplications extends AndroidOperation implements Serializable { public class BlacklistApplications extends AndroidOperation implements Serializable {
@ApiModelProperty(name = "appIdentifiers", value = "A list of application package names to be blacklisted.",
required = true)
private List<String> appIdentifiers; private List<String> appIdentifiers;
public List<String> getAppIdentifier() { public List<String> getAppIdentifier() {

@ -18,13 +18,20 @@
package org.wso2.carbon.mdm.services.android.bean; package org.wso2.carbon.mdm.services.android.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable; import java.io.Serializable;
/** /**
* This class represents the information of camera operation. * This class represents the information of camera operation.
*/ */
@ApiModel(value = "Camera",
description = "This class represents the information of camera operation.")
public class Camera extends AndroidOperation implements Serializable { public class Camera extends AndroidOperation implements Serializable {
@ApiModelProperty(name = "enabled", value = "Disable the camera on the device by assigning false as the value or " +
"enable the camera on the device to function by defining true as the value.", required = true)
private boolean enabled; private boolean enabled;
public boolean isEnabled() { public boolean isEnabled() {

Loading…
Cancel
Save