Merge branch 'corrective-policy' into 'corrective-policy'

Improve API interface text

See merge request entgra/carbon-device-mgt!653
corrective-policy
Dharmakeerthi Lasantha 4 years ago
commit 725afbcc42

@ -362,14 +362,14 @@ public interface DeviceManagementAdminService {
List<String> deviceIdentifiers); List<String> deviceIdentifiers);
@POST @POST
@Path("/{deviceId}/{featureCode}/") @Path("/{deviceId}/{featureCode}")
@ApiOperation( @ApiOperation(
consumes = MediaType.APPLICATION_JSON, consumes = MediaType.APPLICATION_JSON,
produces = MediaType.APPLICATION_JSON, produces = MediaType.APPLICATION_JSON,
httpMethod = "POST", httpMethod = "POST",
value = "Removing Multiple Policies", value = "Trigger the given corrective action",
notes = "Delete one or more than one policy using this API.", notes = "When violation happens it is possible to trigger a corrective action.",
tags = "Device Policy Management", tags = "Device Management",
extensions = { extensions = {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = Constants.SCOPE, value = "perm:android:enroll") @ExtensionProperty(name = Constants.SCOPE, value = "perm:android:enroll")
@ -380,7 +380,7 @@ public interface DeviceManagementAdminService {
value = { value = {
@ApiResponse( @ApiResponse(
code = 200, code = 200,
message = "OK. \n Successfully removed the policy."), message = "OK. \n Successfully triggered the action."),
@ApiResponse( @ApiResponse(
code = 400, code = 400,
message = "Bad Request. \n Invalid request or validation error.", message = "Bad Request. \n Invalid request or validation error.",
@ -397,7 +397,7 @@ public interface DeviceManagementAdminService {
@ApiResponse( @ApiResponse(
code = 500, code = 500,
message = "Internal Server Error. \n " + message = "Internal Server Error. \n " +
"Server error occurred whilst bulk removing policies.", "Server error occurred while triggering the corrective action.",
response = ErrorResponse.class) response = ErrorResponse.class)
}) })
Response triggerCorrectiveActions( Response triggerCorrectiveActions(
@ -415,7 +415,7 @@ public interface DeviceManagementAdminService {
String featureCode, String featureCode,
@ApiParam( @ApiParam(
name = "actions", name = "actions",
value = "The list of actions to trigger when policy violated.", value = "The list of actions to trigger when violation happens.",
required = true) required = true)
List<String> actions List<String> actions
); );

Loading…
Cancel
Save