content: package io.reflectoring.coderadar.rest.contributor;
  
  import io.reflectoring.coderadar.contributor.port.driver.MergeContributorsCommand;
  import io.reflectoring.coderadar.contributor.port.driver.MergeContributorsUseCase;
  import io.reflectoring.coderadar.rest.AbstractBaseController;
  import lombok.RequiredArgsConstructor;
  import org.springframework.http.HttpStatus;
  import org.springframework.http.MediaType;
  import org.springframework.http.ResponseEntity;
  import org.springframework.validation.annotation.Validated;
  import org.springframework.web.bind.annotation.PostMapping;
  import org.springframework.web.bind.annotation.RequestBody;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  @RequiredArgsConstructor
  public class MergeContributorsController implements AbstractBaseController {
    private final MergeContributorsUseCase mergeContributorsUseCase;
  
    @PostMapping(path = "/contributors/merge", consumes = MediaType.APPLICATION_JSON_VALUE)
    public ResponseEntity<HttpStatus> mergeContributors(
        @RequestBody @Validated MergeContributorsCommand command) {
      mergeContributorsUseCase.mergeContributors(command);
      return new ResponseEntity<>(HttpStatus.OK);
    }
  }
  