content: package io.reflectoring.coderadar.rest.useradministration.teams;
  
  import static io.reflectoring.coderadar.rest.GetTeamResponseMapper.mapTeam;
  
  import io.reflectoring.coderadar.domain.Team;
  import io.reflectoring.coderadar.rest.AbstractBaseController;
  import io.reflectoring.coderadar.rest.domain.GetTeamResponse;
  import io.reflectoring.coderadar.useradministration.port.driver.teams.get.GetTeamUseCase;
  import lombok.RequiredArgsConstructor;
  import org.springframework.http.HttpStatus;
  import org.springframework.http.MediaType;
  import org.springframework.http.ResponseEntity;
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.web.bind.annotation.PathVariable;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  @RequiredArgsConstructor
  public class GetTeamController implements AbstractBaseController {
    private final GetTeamUseCase getTeamUseCase;
  
    @GetMapping(path = "/teams/{teamId}", produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseEntity<GetTeamResponse> getTeam(@PathVariable long teamId) {
      Team team = getTeamUseCase.get(teamId);
      return new ResponseEntity<>(mapTeam(team), HttpStatus.OK);
    }
  }
  