Fix the user deletion issue in devicemgt react app

feature/appm-store/pbac
Jayasanka Weerasinghe 5 years ago
parent e1f7c3b073
commit 8d3ed2ed88

@ -372,8 +372,10 @@ public interface UserManagementService {
@DELETE @DELETE
@Path("/{username}") @Path("/{username}")
@Consumes(MediaType.WILDCARD)
@ApiOperation( @ApiOperation(
httpMethod = "DELETE", httpMethod = "DELETE",
consumes = MediaType.WILDCARD,
value = "Deleting a User", value = "Deleting a User",
notes = "When an employee leaves the organization, you can remove the user details from WSO2 IoTS using " + notes = "When an employee leaves the organization, you can remove the user details from WSO2 IoTS using " +
"this REST API.", "this REST API.",

@ -363,6 +363,7 @@ public class UserManagementServiceImpl implements UserManagementService {
@DELETE @DELETE
@Path("/{username}") @Path("/{username}")
@Consumes(MediaType.WILDCARD)
@Override @Override
public Response removeUser(@PathParam("username") String username, @QueryParam("domain") String domain) { public Response removeUser(@PathParam("username") String username, @QueryParam("domain") String domain) {
if (domain != null && !domain.isEmpty()) { if (domain != null && !domain.isEmpty()) {

Loading…
Cancel
Save