|
|
@ -21,7 +21,6 @@ package org.wso2.carbon.device.mgt.jaxrs.service.api;
|
|
|
|
import io.swagger.annotations.*;
|
|
|
|
import io.swagger.annotations.*;
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.API;
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.API;
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.Permission;
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.Permission;
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.Scope;
|
|
|
|
|
|
|
|
import org.wso2.carbon.device.mgt.common.Device;
|
|
|
|
import org.wso2.carbon.device.mgt.common.Device;
|
|
|
|
import org.wso2.carbon.device.mgt.common.Feature;
|
|
|
|
import org.wso2.carbon.device.mgt.common.Feature;
|
|
|
|
import org.wso2.carbon.device.mgt.common.app.mgt.Application;
|
|
|
|
import org.wso2.carbon.device.mgt.common.app.mgt.Application;
|
|
|
@ -93,7 +92,7 @@ public interface DeviceManagementService {
|
|
|
|
message = "Internal Server Error. \n Server error occurred while fetching the device list.",
|
|
|
|
message = "Internal Server Error. \n Server error occurred while fetching the device list.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response getDevices(
|
|
|
|
Response getDevices(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "name",
|
|
|
|
name = "name",
|
|
|
@ -200,7 +199,7 @@ public interface DeviceManagementService {
|
|
|
|
"Server error occurred while retrieving information requested device.",
|
|
|
|
"Server error occurred while retrieving information requested device.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response getDevice(
|
|
|
|
Response getDevice(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
@ -282,7 +281,7 @@ public interface DeviceManagementService {
|
|
|
|
"Server error occurred while retrieving feature list of the device.",
|
|
|
|
"Server error occurred while retrieving feature list of the device.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response getFeaturesOfDevice(
|
|
|
|
Response getFeaturesOfDevice(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
@ -358,7 +357,7 @@ public interface DeviceManagementService {
|
|
|
|
"Server error occurred while enrolling the device.",
|
|
|
|
"Server error occurred while enrolling the device.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response searchDevices(
|
|
|
|
Response searchDevices(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "offset",
|
|
|
|
name = "offset",
|
|
|
@ -437,7 +436,7 @@ public interface DeviceManagementService {
|
|
|
|
"Server error occurred while retrieving installed application list of the device.",
|
|
|
|
"Server error occurred while retrieving installed application list of the device.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response getInstalledApplications(
|
|
|
|
Response getInstalledApplications(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
@ -533,7 +532,7 @@ public interface DeviceManagementService {
|
|
|
|
"Server error occurred while retrieving operation list scheduled for the device.",
|
|
|
|
"Server error occurred while retrieving operation list scheduled for the device.",
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response getDeviceOperations(
|
|
|
|
Response getDeviceOperations(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
@ -631,7 +630,7 @@ public interface DeviceManagementService {
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response getEffectivePolicyOfDevice(
|
|
|
|
Response getEffectivePolicyOfDevice(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
@ -683,7 +682,7 @@ public interface DeviceManagementService {
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
response = ErrorResponse.class)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning/view")
|
|
|
|
@Permission(name = "View Devices", permission = "/device-mgt/devices/owning-device/view")
|
|
|
|
Response getComplianceDataOfDevice(
|
|
|
|
Response getComplianceDataOfDevice(
|
|
|
|
@ApiParam(
|
|
|
|
@ApiParam(
|
|
|
|
name = "type",
|
|
|
|
name = "type",
|
|
|
|