package io.reflectoring.coderadar.rest.useradministration.teams;

import io.reflectoring.coderadar.rest.AbstractBaseController;
import io.reflectoring.coderadar.useradministration.port.driver.teams.DeleteUsersFromTeamUseCase;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Transactional
public class DeleteUsersFromTeamController implements AbstractBaseController {
  private final DeleteUsersFromTeamUseCase deleteUsersFromTeamUseCase;

  public DeleteUsersFromTeamController(DeleteUsersFromTeamUseCase deleteUsersFromTeamUseCase) {
    this.deleteUsersFromTeamUseCase = deleteUsersFromTeamUseCase;
  }

  @DeleteMapping(path = "/teams/{teamId}/users", consumes = MediaType.APPLICATION_JSON_VALUE)
  public ResponseEntity<HttpStatus> deleteUsersFromTeam(
      @PathVariable long teamId, @RequestBody List<Long> userIds) {
    deleteUsersFromTeamUseCase.deleteUsersFromTeam(teamId, userIds);
    return new ResponseEntity<>(HttpStatus.OK);
  }
}

@@ -121,16 +121,71 @@
 roller;%0A
+import io.reflectoring.coderadar.rest.JsonListWrapper;%0A
 import i
@@ -278,30 +278,8 @@
 se;%0A
-import java.util.List;
 %0Aimp
@@ -1268,20 +1268,31 @@
 estBody 
-List
+JsonListWrapper
 %3CLong%3E u
@@ -1367,16 +1367,30 @@
  userIds
+.getElements()
 );%0A    r

change method parameter of controller