content: package io.reflectoring.coderadar.rest.contributor;
  
  import io.reflectoring.coderadar.contributor.port.driver.UpdateContributorCommand;
  import io.reflectoring.coderadar.contributor.port.driver.UpdateContributorUseCase;
  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.PathVariable;
  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 UpdateContributorController implements AbstractBaseController {
    private final UpdateContributorUseCase updateContributorUseCase;
  
    @PostMapping(path = "/contributors/{id}", consumes = MediaType.APPLICATION_JSON_VALUE)
    public ResponseEntity<HttpStatus> updateContributor(
        @PathVariable long id, @RequestBody @Validated UpdateContributorCommand command) {
      updateContributorUseCase.updateContributor(id, command);
      return new ResponseEntity<>(HttpStatus.OK);
    }
  }
  